-
Notifications
You must be signed in to change notification settings - Fork 0
Layouts
GolemNikidastrov edited this page Apr 21, 2026
·
1 revision
All Layouts accept base parameters: size, style, content (a list/dictionary of child elements).
Arranges elements one after another vertically (Column) or horizontally (Row).
-
Specific kwargs:
-
spacing(int | float): Distance between elements (default is 10).
-
-
Methods:
-
add_item(item: NevuObject, alignment: Align)— Add an element with alignment.
-
A rigid grid. Elements are positioned by cell coordinates.
-
Specific kwargs:
-
row(int): Number of rows. -
column(int): Number of columns.
-
-
Methods:
-
add_item(item: NevuObject, x: int, y: int)— Add an element to a specific cell (starting from 1).
-
A scrollable container (a ScrollBar appears if the content doesn't fit).
-
Specific kwargs:
-
spacing(int | float): Spacing between elements. -
arrow_scroll_power(int): Scroll speed using arrow keys. -
wheel_scroll_power(int): Scroll speed using the mouse wheel. -
inverted_scrolling(bool): Invert scrolling. -
scrollbar_perc(NvVector2): Custom slider size in percentages.
-