pdwidgets.widgets.navigator

Page stack navigator.

class pdwidgets.widgets.navigator.Navigator(parent, x=0, y=0, w=None, h=None, align=None, align_to=None, fg=None, bg=None, visible=True, value=None, padding=None)[source]

Bases: Widget

Page stack with push, pop, and replace navigation.

property top

The visible top page, or None if empty.

push(page)[source]

Show page and hide the previous top page.

pop()[source]

Hide the top page and reveal the one under it. Returns the popped page.

replace(page)[source]

Replace the entire stack with a single page.