ShortcutsSection#

Added in version 1.8.

class ShortcutsSection(**properties: Any)#

Superclasses: Object

Implemented Interfaces: ListModel, Buildable

An object representing a section in ShortcutsDialog.

It contains ShortcutsItem objects, use add to add them.

AdwShortcutsSection implements the ListModel interface and allows to access the added shortcut items through it.


AdwShortcutsSection allows adding AdwShortcutsItem objects as children.

Constructors#

class ShortcutsSection
classmethod new(title: str | None = None) ShortcutsSection#

Creates a new AdwShortcutsSection with title as its title if provided.

Added in version 1.8.

Parameters:

title – the section title

Methods#

class ShortcutsSection
add(item: ShortcutsItem) None#

Adds item to self.

Added in version 1.8.

Parameters:

item – the item to add

get_title() str | None#

Gets the title of self.

Added in version 1.8.

set_title(title: str | None = None) None#

Sets the title of self.

Added in version 1.8.

Parameters:

title – the title to use

Properties#

class ShortcutsSection
props.item_type: GType#

The type of the None singleton.

Added in version 1.9.

props.n_items: int#

The type of the None singleton.

Added in version 1.9.

props.title: str#

The type of the None singleton.

Added in version 1.8.