ViewStackPage#
Superclasses: Object
Implemented Interfaces: Accessible
An auxiliary class used by ViewStack.
Methods#
- class ViewStackPage
-
- get_visible() bool#
Gets whether
selfis visible in itsAdwViewStack.This is independent from the
visibleproperty of its widget.
- set_badge_number(badge_number: int) None#
Sets the badge number for this page.
ViewSwitchercan 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_needs_attention(needs_attention: bool) None#
Sets whether the page requires the user attention.
ViewSwitcherwill display it as a dot next to the page icon.- Parameters:
needs_attention – the new value to set
- set_section_title(section_title: str | None = None) None#
Sets the section title for
self.Does nothing unless
starts_sectionis set.Added in version 1.9.
- Parameters:
section_title – the section title
- set_starts_section(starts_section: bool) None#
Sets whether
selfstarts a section.If set to
TRUE,pageswill have a section starting from this page.If
section_titleis set, it should be used as a title for the section.Added in version 1.9.
- Parameters:
starts_section – whether
selfstarts a section
Properties#
- class ViewStackPage
- props.badge_number: int#
The badge number for this page.
ViewSwitchercan 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.
ViewSwitcherwill display it as a dot next to the page icon.
- props.section_title: str#
Section title for this page.
Does nothing unless
starts_sectionis set.Added in version 1.9.
- props.starts_section: bool#
Whether this page starts a section.
If set to
TRUE,pageswill have a section starting from this page.If
section_titleis set, it should be used as a title for the section.Added in version 1.9.