The WidgetStack class provides a stack of widgets of which only the top widget is user-visible.
The application programmer can move any widget to the top of the stack at any time using RaiseWidget(), and add or remove widgets using AddWidget() and RemoveWidget(). It is not sufficient to pass the widget stack as parent to a widget which should be inserted into the widgetstack.

VisibleWidget() is the get equivalent of RaiseWidget(); it returns a pointer to the widget that is currently at the top of the stack.

See the demo for a complete review of the functionalities.

Download WidgetStack

Python Files