edifice.GroupBoxView#
- class edifice.GroupBoxView(title=None, **kwargs)[source]#
Bases:
_LinearView[QGroupBox]Group Box layout element with title.
Props
All props from
QtWidgetElementplus:- 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
GroupBoxViewis limited by the underlying Qt Layout QGroupBox because the title is just astr.There is a better Edifice-based
GroupBoxTitleViewcomponent example in pyedifice/examples/groupbox.py which allows you to set the title to any Edifice element tree.
Methods
__init__([title])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.