class Grid(Frame)

A Grid is a container that lays out a collection of components in a two-dimensional grid.

The initial size of the container, and the width of each column and height of each row, are made just large enough to hold their contents. The horizontal and vertical alignment of components within their cells can be specified.

In addition, the width and/or height of all items may optionally be equalized before they are laid out.

Constructor

Grid(items, keyword = value, ...)
Creates a Grid containing the specified items, which should be a sequence of rows, each of which is a sequence of Components. The following keyword arguments may be used:
row_spacingVertical space to leave between rows.
column_spacingHorizontal space to leave between columns.
align = 'c'Alignment of items within cells. A string made up of the letters 'l', 'r', 't', 'b' and 'c' for left, right, top, bottom and centre.
equalize = ''Specifies whether to make the size of all items equal in the horizontal and/or vertical direction. One of 'w', 'h' or 'wh'.

---