Hi Cam,

Sounds like you may need to incorporate an additional frame just for the 
buttons... then have that frame "gridded" to use sticky=NW this will keep all 
of your buttons in the button array together.

HTH,

Harlin Seritt


[EMAIL PROTECTED] wrote: Send Tkinter-discuss mailing list submissions to
 tkinter-discuss@python.org

To subscribe or unsubscribe via the World Wide Web, visit
 http://mail.python.org/mailman/listinfo/tkinter-discuss
or, via email, send a message with subject or body 'help' to
 [EMAIL PROTECTED]

You can reach the person managing the list at
 [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Tkinter-discuss digest..."


Today's Topics:

   1. Grid (Cam)


----------------------------------------------------------------------

Message: 1
Date: Wed, 03 Jan 2007 22:26:30 -0500
From: Cam 
Subject: [Tkinter-discuss] Grid
To: tkinter-discuss@python.org
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Any grid experts about? This minimal Tkinter program:

     from Tkinter import *
     root = Tk()
     root.geometry('640x480')
     B = Button(root)
     B.grid(column=0,row=0,sticky='wn')
     root.mainloop()

produces a top-level with a Button centered in it. But I don't want the
button in the middle, I want it in the upper left where you would sort
of expect (0,0) to be. I thought the sticky option might do that but
it doesn't.

If it was just one button I'd use pack. But it's a bunch of buttons and
they really need to be arranged in an array so I'm pretty much stuck
with the grid manager.

Anybody know what I'm doing wrong?

Thanks

Cam Farnell




------------------------------

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


End of Tkinter-discuss Digest, Vol 35, Issue 1
**********************************************


 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to