ShortcutsGroup

class ShortcutsGroup(**properties: Any)

Superclasses: Box, Widget, InitiallyUnowned, Object

Implemented Interfaces: Accessible, Buildable, ConstraintTarget, Orientable

Constructors:

ShortcutsGroup(**properties)

Methods

class ShortcutsGroup
add_shortcut(shortcut: ShortcutsShortcut) None

Adds a shortcut to the shortcuts group.

This is the programmatic equivalent to using Builder and a <child> tag to add the child. Adding children with other API is not appropriate as GtkShortcutsGroup manages its children internally.

Added in version 4.14.

Parameters:

shortcut – the GtkShortcutsShortcut to add

Properties

class ShortcutsGroup
props.accel_size_group: SizeGroup

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.

props.height: int

A rough measure for the number of lines in this group.

This is used internally by GTK, and is not useful for applications.

props.title: str

The title for this group of shortcuts.

props.title_size_group: SizeGroup

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.

props.view: str

An optional view that the shortcuts in this group are relevant for.

The group will be hidden if the view_name property does not match the view of this group.

Set this to None to make the group always visible.