edifice.HScrollView#

class edifice.HScrollView(on_scroll_vertical=None, on_scroll_horizontal=None, on_range_vertical=None, on_range_horizontal=None, scrollbar_policy_horizontal=ScrollBarPolicy.ScrollBarAsNeeded, scrollbar_policy_vertical=ScrollBarPolicy.ScrollBarAsNeeded, **kwargs)[source]#

Bases: _ScrollView[QHBoxLayout]

Scrollable vertical column layout.

../_images/scroll_view.png

An HScrollView containing a Label.#

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

Props

All props from QtWidgetElement plus:

Parameters:
  • on_scroll_vertical (Optional[Callable[[int], None]]) – Event handler for when the vertical scrollbar position changes. See QScrollBar.valueChanged.

  • on_scroll_horizontal (Optional[Callable[[int], None]]) –

    Event handler for when the horizontal scrollbar position changes. See QScrollBar.valueChanged.

  • on_range_vertical (Optional[Callable[[int, int], None]]) – Event handler for when the vertical scrollbar range changes. See QScrollBar.rangeChanged.

  • on_range_horizontal (Optional[Callable[[int, int], None]]) –

    Event handler for when the horizontal scrollbar range changes. See QScrollBar.rangeChanged. The event handler function will be passed the new range as a tuple of

  • scrollbar_policy_horizontal (ScrollBarPolicy) – The policy for the horizontal scrollbar. See QAbstractScrollArea.setHorizontalScrollBarPolicy.

  • scrollbar_policy_vertical (ScrollBarPolicy) – The policy for the vertical scrollbar. See QAbstractScrollArea.setVerticalScrollBarPolicy.

Methods

__init__([on_scroll_vertical, ...])

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.