Gtk.ShortcutsGroup¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Box (14), Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (16), 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 (34), 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
GtkShortcutsGroup
represents 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
GtkShortcutsGroup
is with [class`Gtk`.Builder], by using the<child>
tag to populate aGtkShortcutsGroup
with one or more [class`Gtk`.ShortcutsShortcut] instances.If you need to add a shortcut programmatically, use [method`Gtk`.ShortcutsGroup.add_shortcut].
- add_shortcut(shortcut)[source]¶
- Parameters:
shortcut (
Gtk.ShortcutsShortcut
) – theGtkShortcutsShortcut
to 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 asGtkShortcutsGroup
manages its children internally.New in version 4.14.
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.
- 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.
- Gtk.ShortcutsGroup.props.title¶
-
The title for this group of shortcuts.
- 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.