On Thu, Dec 9, 2010 at 10:33 AM, Michael Lange <klappn...@web.de> wrote:
> Thus spoketh pyt...@bdurham.com > unto us on Thu, 09 Dec 2010 10:52:39 -0500: > > > Are there any best practice tips regarding when one should use > > pack vs. grid for their layouts? > > > > >From what I've been reading via google, the concencus seems to be > > that grid can handle any pack scenario but not vice-versa. > > > > At least it's hard to figure out something that pack can do and grid > can't. > Imho it's better to use grid, if you cannot setup your layout with > pack without using extra frames. To tell the truth, I hardly ever use > pack at all, as far as I can see, the only advantage of pack is that it > takes 2 or 3 extra lines of code when you want to replace pack > (fill='both', expand=1) with grid. I agree. I pretty much only use pack if I'm throwing something together really quick and simple. If you have more than 3 or 4 widgets, it's probably better to use grid, especially if you want some specific layout options. HTH, Wayne
_______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss