beetlebug▾
/

grid configure

Puts the widgets in the grid with the options, or changes the options of widgets in the grid.

grid configure WINDOW ?WINDOW ...? ?OPTION VALUE ...?

Description

The words of the call are one row of the table, as for grid WINDOW. A widget that is already in the grid keeps each option that the call does not give. An option name can be a unique short form, such as -col.

Returns

An empty string.

Examples

% frame .cf
> frame .cf.a
> grid configure .cf.a -row 1 -column 1
> grid configure .cf.a -padx 7
> lrange [grid info .cf.a] 2 5
-column 1 -row 1

Errors

% grid configure
wrong # args: should be "grid option arg ?arg ...?"
-errorcode TCL WRONGARGS

% frame .cf2
> grid .cf2 -row
extra option or option with no value
-errorcode NONE

% frame .cf3
> grid .cf3 -bogus 1
bad option "-bogus": must be -column, -columnspan, -in, -ipadx, -ipady, -padx, -pady, -row, -rowspan, or -sticky
-errorcode NONE

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztk 1.0.0-beta.1

See also