grid rowconfigure

grid rowconfigure master index ?-option value...?

Query or set the row properties of the index row of the geometry master, master.
The valid options are -minsize, -weight, -uniform and -pad.

If one or more options are provided, then index may be given as a list of row indices to which the configuration options will operate on.

The -minsize option sets the minimum size, in screen units, that will be permitted for this row.

The -weight option (an integer value) sets the relative weight for apportioning any extra spaces among rows.

A weight of zero (0) indicates the row will not deviate from its requested size.

A row whose weight is two will grow at twice the rate as a row of weight one when extra space is allocated to the layout.

The -uniform option, when a non-empty value is supplied, places the row in a uniform group with other rows that have the same value for -uniform.

The space for rows belonging to a uniform group is allocated so that their sizes are always in strict proportion to their -weight values. See "THE GRID ALGORITHM" below for further details.

The -pad option specifies the number of screen units that will be added to the largest window contained completely in that row when the grid geometry manager requests a size from the containing window.

If only an option is specified, with no value, the current value of that option is returned.

If only the master window and index is specified, all the current settings are returned in an list of "-option value" pairs.

Little example to play with (the first row and column react to resizing):

grid [label .1 -bg red]  [label .2 -bg green]  -sticky news
grid [label .3 -bg blue] [label .4 -bg yellow] -sticky news
grid rowconfig    . 0 -weight 1
grid columnconfig . 0 -weight 1

See also: