[Twisted-Python] wxreactor: dead close button

Bob Ippolito bob at redivi.com
Tue Jun 7 19:41:48 EDT 2005


On Jun 7, 2005, at 1:24 PM, <Henning.Ramm at mediapro-gmbh.de>  
<Henning.Ramm at mediapro-gmbh.de> wrote:

>>> At least on my system (WinXP, Py 2.3, wxPy 2.6.1, Twisted 2.0.1) the
>>> default close button of the window does nothing; same with your
>>> wxdemo.py; minimize/maximize works. Is there perhaps a bug in the
>>> destructor or event handler of wxreactor? Is there a simple
>>> workaround?
>>>
>>
>> You probably need to hook up reactor.stop() to the event (callback?)
>> generated by the close button.
>>
>
> It should generate wx.EVT_CLOSE, but it never fires. (I use the  
> same OnExit function with a menu entry/event, and there it works.)
> Without Twisted, no own handler is needed. But the wxreactor  
> doesn't seem to block anything...
>
> Are here any wxPython users around who managed to re-enable the  
> close button?

Why not just use the threadedselectreactor?

<http://bob.pythonmac.org/archives/2005/04/17/twisted-and-foreign- 
event-loops/>

-bob





More information about the Twisted-Python mailing list