next up previous contents index
Next: Configuring widgets Up: Tutorial Previous: The pack geometry manager   Contents   Index

The grid geometry manager

The grid geometry manager creates a table-like layout. So to arrange a widget with the grid manager, use the grid function with the parameters of row and column number (starting from zero). There is one keyword parameter :sticky which governs the widget alignment within its table cell. Its a string containing any combination of ``n'' ``e'' ``s'' and ``w''.

The behaviour of the single rows and columns of the grid are controlled by the grid-rowconfigure and grid-columnconfigure functions. Its most common use is to set the weight of a column between 0 and 1 to control the resizing behaviour.

Peter Herth 2006-01-29