bootstack.TabPage#
- class bootstack.TabPage(page_widget, *, key, owner, layout='vstack', padding=None, gap=0, fill_items=None, expand_items=None, anchor_items=None, columns=None, rows=None, sticky_items=None, auto_flow='row')#
Bases:
objectA handle for one tab — both a layout context and a live controller.
Returned by
Tabs.add()and byTabs.item()/items(). Use it as awithblock to place child widgets, and readkey/ read or setlabel, or callselect()/hide()/show()/remove()to drive the tab afterward.As a context manager it accepts the same layout kwargs as the standalone layout containers —
layout=,gap=,fill_items=,expand_items=,anchor_items=,columns=,rows=,sticky_items=,auto_flow=.- guide_layout(child, **layout_kw)#
- hide()#
Hide this tab without removing it. Restore with
show().
- remove()#
Remove this tab and its page entirely.
- select()#
Select (focus) this tab.
- show()#
Restore this tab after it was hidden.