[Twisted-Python] Can't quit a Tkinter application on MacOS X when using Twisted; fix? workaround?

Jean-Paul Calderone exarkun at divmod.com
Fri Apr 10 12:01:33 EDT 2009


On Tue, 07 Apr 2009 12:20:50 -0700, "Russell E. Owen" <rowen at u.washington.edu> wrote:
>I am trying to convert a cross-platform Python/Tkinter application to
>use Twisted and have run into a problem: at least on MacOS X I can no
>longer quit the application.
>
>I have appended a minimal script showing the problem.

The example omits this piece of code, recommended by the tksupport module
docstring:

  root.protocol('WM_DELETE_WINDOW', reactor.stop)

I know you posted another solution already, but I'm curious to know if
the recommended fix works on OS X or if we should be recommended something
else.

Jean-Paul




More information about the Twisted-Python mailing list