The grid Geometry Manager
manager divides the window into a grid composed of columns and rows
starting at 0,0 in the upper lefthand corner. The resulting grid
resembles a spreadsheet, with each widget assigned a cell according
to the options to
grid. To create
a grid, create a frame packed inside the parent window and then grid
the widgets within the frame.
You can specify explicit rows and columns using options to
grid. However, if several widgets
are meant to appear in the same row, you can use a single
grid command with a list of widgets rather
grid for each one.
The first widget invokes the
command, and all other widgets for that column are specified as
grid. Any subsequent
grid commands increment the row
by one and start again.
You can use special characters as placeholders:
The previous widget should span this column as well. May not follow
Leaves a blank space.
The widget above this one (same column, previous row) should span this row.
The column in which to place the widget.
nis any integer >= 0.
The row in which to place the widget.
mis any integer >= 0.
The number of columns for the widget to span, beginning with the column specified with
nis any integer > 0.
The number of rows for the widget to span, beginning with the row specified with
mis any integer > 0.
Sticks widget to specified side(s).