CellRendererAccel
Deprecated since version 4.10: Applications editing keyboard accelerators should provide their own implementation according to platform design guidelines
Superclasses: CellRendererText
, CellRenderer
, InitiallyUnowned
, Object
Renders a keyboard accelerator in a cell
GtkCellRendererAccel
displays a keyboard accelerator (i.e. a key
combination like Control + a
). If the cell renderer is editable,
the accelerator can be changed by simply typing the new combination.
Constructors
- class CellRendererAccel
- classmethod new() CellRenderer
Creates a new
GtkCellRendererAccel
.Deprecated since version 4.10: Please do not use it in newly written code
Properties
- class CellRendererAccel
-
- props.accel_mode: CellRendererAccelMode
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.
- props.accel_mods: ModifierType
The modifier mask of the accelerator.
Signals
- class CellRendererAccel.signals
- accel_cleared(path_string: str) None
Gets emitted when the user has removed the accelerator.
- Parameters:
path_string – the path identifying the row of the edited cell
- accel_edited(path_string: str, accel_key: int, accel_mods: ModifierType, hardware_keycode: int) None
Gets emitted when the user has selected a new accelerator.
- Parameters:
path_string – the path identifying the row of the edited cell
accel_key – the new accelerator keyval
accel_mods – the new accelerator modifier mask
hardware_keycode – the keycode of the new accelerator