To pack or to grid?
Using pack versus grid in your application is mostly down to personal preference. There doesn't seem to be a particularly dominant reason to use one over the other.
The main advantage of pack is the code tends to be very readable. pack uses words such as left and top to make it clear where the programmer wants the widget to go.
When using pack, sections of the window are also split using frames to allow for much greater control. When variables are named sensibly, this allows anyone changing the code to know exactly which part of a window the widget will end up in (by its parent Frame) and prevents them from having unexpected consequences when changing widgets, such as resizing a widget in the top-left corner of an application, ...
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