[Tkinter-discuss] Tkinter-discuss Digest, Vol 35, Issue 1

Harlin Seritt harlinseritt at yahoo.com
Thu Jan 4 14:13:11 CET 2007

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.


Harlin Seritt

tkinter-discuss-request at python.org wrote: Send Tkinter-discuss mailing list submissions to
 tkinter-discuss at python.org

To subscribe or unsubscribe via the World Wide Web, visit
or, via email, send a message with subject or body 'help' to
 tkinter-discuss-request at python.org

You can reach the person managing the list at
 tkinter-discuss-owner at python.org

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 at python.org
Message-ID: <459C73E6.7030003 at bitflipper.ca>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Any grid experts about? This minimal Tkinter program:

     from Tkinter import *
     root = Tk()
     B = Button(root)

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?


Cam Farnell


Tkinter-discuss mailing list
Tkinter-discuss at python.org

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

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tkinter-discuss/attachments/20070104/e1ad14fb/attachment.htm 

More information about the Tkinter-discuss mailing list