ShortcutsWindow

class ShortcutsWindow(*args, **kwargs)

Superclasses: Window, Widget, InitiallyUnowned, Object

Implemented Interfaces: Accessible, Buildable, ConstraintTarget, Native, Root, ShortcutManager

Constructors:

ShortcutsWindow(**properties)

Methods

class ShortcutsWindow
add_section(section: ShortcutsSection) None

Adds a section to the shortcuts window.

This is the programmatic equivalent to using Builder and a <child> tag to add the child.

Using set_child is not appropriate as the shortcuts window manages its children internally.

Added in version 4.14.

Parameters:

section – the GtkShortcutsSection to add

Properties

class ShortcutsWindow
props.section_name: str

The name of the section to show.

This should be the section-name of one of the GtkShortcutsSection objects that are in this shortcuts window.

props.view_name: str

The view name by which to filter the contents.

This should correspond to the view property of some of the ShortcutsGroup objects that are inside this shortcuts window.

Set this to None to show all groups.

Signals

class ShortcutsWindow.signals
close() None

Emitted when the user uses a keybinding to close the window.

This is a keybinding signal.

The default binding for this signal is the Escape key.

search() None

Emitted when the user uses a keybinding to start a search.

This is a keybinding signal.

The default binding for this signal is Control-F.