edifice.TabView#
- class edifice.TabView(labels=None, **kwargs)[source]#
Bases:
_LinearView[QTabWidget]Layout widget with multiple tabs.
Underlying Qt Widget QTabWidget
Each child of a
TabViewwill be the content of one tab.
A TabView with 2 children.#
It’s important for performance to
Element.set_key()the child tabs if you dynamically add and remove child tabs.Props
All props from
QtWidgetElementplus:- Parameters:
labels (
Optional[Sequence[str]]) – The labels for the tabs. The number of labels must match the number of children.
Methods
__init__([labels])register_ref(reference)Registers provided
Referenceto this Element.set_key(key)Set the key of an
Element.Attributes
childrenThe children of this Element.
propsThe props of this Element.
underlyingThe underlying QWidget, which may not exist if this Element has not rendered.