QUOTE(jaziey @ 23 Sep, 2009 - 10:21 PM)

QUOTE(Dogstopper @ 23 Sep, 2009 - 03:27 PM)

You must indent everything inside the class by one, python sees it at an emty class.. as in, your function definitions need to be indented.
Ok, I will correct that, but is there a way to keep the gui on the screen so I can see the problem. I know if it is a regular python script I can add " raw_input("\nPress Enter to Exit")"
thanks
Jaziey
The gui code does not have any indentations. It does not use classes. It is a simple script:
from Tkinter import *
#create a root window
root = Tk()
root.title("Lazy Buttons")
root.geometry("200x85")
#create a frame in the window to hold other widgets
app = Frame(root)
app.grid()
# create a button in the frame
bttn1 = Button(app, text = "I do nothing!")
bttn1.grid()
#create a second button in the frame
bttn2 = Button(app)
bttn2.grid()
bttn2["text"] = "Me too!"
#bttn2.configure(test = "Me too!")
#create a third button in the frame
bttn3 = Button(app)
bttn3.grid()
bttn3["text"] = "Same here!"
#kick off the window's event loop
root.mainloop()