The grid Command Table 24-1 summarizes the usage of the grid command. Table 24-1. The grid command.grid bbox master ?c1 r1? ?c2 r2? | Returns the bounding box, of the whole grid, the cell at c1, r1, or the cells from c1, r1 to c2, r2. | grid columnconfigure master col ?options? | Sets or queries the configuration of col. Options are -minsize, -weight, and -pad. | grid configure win ?win ...? ?options? | Grids one or more widgets according to the options, which are given in Table 24-2. | grid forget win ?win...? | Unmaps the specified windows. | grid info win | Returns the grid parameters of win. | grid location master x y | Returns the cell column and row under the point x, y in master. | grid propagate master ?boolean? | Enables or disables shrink-wrapping of master. | grid rowconfigure master row ?options? | Sets or queries the configuration of row. Options are -minsize, -weight, and -pad. | grid remove slave | Unmaps slave, but remember its configuration. | grid size master | Returns the number of columns and rows. | grid slaves win ?-row r? ?-column c? | Returns the list of widgets managed by win, or just those in the specified row or column. | Table 24-2 summarizes the grid options for a widget. These are set with the grid configure command, and the current settings are returned by the grid info command. Table 24-2. Grid widget options.-in win | Places inside win. | -column col | Column position. Columns count from zero. | -columnspan n | Spans n columns. | -ipadx pixels | Internal widget padding in the X direction, in screen units. | -ipady pixels | Internal widget padding in the Y direction, in screen units. | -padx pixels | External widget padding in the X direction, in screen units. | -pady pixels | External widget padding in the Y direction, in screen units. | -row row | Row position. Rows count from zero. | -rowspan n | Spans n rows. | -sticky how | Positions widget next to any combination of north (n), south (s), east (w), and west (e) sides of the cell. Use {} for center. | |