Gtk.CellRendererAccel

g GObject.InitiallyUnowned GObject.InitiallyUnowned Gtk.CellRenderer Gtk.CellRenderer GObject.InitiallyUnowned->Gtk.CellRenderer GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.CellRendererText Gtk.CellRendererText Gtk.CellRenderer->Gtk.CellRendererText Gtk.CellRendererAccel Gtk.CellRendererAccel Gtk.CellRendererText->Gtk.CellRendererAccel

Subclasses:

None

Methods

Inherited:

Gtk.CellRendererText (2), Gtk.CellRenderer (27), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

Virtual Methods

Inherited:

Gtk.CellRendererText (1), Gtk.CellRenderer (11), GObject.Object (7)

Properties

Inherited:

Gtk.CellRendererText (46), Gtk.CellRenderer (15)

Name

Type

Flags

Short Description

accel-key

int

r/w/en

accel-mode

Gtk.CellRendererAccelMode

r/w/en

accel-mods

Gdk.ModifierType

r/w/en

keycode

int

r/w/en

Signals

Inherited:

Gtk.CellRendererText (1), Gtk.CellRenderer (2), GObject.Object (1)

Name

Short Description

accel-cleared

Gets emitted when the user has removed the accelerator.

accel-edited

Gets emitted when the user has selected a new accelerator.

Fields

Inherited:

Gtk.CellRendererText (1), Gtk.CellRenderer (2), GObject.Object (1)

Class Details

class Gtk.CellRendererAccel(**kwargs)
Bases:

Gtk.CellRendererText

Abstract:

No

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.

Deprecated since version 4.10: Applications editing keyboard accelerators should provide their own implementation according to platform design guidelines

classmethod new()[source]
Returns:

the new cell renderer

Return type:

Gtk.CellRenderer

Creates a new GtkCellRendererAccel.

Deprecated since version 4.10.

Signal Details

Gtk.CellRendererAccel.signals.accel_cleared(cell_renderer_accel, path_string)
Signal Name:

accel-cleared

Flags:

RUN_LAST

Parameters:
  • cell_renderer_accel (Gtk.CellRendererAccel) – The object which received the signal

  • path_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:

RUN_LAST

Parameters:
  • cell_renderer_accel (Gtk.CellRendererAccel) – The object which received the signal

  • path_string (str) – the path identifying the row of the edited cell

  • accel_key (int) – the new accelerator keyval

  • accel_mods (Gdk.ModifierType) – the new acclerator modifier mask

  • hardware_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:

int

Default Value:

0

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The keyval of the accelerator.

Gtk.CellRendererAccel.props.accel_mode
Name:

accel-mode

Type:

Gtk.CellRendererAccelMode

Default Value:

Gtk.CellRendererAccelMode.GTK

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

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:

Gdk.ModifierType

Default Value:

0

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The modifier mask of the accelerator.

Gtk.CellRendererAccel.props.keycode
Name:

keycode

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

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.