[Tutor] Question about grid layout

Alan Gauld alan.gauld at btinternet.com
Sun Jan 17 17:19:55 EST 2016


On 17/01/16 18:27, Ricardo Martínez wrote:
> Hi folks, first thanks to Peter and Alan for the comments about the
> Interpreter, i really appreciate that.

I don't remember giving any comments about the interpreter,
but if I did you're welcome! :-)

> The question that i have in mind is about grid layout, i have the below
> code and i want to resize every widget when the user resize the main
> windows.

Personally I rarely use grid() unless it really is
a form that I'm creating. Usually I use pack() because
I find it more flexible. So I'd suggest that you pack()
the treeview into the frame then grid() the frame.

In the packer use the expand=True and fill=BOTH options.


-- 
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