Grid Geometry Manager and grouping?
kpmurphy at my-deja.com.bbs
kpmurphy at my-deja.com.bbs
Mon Jul 17 15:40:05 EDT 2000
richard,
what i'm trying to do is create my own widgets. once i make one, i'd
like to be able to grid it. each of my widgets will have multiple items
in it (ex. label and an entry ==> myWidget) and then i would place
multiples of myWidget together. i like the grid manager because i can
put things exactly where i want them. can you do a grid inside a frame,
then grid multiple frames toghether? thanks,
-->keith
In article <H5N85.886$dL5.17528 at news6-win.server.ntlworld.com>,
"richard_chamberlain" <richard_chamberlain at ntlworld.com> wrote:
> 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.
>
>
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list