[Pythonmac-SIG] Re: Couple'o Tkinter Questions...

Jerry LeVan jerry.levan at eku.edu
Tue Oct 19 04:23:19 CEST 2004


Well, question 2 is easy after all..

     root.rowconfigure(0,weight=1)
     root.columnconfigure(0,weight=1)
     form = Frame(root)
     form.grid(row=0,column=0,sticky='NSEW',padx=20,pady=10)
     form.configure(bg='light green')

Does the trick...

Jerry
On Oct 18, 2004, at 6:29 PM, Jerry LeVan wrote:

> Hi,
>
> I am using apple's python with the "apple extensions" to get pythonw.
> My Tk is the TclTk Aqua Batteries Included version 8.4.7 by Dan 
> Steffen.
>
> 1) Is there anyway to get rid of the white box that surrounds buttons?
>
> 2) This might be foolish, but I can't seem to find the magic 
> incantation
>    that allows a single frame to expand to fill a top level window via
>    the grid manager...
>
>    I can do it via pack ie:
>
>     form = Frame(root)   # root is a Toplevel window
>     #form.grid(row=0,column=0,sticky='NSEW',padx=20,pady=10)
>     #form.rowconfigure(0,weight=1)
>     #
>     form.pack(side=TOP,expand=YES,fill=BOTH,padx=20,pady=10)
>     form.configure(bg='light blue')
>
>     But I just can't seem to find the magic for the grid geometry
>     manager....
>
> Thanks,
>
> Jerry
>



More information about the Pythonmac-SIG mailing list