Ray wrote:
> Most of my Tk experience has been taking code from the widget examples
> and modifying it. I thought that you used packOR grid - but not both.
>
that is correct within the same container (frame/toplevel/etc)
> If I read correctly what you wrote, I can use pack to position the
> frames and then grid to position widgets in the frame. Is that a
> correct interpretation?
>
yes, across you app you can mix them pack some thing, grid others.
Personally, I use grid as much as possible. I find it easier to get
the layouts without some much extra frames all nested in there. This
makes it easier to change, because I just redo the grid command layout
,which I put after all code creation using the shorthand notation, I
don't have to re-parent all my widgets in a different frame. Sometimes
if want a row of evenly spaced buttons across the GUI that don't
fit the natural number of columns in the app, I just grid in a frame
spanning all columns, and use pack to drop the buttons inside.
Bruce
Received on Sun Apr 30 02:16:52 2006