bootstack.SplitPane#
- class bootstack.SplitPane(frame, *, key, paned, 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 split pane — both a layout context and a live controller.
Returned by
SplitView.add()and bySplitView.item()/panes. Use it as awithblock to place child widgets inside the pane, and read or setkey/weightor callremove()to inspect, resize, or drop the pane 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=.- property weight: int#
Relative resize weight — panes with a higher weight take proportionally more space when the container grows. Assigning a new value resizes live.
- guide_layout(child, **layout_kw)#
- remove()#
Remove this pane and its content from the split view.