ViewStackPage
Superclasses: Object
Implemented Interfaces: Accessible
An auxiliary class used by ViewStack
.
Methods
- class ViewStackPage
-
- get_visible() bool
Gets whether
self
is visible in itsAdwViewStack
.This is independent from the
visible
property of its widget.
- set_badge_number(badge_number: int) None
Sets the badge number for this page.
ViewSwitcher
can display it as a badge next to the page icon. It is commonly used to display a number of unread items within the page.It can be used together with
needs_attention
.- Parameters:
badge_number – the new value to set
- set_icon_name(icon_name: str | None = None) None
Sets the icon name of the page.
- Parameters:
icon_name – the icon name
- set_name(name: str | None = None) None
Sets the name of the page.
- Parameters:
name – the page name
- set_needs_attention(needs_attention: bool) None
Sets whether the page requires the user attention.
ViewSwitcher
will display it as a dot next to the page icon.- Parameters:
needs_attention – the new value to set
Properties
- class ViewStackPage
- props.badge_number: int
The badge number for this page.
ViewSwitcher
can display it as a badge next to the page icon. It is commonly used to display a number of unread items within the page.It can be used together with
needs_attention
.
- props.needs_attention: bool
Whether the page requires the user attention.
ViewSwitcher
will display it as a dot next to the page icon.