Handy.StatusPage

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Bin Gtk.Bin Handy.StatusPage Handy.StatusPage Gtk.Bin->Handy.StatusPage Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.Widget->Gtk.Container

Subclasses:

None

Methods

Inherited:

Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)

Structs:

Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

new ()

get_description ()

get_icon_name ()

get_title ()

set_description (description)

set_icon_name (icon_name)

set_title (title)

Virtual Methods

Inherited:

Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

Properties

Inherited:

Gtk.Container (3), Gtk.Widget (39)

Name

Type

Flags

Short Description

description

str

r/w/en

The description to be displayed below the title

icon-name

str

r/w/en

The name of the icon to be used

title

str

r/w/en

The title to be displayed below the icon

Style Properties

Inherited:

Gtk.Widget (17)

Signals

Inherited:

Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Fields

Inherited:

Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Class Details

class Handy.StatusPage(**kwargs)
Bases:

Gtk.Bin

Abstract:

No

Structure:

Handy.StatusPageClass

A page used for empty/error states and similar use-cases.

The HdyStatusPage widget can have an icon, a title, a description and a custom widget which is displayed below them.

CSS nodes

HdyStatusPage has a main CSS node with name statuspage.

New in version 1.2.

classmethod new()
Returns:

the newly created HdyStatusPage

Return type:

Gtk.Widget

Creates a new HdyStatusPage.

New in version 1.2.

get_description()
Returns:

the description for self

Return type:

str or None

Gets the description for self.

New in version 1.2.

get_icon_name()
Returns:

the icon name for self

Return type:

str or None

Gets the icon name for self.

New in version 1.2.

get_title()
Returns:

the title for self

Return type:

str or None

Gets the title for self.

New in version 1.2.

set_description(description)
Parameters:

description (str or None) – the description

Sets the description for self.

New in version 1.2.

set_icon_name(icon_name)
Parameters:

icon_name (str or None) – the icon name

Sets the icon name for self.

New in version 1.2.

set_title(title)
Parameters:

title (str or None) – the title

Sets the title for self.

New in version 1.2.

Property Details

Handy.StatusPage.props.description
Name:

description

Type:

str

Default Value:

''

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The description to be displayed below the title.

New in version 1.2.

Handy.StatusPage.props.icon_name
Name:

icon-name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The name of the icon to be used.

New in version 1.2.

Handy.StatusPage.props.title
Name:

title

Type:

str

Default Value:

''

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The title to be displayed below the icon.

New in version 1.2.