from Tkinter import * root=Tk() f=Frame(root,height=200,width=200) b=Button(f,text="quit",command=f.quit) f.pack() root.mainloop()
-------------------------------------------------- from Tkinter import * import sys root=Tk() f=Frame(root,height=200,width=200) b=Button(f,text="quit",command=sys.exit) f.pack() root.mainloop() I am wondering that why the button after clikcing is not closing the window..please any suggestion.. i tries command=f.quit, sys.quit also.. if there is something i'm missing please help -- http://mail.python.org/mailman/listinfo/python-list