Gtk.ShortcutsShortcut¶
- Subclasses:
- None 
Methods¶
Virtual Methods¶
Properties¶
- Inherited:
- Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1) 
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| w | Accelerator Size Group | ||
| r/w | The accelerator keys for shortcuts of type ‘Accelerator’ | ||
| r/w/en | The name of the action | ||
| r/w/en | Text direction for which this shortcut is active | ||
| r/w | The icon to show for shortcuts of type ‘Other Gesture’ | ||
| r/w | Whether an icon has been set | ||
| r/w/en | The type of shortcut that is represented | ||
| r/w | A short description for the gesture | ||
| r/w | Whether a subtitle has been set | ||
| r/w | A short description for the shortcut | ||
| w | Title Size Group | 
Child Properties¶
- Inherited:
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gtk.ShortcutsShortcut(*args, **kwargs)¶
- Bases:
- Abstract:
- No 
- Structure:
 - A - Gtk.ShortcutsShortcutrepresents a single keyboard shortcut or gesture with a short text. This widget is only meant to be used with- Gtk.ShortcutsWindow.
Property Details¶
- Gtk.ShortcutsShortcut.props.accel_size_group¶
- Name:
- accel-size-group
- Type:
- Default Value:
- Flags:
 - The size group for the accelerator portion of this shortcut. - This is used internally by GTK+, and must not be modified by applications. 
- Gtk.ShortcutsShortcut.props.accelerator¶
- 
The accelerator(s) represented by this object. This property is used if Gtk.ShortcutsShortcut:shortcut-typeis set toGtk.ShortcutType.ACCELERATOR.The syntax of this property is (an extension of) the syntax understood by Gtk.accelerator_parse(). Multiple accelerators can be specified by separating them with a space, but keep in mind that the available width is limited. It is also possible to specify ranges of shortcuts, using...between the keys. Sequences of keys can be specified using a+or&between the keys.Examples: - A single shortcut: - <ctl><alt>delete
- Two alternative shortcuts: - <shift>a Home
- A range of shortcuts: - <alt>1...<alt>9
- Several keys pressed together: - Control_L&Control_R
- A sequence of shortcuts or keys: - <ctl>c+<ctl>x
 Use + instead of & when the keys may (or have to be) pressed sequentially (e.g use t+t for ‘press the t key twice’). Note that <,>and&need to be escaped as <, > and & when used in .ui files.
- Gtk.ShortcutsShortcut.props.action_name¶
- Name:
- action-name
- Type:
- Default Value:
- Flags:
 - A detailed action name. If this is set for a shortcut of type - Gtk.ShortcutType.ACCELERATOR, then GTK+ will use the accelerators that are associated with the action via- Gtk.Application.set_accels_for_action(), and setting- Gtk.ShortcutsShortcut- ::acceleratoris not necessary.- New in version 3.22. 
- Gtk.ShortcutsShortcut.props.direction¶
- Name:
- direction
- Type:
- Default Value:
- Flags:
 - The text direction for which this shortcut is active. If the shortcut is used regardless of the text direction, set this property to - Gtk.TextDirection.NONE.
- Gtk.ShortcutsShortcut.props.icon¶
- 
An icon to represent the shortcut or gesture. This property is used if Gtk.ShortcutsShortcut:shortcut-typeis set toGtk.ShortcutType.GESTURE. For the other predefined gesture types, GTK+ provides an icon on its own.
- Gtk.ShortcutsShortcut.props.shortcut_type¶
- Name:
- shortcut-type
- Type:
- Default Value:
- Flags:
 - The type of shortcut that is represented. 
- Gtk.ShortcutsShortcut.props.subtitle¶
- 
The subtitle for the shortcut or gesture. This is typically used for gestures and should be a short, one-line text that describes the gesture itself. For the predefined gesture types, GTK+ provides a subtitle on its own. 
- Gtk.ShortcutsShortcut.props.title¶
- 
The textual description for the shortcut or gesture represented by this object. This should be a short string that can fit in a single line. 
- Gtk.ShortcutsShortcut.props.title_size_group¶
- Name:
- title-size-group
- Type:
- Default Value:
- Flags:
 - The size group for the textual portion of this shortcut. - This is used internally by GTK+, and must not be modified by applications.