AlternativeTrigger
Superclasses: ShortcutTrigger
, Object
A GtkShortcutTrigger
that combines two triggers.
The GtkAlternativeTrigger
triggers when either of two trigger.
This can be cascaded to combine more than two triggers.
Constructors
- class AlternativeTrigger
- classmethod new(first: ShortcutTrigger, second: ShortcutTrigger) ShortcutTrigger
Creates a
GtkShortcutTrigger
that will trigger whenever either of the two given triggers gets triggered.Note that nesting is allowed, so if you want more than two alternative, create a new alternative trigger for each option.
- Parameters:
first – The first trigger that may trigger
second – The second trigger that may trigger
Methods
- class AlternativeTrigger
- get_first() ShortcutTrigger
Gets the first of the two alternative triggers that may trigger
self
.get_second
will return the other one.
- get_second() ShortcutTrigger
Gets the second of the two alternative triggers that may trigger
self
.get_first
will return the other one.
Properties
- class AlternativeTrigger
- props.first: ShortcutTrigger
The first
GtkShortcutTrigger
to check.
- props.second: ShortcutTrigger
The second
GtkShortcutTrigger
to check.