edifice.FixView#

class edifice.FixView(**kwargs)[source]#

Bases: _LinearView[QWidget]

View layout for child widgets with fixed position.

Content that does not fit into the FixView layout will be clipped. To allow scrolling in case of overflow, use FixScrollView.

Use the top and left style properties to set the position of the child widgets.

Example FixView with Label at 100px from top and 200px from left#
with FixView():
    Label(
        text="Label 100px from top and 200px from left",
        style={"top": 100, "left": 200},
    )

Props

All props from QtWidgetElement.

Methods

__init__(**kwargs)

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.