ShortcutsSection
Superclasses: Box
, Widget
, InitiallyUnowned
, Object
Implemented Interfaces: Accessible
, Buildable
, ConstraintTarget
, Orientable
- Constructors:
ShortcutsSection(**properties)
Methods
- class ShortcutsSection
- add_group(group: ShortcutsGroup) None
Adds a group to the shortcuts section.
This is the programmatic equivalent to using
Builder
and a<child>
tag to add the child.Adding children with the
GtkBox
API is not appropriate, asGtkShortcutsSection
manages its children internally.Added in version 4.14.
- Parameters:
group – the
GtkShortcutsGroup
to add
Properties
- class ShortcutsSection
- props.max_height: int
The maximum number of lines to allow per column.
This property can be used to influence how the groups in this section are distributed across pages and columns. The default value of 15 should work in most cases.
- props.section_name: str
A unique name to identify this section among the sections added to the
GtkShortcutsWindow
.Setting the
section_name
property to this string will make this section shown in theGtkShortcutsWindow
.