Geometry Managers
A geometry manager helps you place the widgets in the proper locations within their containers onscreen. (If you are a Java programmer, you are more familiar with the term layout manager.) This job is more complex than it sounds, because of variations in widget size and shape, text justification, alignment, and so on. It is complicated further by the fact that the calculations must be performed again if the window is resized.
Every GUI system has some kind of geometry management, and there often is more than one kind. Tk, in fact, has three: grid, place, and pack (which you've seen briefly).
The grid method views the window as being divided into rows and columns, like a table or a spreadsheet. It is roughly analogous to Java's ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access