Grid layout: arrange widget in a grid

Grid layout: arrange widget in a grid

class pymt.ui.widgets.layout.gridlayout.MTGridLayout(**kwargs)

Bases: pymt.ui.widgets.layout.abstractlayout.MTAbstractLayout

Grid layout arrange item in a matrix.

Parameters :
cols : int, default is None

Number of columns in grid

rows : int, default is None

Number of rows in grid

spacing : int, default to 1

Spacing between widgets

uniform_width : bool, default to False

Try to have same width for all children

uniform_height : bool, default to False

Try to have same height for all children

Previous topic

Box layout: arrange widget in horizontal or vertical

Next topic

ScreenLayout: display only one widget in fullscreen at time

This Page