edifice.GroupBoxView#

class edifice.GroupBoxView(title=None, **kwargs)[source]#

Bases: _LinearView[QGroupBox]

Group Box layout element with title.

Props

All props from QtWidgetElement plus:

Parameters:

title (Optional[str]) – The group box title text

Usage

Example#
with GroupBoxView(
    title = "My Group Box",
):
    Label(text="Hello")
    Label(text="World")

Note

The GroupBoxView is limited by the underlying Qt Layout QGroupBox because the title is just a str.

There is a better Edifice-based GroupBoxTitleView component example in pyedifice/examples/groupbox.py which allows you to set the title to any Edifice element tree.

../_images/groupbox.png

Methods

__init__([title])

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.