PreferencesPage#
Superclasses: Widget, InitiallyUnowned, Object
Implemented Interfaces: Accessible, Buildable, ConstraintTarget
A page from PreferencesDialog.
The AdwPreferencesPage widget gathers preferences groups into a single page
of a preferences window.
CSS nodes#
AdwPreferencesPage has a single CSS node with name preferencespage.
Accessibility#
AdwPreferencesPage uses the group role.
Constructors#
Methods#
- class PreferencesPage
- add(group: PreferencesGroup) None#
Adds a preferences group to
self.- Parameters:
group – the group to add
- get_group(index: int) PreferencesGroup | None#
Gets the group at
index.Can return
NULLifindexis larger than the number of groups in the page.Added in version 1.8.
- Parameters:
index – a group index
- insert(group: PreferencesGroup, index: int) None#
Inserts a preferences group to
selfatindex.If
indexis negative or larger than the number of groups, appends the group, same asadd.Added in version 1.8.
- Parameters:
group – the group to add
index – the index to insert
groupa
- remove(group: PreferencesGroup) None#
Removes a group from
self.- Parameters:
group – the group to remove
- set_banner(banner: Banner | None = None) None#
Sets the banner displayed at the top of the page.
Added in version 1.7.
- Parameters:
banner – the banner to display at the top of the page
- set_description(description: str) None#
Sets the description of
self.The description is displayed at the top of the page.
Added in version 1.4.
- Parameters:
description – the description
- set_description_centered(centered: bool) None#
Sets whether the description should be centered.
Added in version 1.6.
- Parameters:
centered – If the description should be centered
Properties#
Fields#
- class PreferencesPage
- parent_instance#