Grid Geometry Manager and grouping?

richard_chamberlain richard_chamberlain at ntlworld.com
Wed Jul 5 16:44:31 EDT 2000


Hi Keith,

For what purpose do you want to group the areas?

An example of frames:

from Tkinter import *
root=Tk()
frame1=Frame(root,relief=GROOVE,borderwidth=3)
frame2=Frame(root,relief=GROOVE,borderwidth=3)
for i in range(1,9):
    Label(frame1,text="Frame: 1 - Label: %d" %i).pack()
    Label(frame2,text="Frame: 2 - Label: %d" %i).pack()
frame1.pack(side=LEFT,fill=BOTH,expand=1)
frame2.pack(side=LEFT,fill=BOTH,expand=1)

root.mainloop()

Pmw has got Pmw.Group, a framed widget on which you can have a label or
other widget in the frame and then a number of widgets within the frame.

Give me an example of what you want to achieve and I'll have a go.

Richard

Keith Murphy <kpmurphy at my-deja.com> wrote in message
news:8k013q$lon$1 at nnrp1.deja.com...
> i've found that i like grid the best.  is there a way to group sections
> of the window together... like the left side is for one purpose and the
> right for another?  I have been playing with frames to no avail.
>
> i really appreciate all the help this ng has given me thus far in
> learning python.  kudos to all of you!
>
> -->keith
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.





More information about the Python-list mailing list