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 (25), GObject.Object (37)

Structs:

Gtk.CellRendererClass (1), GObject.ObjectClass (5)

class

new ()

Virtual Methods

Inherited:

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

do_accel_cleared (path_string)

do_accel_edited (path_string, accel_key, accel_mods, hardware_keycode)

Properties

Inherited:

Gtk.CellRendererText (48), Gtk.CellRenderer (16)

Name

Type

Flags

Short Description

accel-key

int

r/w/en

The keyval of the accelerator

accel-mode

Gtk.CellRendererAccelMode

r/w/en

The type of accelerators

accel-mods

Gdk.ModifierType

r/w/en

The modifier mask of the accelerator

keycode

int

r/w/en

The hardware keycode of the accelerator

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)

Name

Type

Access

Description

parent

Gtk.CellRendererText

r

Class Details

class Gtk.CellRendererAccel(**kwargs)
Bases:

Gtk.CellRendererText

Abstract:

No

Structure:

Gtk.CellRendererAccelClass

Gtk.CellRendererAccel 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.

The Gtk.CellRendererAccel cell renderer was added in GTK+ 2.10.

classmethod new()[source]
Returns:

the new cell renderer

Return type:

Gtk.CellRenderer

Creates a new Gtk.CellRendererAccel.

New in version 2.10.

do_accel_cleared(path_string) virtual
Parameters:

path_string (str) –

do_accel_edited(path_string, accel_key, accel_mods, hardware_keycode) virtual
Parameters:

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.

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:

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.

New in version 2.10.

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.

New in version 2.10.

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.

New in version 2.10.

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.

New in version 2.10.

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.

New in version 2.10.