Adw.PreferencesPage¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Adw.PreferencesPage(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A page from [class`PreferencesDialog`].
<picture> <source srcset=”preferences-page-dark.png” media=”(prefers-color-scheme: dark)”> <img src=”preferences-page.png” alt=”preferences-page”> </picture>
The
AdwPreferencesPage
widget gathers preferences groups into a single page of a preferences window.- CSS nodes
AdwPreferencesPage
has a single CSS node with namepreferencespage
.- Accessibility
AdwPreferencesPage
uses theGTK_ACCESSIBLE_ROLE_GROUP
role.- classmethod new()¶
- Returns:
the newly created
AdwPreferencesPage
- Return type:
Creates a new
AdwPreferencesPage
.
- add(group)¶
- Parameters:
group (
Adw.PreferencesGroup
) – the group to add
Adds a preferences group to self.
- get_description()¶
- Returns:
the description of self.
- Return type:
Gets the description of self.
New in version 1.4.
- get_icon_name()¶
-
Gets the icon name for self.
- get_use_underline()¶
- Returns:
whether an embedded underline in the title indicates a mnemonic
- Return type:
Gets whether an embedded underline in the title indicates a mnemonic.
- remove(group)¶
- Parameters:
group (
Adw.PreferencesGroup
) – the group to remove
Removes a group from self.
- scroll_to_top()¶
Scrolls the scrolled window of self to the top.
New in version 1.3.
- set_description(description)¶
- Parameters:
description (
str
) – the description
Sets the description of self.
The description is displayed at the top of the page.
New in version 1.4.
- set_icon_name(icon_name)¶
-
Sets the icon name for self.
Property Details¶
- Adw.PreferencesPage.props.description¶
- Name:
description
- Type:
- Default Value:
''
- Flags:
The description to be displayed at the top of the page.
New in version 1.4.
- Adw.PreferencesPage.props.icon_name¶
- Name:
icon-name
- Type:
- Default Value:
''
- Flags:
The icon name for this page.
- Adw.PreferencesPage.props.title¶
- Name:
title
- Type:
- Default Value:
''
- Flags:
The title for this page.