Tkinter Canvas/Grid question

Michael Peuser mpeuser at web.de
Fri Sep 12 04:06:25 EDT 2003


"Gary Richardson" <garyr at fidalgo.net>
> Michael, Jeff,
>
> Thanks for your replies. I made the changes indicated above and the
resizing
> works just fine now. I'm still puzzled as to why pack() would be used with
> the frame and grid() used with the canvas, and other widgets.

No, no! I just use pack() because it is much simpler and you made no
constraints as to how to show the frame in the toplevel.. There is a lot of
useful information in that chapter from Nacy Welsh's book

.....
> was under the impression that only a single geometry manager should be
used
> in a program. I guess the rule is: a single geometry manager must be used
> within a frame and its descendants. Is that correct?

Nearly. You can freely choose the g.m. in EVERY frame (but then stick to it
in THAT frame)

Kindly
Michael P








More information about the Python-list mailing list