Alexnb wrote:

> 
> there is a button towards the bottom called the defineIt button. this is the
> button in the red frame. If you look right above the big comment called
> constants for buttons, that frame called definebuttonF is the red frame. I
> need the parent to be the mainContainer frame. However, if you make it the
> baseContainer frame. that is what I want it to look like. See if you can
> make it work. I haven't been able to yet. I know this may seem like it would
> take a while; but I really would like it if someone helped. 
> 

Make another frame, which is a child of self.mainContainer and pack the
LEFT and RIGHT frames in it.  Now your frame with the red background is
packed underneath and is a child of mainContainer.

eg:


    def define_Frame(self):

        #Destroy all child widgets
        self.destroyMainChildren()


        myMessage="Please type in all the words that you would like  to
define"
        Label(self.mainContainer, text=myMessage,
                    justify=LEFT).pack(side=TOP, anchor=N)

        f = Frame(self.mainContainer)
        f.pack(side=TOP, expand=YES, fill=BOTH)

        #The LEFT Frame that comes up when you hit define
        self.defineContainer1 = Frame(f, bg="green")
        self.defineContainer1.pack(side=LEFT, ipadx = 5,
                                    ipady = 5, expand=YES, fill=BOTH)

        #The RIGHT Frame that comes up when you hit define
        self.defineContainer2 = Frame(f, bg="yellow")
        self.defineContainer2.pack(side=LEFT, ipadx=5,
                                    ipady=5, expand=YES, fill=BOTH)

        #This frame is where the define button goes
        self.defineButtonF = Frame(self.mainContainer, bg="red")
        self.defineButtonF.pack(side=BOTTOM,
                                anchor=S,
                                ipady=5,
                                ipadx=5,
                                fill=BOTH,
                                expand=YES)

Regards,

John
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to