tk/grid |
||||
|
The tk/grid command is used to communicate with the grid geometry manager that arranges widgets in rows and columns inside of another window, called the geometry master (or master window). The tk/grid command can have any of several forms, depending on the option argument:
Relative PlacementThe tk/grid command contains a limited set of capabilities that permit layouts to be created without specifying the row and column information for each slave. This permits slaves to be rearranged, added, or removed without the need to explicitly specify row and column information. When no column or row information is specified for a slave, default values are chosen for column, row, columnspan and rowspan at the time the slave is managed. The values are chosen based upon the current layout of the grid, the position of the slave relative to other slaves in the same tk/grid command, and the presence of the characters -, x, and ^ in tk/grid command where slave names are normally expected.
Corresponding Tcl/Tk command: grid ... |