edifice.FixScrollView#

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

Bases: _LinearView[QScrollArea]

Scrollable layout widget for child widgets with fixed position.

../_images/scroll_view.png

A ScrollView containing a Label.#

Overflows in both the x and y direction will cause a scrollbar to show.

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

Example FixScrollView with Label at 100px from top and 200px from left#
with FixScrollView():
    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.