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 TabView will be the content of one tab.
It’s important to
Element.set_key()
the child tabs if you add and remove child tabs.- 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
Reference
to this Element.set_key
(key)Set the key of an
Element
.Attributes
children
The children of this Element.
props
The props of this Element.
underlying
The underlying QWidget, which may not exist if this Element has not rendered.