Gtk.KeyvalTrigger¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
|||
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gtk.KeyvalTrigger(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A
GtkShortcutTrigger
that triggers when a specific keyval and modifiers are pressed.- classmethod new(keyval, modifiers)[source]¶
- Parameters:
keyval (
int
) – The keyval to trigger formodifiers (
Gdk.ModifierType
) – the modifiers that need to be present
- Returns:
A new
GtkShortcutTrigger
- Return type:
Creates a
GtkShortcutTrigger
that will trigger whenever the key with the given keyval and modifiers is pressed.
- get_keyval()[source]¶
- Returns:
the keyval
- Return type:
Gets the keyval that must be pressed to succeed triggering self.
Property Details¶
- Gtk.KeyvalTrigger.props.keyval¶
- Name:
keyval
- Type:
- Default Value:
0
- Flags:
The key value for the trigger.
- Gtk.KeyvalTrigger.props.modifiers¶
- Name:
modifiers
- Type:
- Default Value:
0
- Flags:
The key modifiers for the trigger.