Gtk.ShortcutsShortcut¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Widget (183), GObject.Object (37), Gtk.Accessible (17), Gtk.Buildable (1)
- Structs:
Virtual Methods¶
- Inherited:
Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
w |
|
||
r/w |
|
||
r/w/en |
|
||
r/w/en |
|
||
r/w |
|
||
r/w |
|
||
r/w/en |
|
||
r/w |
|
||
r/w |
|
||
r/w |
|
||
w |
|
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gtk.ShortcutsShortcut(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A
GtkShortcutsShortcutrepresents a single keyboard shortcut or gesture with a short text.This widget is only meant to be used with
GtkShortcutsWindow.Deprecated since version 4.18: This widget will be removed in GTK 5
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.
Deprecated since version 4.18: This widget will be removed in GTK 5
- Gtk.ShortcutsShortcut.props.accelerator¶
-
The accelerator(s) represented by this object.
This property is used if [property`Gtk`.ShortcutsShortcut:shortcut-type] is set to
Gtk.ShortcutType.ACCELERATOR.The syntax of this property is (an extension of) the syntax understood by [func`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>deleteTwo alternative shortcuts:
<shift>a HomeA range of shortcuts:
<alt>1...<alt>9Several keys pressed together:
Control_L&Control_RA 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.Deprecated since version 4.18: This widget will be removed in GTK 5
- 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 [method`Gtk`.Application.set_accels_for_action], and setting [property`Gtk`.ShortcutsShortcut:accelerator] is not necessary.Deprecated since version 4.18: This widget will be removed in GTK 5
- 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.Deprecated since version 4.18: This widget will be removed in GTK 5
- Gtk.ShortcutsShortcut.props.icon¶
-
An icon to represent the shortcut or gesture.
This property is used if [property`Gtk`.ShortcutsShortcut:shortcut-type] is set to
Gtk.ShortcutType.GESTURE.For the other predefined gesture types, GTK provides an icon on its own.
Deprecated since version 4.18: This widget will be removed in GTK 5
- Gtk.ShortcutsShortcut.props.icon_set¶
-
Trueif an icon has been set.Deprecated since version 4.18: This widget will be removed in GTK 5
- Gtk.ShortcutsShortcut.props.shortcut_type¶
- Name:
shortcut-type- Type:
- Default Value:
- Flags:
The type of shortcut that is represented.
Deprecated since version 4.18: This widget will be removed in GTK 5
- 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.
Deprecated since version 4.18: This widget will be removed in GTK 5
- Gtk.ShortcutsShortcut.props.subtitle_set¶
-
Trueif a subtitle has been set.Deprecated since version 4.18: This widget will be removed in GTK 5
- 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.
Deprecated since version 4.18: This widget will be removed in GTK 5
- 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.
Deprecated since version 4.18: This widget will be removed in GTK 5