O'Reilly logo

Practical Programming in Tcl & Tk, Third Edition by Brent B. Welch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 winReturns the grid parameters of win.
grid location master x yReturns 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required