# Python tkinter grid problem?

**URL:** <https://community.unix.com/t/python-tkinter-grid-problem/149233>\
**Category:** Shell Programming and Scripting\
**Created:** [June 19, 2004, 11:49am UTC](https://community.unix.com/t/python-tkinter-grid-problem/149233 "2004-06-19T11:49:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SRCoder](https://community.unix.com/letter_avatar/srcoder/32/5_5575768a8748004e209b776fc1b2916d.png) [@SRCoder](https://community.unix.com/u/SRCoder)\
**Post date:** [June 19, 2004, 11:49am UTC](https://community.unix.com/t/python-tkinter-grid-problem/149233/1 "2004-06-19T11:49:41Z")

</div>

There seems to be some problem with the grid geometry manager, or maybe its just my syntax thats incorrect. Im using Python 2.3.4. My problem is that even when I use the sticky='news' option in any grid method, it just doesnt work period. For example, the following code gives be a window with a small button in the middle. The desired effect was a button whos size matched the size of the window.

```plaintext
# import resources
from Tkinter import *

# the root window
root=Tk()
root.geometry('200x100')
root.title('Grid Tester')
root.resizable(0, 0)
# the tester frame
tester=Button(root, text="Test")
tester.grid(row=0, column=0, sticky='nsew')

# the event loop
root.mainloop()

```

I have tried a few other things such as, sticky=NSEW, sticky=nsew, sticky="NSEW". I hope it doesnt matter what order you put them in.. Please let me know if this is a problem with my syntax, and correct me if so. Also, this is my first post on [unix.com](http://unix.com) so... HELLO EVERY ONE!
