edifice.TabView#

class edifice.TabView(labels=None, **kwargs)[source]#

Bases: _LinearView[QTabWidget]

Layout widget with multiple tabs.

Each child of a TabView will be the content of one tab.

../_images/tab_view.png

A TabView with 2 children.#

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.