Gtk.MnemonicTrigger¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gtk.MnemonicTrigger(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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:
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.
Property Details¶
- Gtk.MnemonicTrigger.props.keyval¶
- Name:
keyval
- Type:
- Default Value:
0
- Flags:
The key value for the trigger.