[twisted-python] Communication between GUI thread and twisted thread.

Chris Mellon arkanes at gmail.com
Mon Jun 18 09:32:50 MDT 2007


On 6/18/07, 甜瓜 <littlesweetmelon at gmail.com> wrote:
> > This is a terrible implementation for cooperation between wx and
> > twisted. At the time it was written, it was acceptable, but you really
> > should be using the wxreactor now.
> Really? Oh! Maybe my knowledge is out of date. My opinion comes from
> "The Twisted Documentation - Jan 9, 2007". It says:
> "Twisted currently supports two methods of integrating wxPython.
> Unfortunately, neither method will work on all wxPython platforms
> (such as GTK2 or Windows). It seems that the only portable way to
> integrate with wxPython is to run it in a separate thread."  ^_^
> Therefore I followed that terrible implementation. Does wxreactor get
> improvement? I will read 'choosing-reactor.html' throughly. Thank you.
>

The docs are out of date in this case. Or rather, they are correct,
but incomplete - Twisted now has support for a threaded reactor, and
wxreactor has been updated to use this support, so the integration is
now (mostly) seamless.




More information about the Twisted-Python mailing list