parent_container to ensure it recreates this underlying expander in the
same location onscreen.
label – The expander’s initial label.
expanded – The expander’s initial expanded value.
append_copy(other: MutableExpander) → None[source]¶
Append a copy of another MutableExpander’s children to this
MutableExpander.
clear() → None[source]¶
Remove the container and its contents entirely. A cleared container can’t
be reused.
exception(exception: BaseException, *, index: Optional[int] = None) → int[source]¶
Add an Exception element to the container and return its index.
markdown(body: SupportsStr, unsafe_allow_html: bool = False, *, help: Optional[str] = None, index: Optional[int] = None) → int[source]¶
Add a Markdown element to the container and return its index.
update(*, new_label: Optional[str] = None, new_expanded: Optional[bool] = None) → None[source]¶
Change the expander’s label and expanded state