Tkinter programming problem

klappnase klappnase at web.de
Tue Aug 5 11:20:56 EDT 2003


Eric Brunel <eric.brunel at pragmadev.com> wrote in message news:<bgnmjv$omq$1 at news-reader4.wanadoo.fr>...
   
> This may also work, but the most common way is the one I describe above. If you 
> want to do it here, you can do:
> 
> def quit(self, event):
>    print "Quitting..."
>    self.master.quit()
> 
> AFAIK, all Tkinter widgets have a quit method that will quit the Tk mainloop.
> 
> HTH

I think Tkinter's quit() method will not work while running from
within the interpreter, because there is no mainloop. I think you will
have to destroy() there.

Best regards

Michael




More information about the Python-list mailing list