Gtk.CellRendererAccel¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.CellRendererText (2), Gtk.CellRenderer (25), GObject.Object (37)
- Structs:
class |
|
Virtual Methods¶
|
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
The keyval of the accelerator |
||
r/w/en |
The type of accelerators |
||
r/w/en |
The modifier mask of the accelerator |
||
r/w/en |
The hardware keycode of the accelerator |
Signals¶
Name |
Short Description |
---|---|
Gets emitted when the user has removed the accelerator. |
|
Gets emitted when the user has selected a new accelerator. |
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Gtk.CellRendererAccel(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Gtk.CellRendererAccel
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.The
Gtk.CellRendererAccel
cell renderer was added in GTK+ 2.10.- classmethod new()[source]¶
- Returns:
the new cell renderer
- Return type:
Creates a new
Gtk.CellRendererAccel
.New in version 2.10.
- do_accel_edited(path_string, accel_key, accel_mods, hardware_keycode) virtual¶
- Parameters:
path_string (
str
) –accel_key (
int
) –accel_mods (
Gdk.ModifierType
) –hardware_keycode (
int
) –
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.
New in version 2.10.
- 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.
New in version 2.10.
Property Details¶
- Gtk.CellRendererAccel.props.accel_key¶
- Name:
accel-key
- Type:
- Default Value:
0
- Flags:
The keyval of the accelerator.
New in version 2.10.
- 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.
New in version 2.10.
- Gtk.CellRendererAccel.props.accel_mods¶
- Name:
accel-mods
- Type:
- Default Value:
0
- Flags:
The modifier mask of the accelerator.
New in version 2.10.
- 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.
New in version 2.10.