MnemonicTrigger

class MnemonicTrigger(**properties: Any)

Superclasses: ShortcutTrigger, Object

A GtkShortcutTrigger that triggers when a specific mnemonic is pressed.

Mnemonics require a mnemonic modifier (typically Alt) to be pressed together with the mnemonic key.

Constructors

class MnemonicTrigger
classmethod new(keyval: int) 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.

Parameters:

keyval – The keyval to trigger for

Methods

class MnemonicTrigger
get_keyval() int

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

Properties

class MnemonicTrigger
props.keyval: int

The key value for the trigger.