Layout
GuiWidgetLayout
GuiWidgetLayout(
title: str,
*rows: Sequence[
GuiWidget | GuiWidgetLayout | Sequence[GuiWidget | GuiWidgetLayout]
],
spacing: int = 6
)
Layout for grouping and positioning widgets.
Parameters:
-
title
(str
) –Layout title in GUI
-
rows
(Sequence[GuiWidget | GuiWidgetLayout | Sequence[GuiWidget | GuiWidgetLayout]]
, default:()
) –A tuple of items to put in a row. Items can be widgets, layouts or tuples of widgets or layouts. If item is a tuple it's a column of items inside the tuple.
-
spacing
(int
, default:6
) –space between layout items
Example
Note
Calls can't be subscribed to GuiWidgetLayout
.
Pre-declare widgets and subscribe calls to them.