bootstack.SplitPane#

class bootstack.SplitPane(frame, *, key, paned, owner, layout='column', padding=None, gap=0, horizontal_items=None, vertical_items=None, grow_items=False, columns=None, rows=None, auto_flow='row')#

Bases: object

A handle for one split pane — both a layout context and a live controller.

Returned by SplitView.add() and by SplitView.item() / panes. Use it as a with block to place child widgets inside the pane, and read or set key / weight or call remove() 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=, horizontal_items=, vertical_items=, grow_items=, columns=, rows=, auto_flow=.

property key: str#

The pane’s unique key, used with SplitView.item() / remove().

property weight: int#

Relative resize weight — panes with a higher weight take proportionally more space when the container grows. A pane with weight=0 keeps its size and does not grow (a fixed pane). Assigning a new value resizes live.

guide_layout(child, **layout_kw)#
remove()#

Remove this pane and its content from the split view.