Gtk.CellRendererAccel¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.CellRendererText (2), Gtk.CellRenderer (27), GObject.Object (37)
- Structs:
class |
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
Signals¶
Name |
Short Description |
---|---|
Gets emitted when the user has removed the accelerator. |
|
Gets emitted when the user has selected a new accelerator. |
Fields¶
Class Details¶
- class Gtk.CellRendererAccel(**kwargs)¶
- Bases:
- Abstract:
No
Renders a keyboard accelerator in a cell
GtkCellRendererAccel
displays a keyboard accelerator (i.e. a key combination likeControl + a
). If the cell renderer is editable, the accelerator can be changed by simply typing the new combination.Deprecated since version 4.10: Applications editing keyboard accelerators should provide their own implementation according to platform design guidelines
Signal Details¶
- Gtk.CellRendererAccel.signals.accel_cleared(cell_renderer_accel, path_string)¶
- Signal Name:
accel-cleared
- Flags:
- Parameters:
cell_renderer_accel (
Gtk.CellRendererAccel
) – The object which received the signalpath_string (
str
) – the path identifying the row of the edited cell
Gets emitted when the user has removed the accelerator.
- Gtk.CellRendererAccel.signals.accel_edited(cell_renderer_accel, path_string, accel_key, accel_mods, hardware_keycode)¶
- Signal Name:
accel-edited
- Flags:
- Parameters:
cell_renderer_accel (
Gtk.CellRendererAccel
) – The object which received the signalpath_string (
str
) – the path identifying the row of the edited cellaccel_key (
int
) – the new accelerator keyvalaccel_mods (
Gdk.ModifierType
) – the new acclerator modifier maskhardware_keycode (
int
) – the keycode of the new accelerator
Gets emitted when the user has selected a new accelerator.
Property Details¶
- Gtk.CellRendererAccel.props.accel_key¶
- Name:
accel-key
- Type:
- Default Value:
0
- Flags:
The keyval of the accelerator.
- Gtk.CellRendererAccel.props.accel_mode¶
- Name:
accel-mode
- Type:
- Default Value:
- Flags:
Determines if the edited accelerators are GTK accelerators. If they are, consumed modifiers are suppressed, only accelerators accepted by GTK are allowed, and the accelerators are rendered in the same way as they are in menus.
- Gtk.CellRendererAccel.props.accel_mods¶
- Name:
accel-mods
- Type:
- Default Value:
0
- Flags:
The modifier mask of the accelerator.
- Gtk.CellRendererAccel.props.keycode¶
- Name:
keycode
- Type:
- Default Value:
0
- Flags:
The hardware keycode of the accelerator. Note that the hardware keycode is only relevant if the key does not have a keyval. Normally, the keyboard configuration should assign keyvals to all keys.