Layouts
- class Layout
Base class of all layouts.
- class GridLayout(parent=None, rows=1, columns=1, spacing=- 1)
Base class:
Layout
The GridLayout class lays out widgets in a grid.
- Parameters
- add_layout(item, row, column)
Adds a layout to the layout in the specified row and column.
- class HBox(parent=None, spacing=0, margin=0)
Base class:
Layout
The HBox class lines up widgets horizontally.
- Parameters
- add_layout(item, stretch=0)
Adds another layout to the box.
- add_widget(item, stretch=0, alignment=Position.CENTER)
Adds a widget to the layout.