Tkinter programming problem

furliz furliz at libero.it
Thu Aug 7 10:11:57 CEST 2003


> I did try   self.frame.destroy  as the function  
> self.frame.destroy(), but the Quit button still didn't work. The
> application can be closed via the window corner X, but I'm still
> puzzled as to why it does not respond to Quit.
> 
> Any more suggestions?

why don't use 'sys.exit(0)' as command?
Ex:
quitButton = Button(root,text="Quit",command=sys.exit(0))





More information about the Python-list mailing list