error
Anish Chapagain
anishchapagain at gmail.com
Mon Jul 21 08:30:19 EDT 2008
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
More information about the Python-list
mailing list