idle BUG

Robin Becker robin at jessikat.fsnet.co.uk
Mon Jun 18 19:03:49 EDT 2001


In article <3b2e552f.2621005 at nntp.ix.netcom.com>, Mike Clarkson
<support at internetdiscovery.com> writes
....
>Robin, try this (you'll have to fix the tk.eval lines back up to be
>all one line). In Tkinter.py, change quit() to
>
>    def quit(self):
>        """Quit the Tcl interpreter. All widgets will be destroyed."""
>        self.tk.eval('foreach w [winfo child .] {wm protocol $w
>WM_DELETE_WINDOW {}; catch {destroy $w}}')
>        self.tk.eval('catch {set w .; wm protocol $w WM_DELETE_WINDOW
>{}; destroy $w}')
>        self.tk.quit()
>
>If it works for you, I'll explain why it's required under Tkinter, but
>not Tk.
>
>This makes self.quit() do what it's documented to do, and leaves 
>self.tk.quit (which is _tkinter.quit) to do what it does now, namely
>signals the mainloop to end but destroys no widgets.
>
...
sorry my app hangs as before. have you got other changes in place?
>Mike.

-- 
Robin Becker



More information about the Python-list mailing list