Gtk.AlternativeTrigger¶
- 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.AlternativeTrigger(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A
GtkShortcutTrigger
that combines two triggers.The
GtkAlternativeTrigger
triggers when either of two trigger.This can be cascaded to combine more than two triggers.
- classmethod new(first, second)[source]¶
- Parameters:
first (
Gtk.ShortcutTrigger
) – The first trigger that may triggersecond (
Gtk.ShortcutTrigger
) – The second trigger that may trigger
- Returns:
a new
GtkShortcutTrigger
- Return type:
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.
- get_first()[source]¶
- Returns:
the first alternative trigger
- Return type:
Gets the first of the two alternative triggers that may trigger self.
[method`Gtk`.AlternativeTrigger.get_second] will return the other one.
Property Details¶
- Gtk.AlternativeTrigger.props.first¶
- Name:
first
- Type:
- Default Value:
- Flags:
The first
GtkShortcutTrigger
to check.
- Gtk.AlternativeTrigger.props.second¶
- Name:
second
- Type:
- Default Value:
- Flags:
The second
GtkShortcutTrigger
to check.