ViewStackPages

Added in version 1.4.

class ViewStackPages(**properties: Any)

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 stack

Gets 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 the ViewStackPages.

This can be used to keep an up-to-date view of the ViewStackPage for The visible ViewStackPage within the associated ViewStackPages.

This can be used to keep an up-to-date view of the visible child.

Added in version 1.4.