ViewStackPages
Added in version 1.4.
Superclasses: Object
Implemented Interfaces: ListModel
, SelectionModel
An auxiliary class used by ViewStack
.
See pages
.
Methods
- class ViewStackPages
- get_selected_page() ViewStackPage | None
Gets the
ViewStackPage
for the visible child of a view stackGets the
ViewStackPage
for the visible child of the associated stack.Returns
NULL
if there’s no selected page.Added in version 1.4.
- set_selected_page(page: ViewStackPage) None
Sets the visible child in the associated
ViewStack
.See
visible_child
.Added in version 1.4.
- Parameters:
page – a stack page within the associated stack
Properties
- class ViewStackPages
- props.selected_page: ViewStackPage
The selected
ViewStackPage
within theViewStackPages
.This can be used to keep an up-to-date view of the
ViewStackPage
for The visibleViewStackPage
within the associatedViewStackPages
.This can be used to keep an up-to-date view of the visible child.
Added in version 1.4.