pdwidgets.widgets.tab_view

Tab bar with per-tab content pages.

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

Bases: Widget

Tab bar plus content area with one Page per tab.

set_index(index)[source]

Select the tab at index and show its page.

property index

Index of the currently selected tab.

property pages

List of Page widgets, one per tab.