Gtk.MnemonicTrigger

g GObject.Object GObject.Object Gtk.ShortcutTrigger Gtk.ShortcutTrigger GObject.Object->Gtk.ShortcutTrigger Gtk.MnemonicTrigger Gtk.MnemonicTrigger Gtk.ShortcutTrigger->Gtk.MnemonicTrigger

Subclasses:

None

Methods

Inherited:

Gtk.ShortcutTrigger (9), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (keyval)

get_keyval ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

keyval

int

r/w/co

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Gtk.MnemonicTrigger(**kwargs)
Bases:

Gtk.ShortcutTrigger

Abstract:

No

Structure:

Gtk.MnemonicTriggerClass

A GtkShortcutTrigger that triggers when a specific mnemonic is pressed.

Mnemonics require a *mnemonic modifier* (typically <kbd>Alt</kbd>) to be pressed together with the mnemonic key.

classmethod new(keyval)[source]
Parameters:

keyval (int) – The keyval to trigger for

Returns:

A new GtkShortcutTrigger

Return type:

Gtk.MnemonicTrigger

Creates a GtkShortcutTrigger that will trigger whenever the key with the given keyval is pressed and mnemonics have been activated.

Mnemonics are activated by calling code when a key event with the right modifiers is detected.

get_keyval()[source]
Returns:

the keyval

Return type:

int

Gets the keyval that must be pressed to succeed triggering self.

Property Details

Gtk.MnemonicTrigger.props.keyval
Name:

keyval

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The key value for the trigger.