Skip to main content

StackPanel Class

Package: GHIElectronics.Endpoint.UI
Namespace: GHIElectronics.Endpoint.UI

WPF-style StackPanel: stacks children vertically (default) or horizontally via LVGL flex layout. StackPanel.Spacing is the gap between children; each child's Widget.SetMargin stacks on top of that.

class StackPanel(Widget): ...

Constructors​

StackPanel(Widget parent)​

def __init__(self, parent: Widget):

Create a stack panel inside parent.

ParameterTypeDescription
parentWidgetContaining widget.

Properties​

Orientation​

Orientation: Orientation # @setter

Direction in which children are arranged. Set-only; LVGL has no read-back.

Returns Orientation

Spacing​

Spacing: int # @setter

Gap in pixels between successive children. Set-only; LVGL has no read-back.

Returns int