Skip to content

grid

pdwidgets.widgets.grid

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

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=PAD, cell_h=None)

Bases: Widget

Fixed-column grid layout container.

Place children in a fixed-column grid in row-major order.

add_child(child)

Add a child at the next grid cell.

remove_child(child)

Remove a child and reflow remaining cells.