StackedPanel
Astryx panel that shows one selected child at a time.
A child mounts the first time it is selected and stays mounted, hidden, afterwards, so switching back keeps its state.
Attributes
attributeselected_index= t.Int(0).tag(sync=True)Functions
constructor__init__(children=None, *, titles=None, keys=None, selected_index=0, width=None, height=None, **props) -> NoneparamchildrenChildInput= NoneChild widgets or keyed child mapping.
paramtitlesTitleInput= NoneOptional labels associated with children.
paramkeysIterable[str] | None= NoneStable child keys for iterable children.
paramselected_indexint= 0Initially visible child index.
paramwidthint | float | str | None= NonePanel width.
paramheightint | float | str | None= NonePanel height.
parampropsAny= {}Returns
Nonefuncselect(index) -> NoneShow the child at index.
paramindexintReturns
None