ShortcutsSection#
Added in version 1.8.
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
AdwShortcutsSectionwithtitleas its title if provided.Added in version 1.8.
- Parameters:
title – the section title
Methods#
- class ShortcutsSection
- add(item: ShortcutsItem) None#
Adds
itemtoself.Added in version 1.8.
- Parameters:
item – the item to add