Adw.StatusPage¶
- 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 |
|||
r/w/en |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Adw.StatusPage(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A page used for empty/error states and similar use-cases.
<picture> <source srcset=”status-page-dark.png” media=”(prefers-color-scheme: dark)”> <img src=”status-page.png” alt=”status-page”> </picture>
The
AdwStatusPage
widget can have an icon, a title, a description and a custom widget which is displayed below them.- CSS nodes
AdwStatusPage
has a main CSS node with namestatuspage
.AdwStatusPage
can use the .compact style class for when it needs to fit into a small space such a sidebar or a popover.- classmethod new()¶
- Returns:
the newly created
AdwStatusPage
- Return type:
Creates a new
AdwStatusPage
.
- get_child()¶
- Returns:
the child widget of self
- Return type:
Gtk.Widget
orNone
Gets the child widget of self.
- get_description()¶
-
Gets the description markup for self.
- get_paintable()¶
- Returns:
the paintable
- Return type:
Gets the paintable for self.
- set_child(child)¶
- Parameters:
child (
Gtk.Widget
orNone
) – the child widget
Sets the child widget of self.
- set_description(description)¶
-
Sets the description markup for self.
The description is displayed below the title. It is parsed as Pango markup.
- set_icon_name(icon_name)¶
-
Sets the icon name for self.
Changing this will set [property`StatusPage`:py:data::paintable<Adw.StatusPage.props.paintable>] to
NULL
.
- set_paintable(paintable)¶
- Parameters:
paintable (
Gdk.Paintable
orNone
) – the paintable
Sets the paintable for self.
Changing this will set [property`StatusPage`:py:data::icon-name<Adw.StatusPage.props.icon_name>] to
NULL
.
Property Details¶
- Adw.StatusPage.props.child¶
- Name:
child
- Type:
- Default Value:
- Flags:
The child widget.
- Adw.StatusPage.props.description¶
- Name:
description
- Type:
- Default Value:
''
- Flags:
The description markup to be displayed below the title.
- Adw.StatusPage.props.icon_name¶
- Name:
icon-name
- Type:
- Default Value:
- Flags:
The name of the icon to be used.
Changing this will set [property`StatusPage`:py:data::paintable<Adw.StatusPage.props.paintable>] to
NULL
.
- Adw.StatusPage.props.paintable¶
- Name:
paintable
- Type:
- Default Value:
- Flags:
The paintable to be used.
Changing this will set [property`StatusPage`:py:data::icon-name<Adw.StatusPage.props.icon_name>] to
NULL
.
- Adw.StatusPage.props.title¶
- Name:
title
- Type:
- Default Value:
''
- Flags:
The title to be displayed below the icon.
It is not parsed as Pango markup.