pdwidgets.widgets.grid

Grid — fixed-column cell layout (row-major).

class pdwidgets.widgets.grid.Grid(parent, x=0, y=0, w=None, h=None, align=None, align_to=None, fg=None, bg=None, visible=True, value=None, padding=None, columns=2, spacing=micropython.const, cell_h=None)[source]

Bases: Widget

Fixed-column grid layout container.

add_child(child)[source]

Add a child at the next grid cell.

remove_child(child)[source]

Remove a child and reflow remaining cells.