Layout
GuiWidgetLayout
GuiWidgetLayout(
*rows: Sequence[GuiWidget | GuiWidgetLayout | None | Sequence],
spacing: int = 6,
title: str | None = None
)
Bases: GuiWindowItem
Layout for grouping and positioning widgets
Parameters:
-
rows(Sequence[GuiWidget | GuiWidgetLayout | None | Sequence], default:()) –A tuple of items to put in a row. Items can be widgets, layouts,
Nonefor spacers or Sequences (list, tuple) of all the above. If item is a Sequence, it's a column of items in the Sequence. To stretch the widget multiply it by the stretch multiplier:gui_widget_obj * 2. -
spacing(int, default:6) –space between layout items
-
title(str | None, default:None) –Title for dock widget and position saving, set by type if
None
Example
Note
Calls can't be subscribed to GuiWidgetLayout. Subscribe calls to widgets instead.