StackPage

class StackPage(**properties: Any)

Superclasses: Object

Implemented Interfaces: Accessible

GtkStackPage is an auxiliary class used by GtkStack.

Methods

class StackPage
get_child() Widget

Returns the stack child to which self belongs.

get_icon_name() str | None

Returns the icon name of the page.

get_name() str | None

Returns the name of the page.

get_needs_attention() bool

Returns whether the page is marked as “needs attention”.

get_title() str | None

Gets the page title.

get_use_underline() bool

Gets whether underlines in the page title indicate mnemonics.

get_visible() bool

Returns whether page is visible in its GtkStack.

This is independent from the visible property of its widget.

set_icon_name(setting: str) None

Sets the icon name of the page.

Parameters:

setting – the new value to set

set_name(setting: str) None

Sets the name of the page.

Parameters:

setting – the new value to set

set_needs_attention(setting: bool) None

Sets whether the page is marked as “needs attention”.

Parameters:

setting – the new value to set

set_title(setting: str) None

Sets the page title.

Parameters:

setting – the new value to set

set_use_underline(setting: bool) None

Sets whether underlines in the page title indicate mnemonics.

Parameters:

setting – the new value to set

set_visible(visible: bool) None

Sets whether page is visible in its GtkStack.

Parameters:

visible – The new property value

Properties

class StackPage
props.child: Widget

The child that this page is for.

props.icon_name: str

The icon name of the child page.

props.name: str

The name of the child page.

props.needs_attention: bool

Whether the page requires the user attention.

This is used by the StackSwitcher to change the appearance of the corresponding button when a page needs attention and it is not the current one.

props.title: str

The title of the child page.

props.use_underline: bool

If set, an underline in the title indicates a mnemonic.

props.visible: bool

Whether this page is visible.