Gtk.ShortcutsGroup¶
- Subclasses:
- None 
Methods¶
- Inherited:
- Gtk.Box (14), Gtk.Widget (183), GObject.Object (37), Gtk.Accessible (17), Gtk.Buildable (1), Gtk.Orientable (2) 
- Structs:
| 
 | 
Virtual Methods¶
- Inherited:
- Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9) 
Properties¶
- Inherited:
- Gtk.Box (4), Gtk.Widget (35), Gtk.Accessible (1), Gtk.Orientable (1) 
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| w | 
 | ||
| r | 
 | ||
| r/w | 
 | ||
| w | 
 | ||
| r/w | 
 | 
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gtk.ShortcutsGroup(**kwargs)¶
- Bases:
- Abstract:
- No 
- Structure:
 - A - GtkShortcutsGrouprepresents a group of related keyboard shortcuts or gestures.- The group has a title. It may optionally be associated with a view of the application, which can be used to show only relevant shortcuts depending on the application context. - This widget is only meant to be used with [class`Gtk`.ShortcutsWindow]. - The recommended way to construct a - GtkShortcutsGroupis with [class`Gtk`.Builder], by using the- <child>tag to populate a- GtkShortcutsGroupwith one or more [class`Gtk`.ShortcutsShortcut] instances.- If you need to add a shortcut programmatically, use [method`Gtk`.ShortcutsGroup.add_shortcut]. - Deprecated since version 4.18: This widget will be removed in GTK 5 - add_shortcut(shortcut)[source]¶
- Parameters:
- shortcut ( - Gtk.ShortcutsShortcut) – the- GtkShortcutsShortcutto add
 - Adds a shortcut to the shortcuts group. - This is the programmatic equivalent to using [class`Gtk`.Builder] and a - <child>tag to add the child. Adding children with other API is not appropriate as- GtkShortcutsGroupmanages its children internally.- New in version 4.14. - Deprecated since version 4.18: This widget will be removed in GTK 5 
 
Property Details¶
- Gtk.ShortcutsGroup.props.accel_size_group¶
- Name:
- accel-size-group
- Type:
- Default Value:
- Flags:
 - The size group for the accelerator portion of shortcuts in this group. - 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.ShortcutsGroup.props.height¶
- 
A rough measure for the number of lines in this group. This is used internally by GTK, and is not useful for applications. Deprecated since version 4.18: This widget will be removed in GTK 5 
- Gtk.ShortcutsGroup.props.title¶
- 
The title for this group of shortcuts. Deprecated since version 4.18: This widget will be removed in GTK 5 
- Gtk.ShortcutsGroup.props.title_size_group¶
- Name:
- title-size-group
- Type:
- Default Value:
- Flags:
 - The size group for the textual portion of shortcuts in this group. - 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.ShortcutsGroup.props.view¶
- 
An optional view that the shortcuts in this group are relevant for. The group will be hidden if the [property`Gtk`.ShortcutsWindow:view-name] property does not match the view of this group. Set this to Noneto make the group always visible.Deprecated since version 4.18: This widget will be removed in GTK 5