PreferencesDialog
Added in version 1.5.
Superclasses: Dialog
, Widget
, InitiallyUnowned
, Object
Implemented Interfaces: Accessible
, Buildable
, ConstraintTarget
A dialog showing application’s preferences.
The AdwPreferencesDialog
widget presents an application’s preferences
gathered into pages and groups. The preferences are searchable by the user.
CSS nodes
AdwPreferencesDialog
has a main CSS node with the name dialog
and the
style class .preferences
.
Constructors
Methods
- class PreferencesDialog
- add(page: PreferencesPage) None
Adds a preferences page to
self
.Added in version 1.5.
- Parameters:
page – the page to add
- add_toast(toast: Toast) None
Displays
toast
.See
add_toast
.Added in version 1.5.
- Parameters:
toast – a toast
- get_visible_page() PreferencesPage | None
Gets the currently visible page of
self
.Added in version 1.5.
- get_visible_page_name() str | None
Gets the name of currently visible page of
self
.Added in version 1.5.
- push_subpage(page: NavigationPage) None
Pushes
page
onto the subpage stack ofself
.The page will be automatically removed when popped.
Added in version 1.5.
- Parameters:
page – the subpage
- remove(page: PreferencesPage) None
Removes a page from
self
.Added in version 1.5.
- Parameters:
page – the page to remove
- set_search_enabled(search_enabled: bool) None
Sets whether search is enabled for
self
.Added in version 1.5.
- Parameters:
search_enabled – whether search is enabled
- set_visible_page(page: PreferencesPage) None
Makes
page
the visible page ofself
.Added in version 1.5.
- Parameters:
page – a page of
self
- set_visible_page_name(name: str) None
Makes the page with the given name visible.
See
visible_page
.Added in version 1.5.
- Parameters:
name – the name of the page to make visible
Properties
Fields
- class PreferencesDialog
- parent_instance