[Tutor] Tkinter, the correct way

Alan Gauld alan.gauld at yahoo.co.uk
Fri Feb 10 17:59:11 EST 2023


On 10/02/2023 22:08, Phil wrote:

> The author of the book discourages the use of the pack manager, instead 
> favours the grid manager. I've tried both and I think I find the pack 
> manager easier to use. I wonder if I should put more effort into 
> learning to use the grid manager?
Most modern books prefer grid to pack. I use both.
I normally pack the toolbar and status area top and bottom
and have a frame in between. Within that frame I use grid
for all the actual widgets etc. (I also tend to use pack
for managing the tools within the toolbar)

Scale widgets have their place, I've used them occasionally
programming MS Windows using Delphi and Java but never when
using Tkinter. But compared to Labels, Entries, Buttons
and Text widgets they are less common.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos





More information about the Tutor mailing list