edifice.View#
- class edifice.View(layout='column', **kwargs)[source]#
Bases:
_LinearView
Basic layout widget for grouping children together.
Underlying Qt Layout QVBoxLayout or QHBoxLayout or
"none"
Content that does not fit into the View layout will be clipped. To allow scrolling in case of overflow, use
ScrollView
.- Parameters:
layout (
Literal
['row'
,'column'
,'none'
]) –one of
"column"
,"row"
, or"none"
.A row layout will lay its children in a row and a column layout will lay its children in a column. When
layout="row"
orlayout="column"
are set, the position of their children is not adjustable. If layout is"none"
, then all children by default will be positioned at the upper left-hand corner of the View at (x=0, y=0). Children can set thetop
andleft
attributes of their style to position themselves relevative to their parent.
Methods
__init__
([layout])register_ref
(reference)Registers provided
Reference
to this Element.set_key
(key)Sets the key of the 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.