[Tkinter-discuss] why tkinter do not quit?
守株待兔
1248283536 at qq.com
Tue Aug 9 15:18:26 CEST 2011
here is my program:
from Tkinter import *
def helloButton():
print 'hello button'
root.quit
root = Tk()
Button(root,text = 'Hello Button',command = helloButton).pack()
root.mainloop()
when i click on my button,print is ok,why root.quit have no effect?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20110809/9498b1c6/attachment.html>
More information about the Tkinter-discuss
mailing list