Adw.PreferencesRow¶
- Subclasses:
Methods¶
- Inherited:
Gtk.ListBoxRow (12), Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1), Gtk.Actionable (5)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
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.PreferencesRow(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A [class`Gtk`.ListBoxRow] used to present preferences.
The
AdwPreferencesRow
widget has a title that [class`PreferencesDialog`] will use to let the user look for a preference. It doesn’t present the title in any way and lets you present the preference as you please.[class`ActionRow`] and its derivatives are convenient to use as preference rows as they take care of presenting the preference’s title while letting you compose the inputs of the preference around it.
- classmethod new()¶
- Returns:
the newly created
AdwPreferencesRow
- Return type:
Creates a new
AdwPreferencesRow
.
- get_title()¶
- Returns:
the title
- Return type:
Gets the title of the preference represented by self.
- get_title_selectable()¶
- Returns:
whether the user can copy the title from the label
- Return type:
Gets whether the user can copy the title from the label
New in version 1.1.
- get_use_markup()¶
- Returns:
whether to use markup
- Return type:
Gets whether to use Pango markup for the title label.
New in version 1.2.
- 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.
- set_title(title)¶
- Parameters:
title (
str
) – the title
Sets the title of the preference represented by self.
The title is interpreted as Pango markup unless [property`PreferencesRow`:py:data::use-markup<Adw.PreferencesRow.props.use_markup>] is set to
FALSE
.
- set_title_selectable(title_selectable)¶
- Parameters:
title_selectable (
bool
) –TRUE
if the user can copy the title from the label
Sets whether the user can copy the title from the label
See also [property`Gtk`.Label:selectable].
New in version 1.1.
Property Details¶
- Adw.PreferencesRow.props.title¶
- Name:
title
- Type:
- Default Value:
''
- Flags:
The title of the preference represented by this row.
The title is interpreted as Pango markup unless [property`PreferencesRow`:py:data::use-markup<Adw.PreferencesRow.props.use_markup>] is set to
FALSE
.
- Adw.PreferencesRow.props.title_selectable¶
- Name:
title-selectable
- Type:
- Default Value:
- Flags:
Whether the user can copy the title from the label.
See also [property`Gtk`.Label:selectable].
New in version 1.1.
- Adw.PreferencesRow.props.use_markup¶
- Name:
use-markup
- Type:
- Default Value:
- Flags:
Whether to use Pango markup for the title label.
Subclasses may also use it for other labels, such as subtitle.
See also [func`Pango`.parse_markup].
New in version 1.2.