[Twisted-Python] Twisted and wxPython

Can anybody point me towards a nice up-to-date example of the use of Twisted with wxPython? I assume (hope) there's some way to bind the wx event loop into Twisted's Reactor? Or do they need to run in separate threads/processes? Thanks in advance, Jon Mills

On Thu, Nov 5, 2009 at 12:14 PM, Jon Mills <jonmills@moosesoup.com> wrote:
Can anybody point me towards a nice up-to-date example of the use of Twisted with wxPython?
I assume (hope) there's some way to bind the wx event loop into Twisted's Reactor? Or do they need to run in separate threads/processes?
Thanks in advance,
Jon Mills
I typically base my code the example that comes with Twisted. http://twistedmatrix.com/trac/browser/trunk/doc/core/examples/wxdemo.py Is this not working for you, or had you just not seen it? (It took me quite a while to find... ;) ) Kevin Horn

Thanks Kevin, I often find it difficult to know which Twisted examples to follow. Googling around gives several different approaches to Twisted and wx integration - and the recommended solution seems to have evolved over time. I'll take a look at the example in your link. Thanks again On Thu, Nov 5, 2009 at 6:43 PM, Kevin Horn <kevin.horn@gmail.com> wrote:
On Thu, Nov 5, 2009 at 12:14 PM, Jon Mills <jonmills@moosesoup.com> wrote:
Can anybody point me towards a nice up-to-date example of the use of Twisted with wxPython?
I assume (hope) there's some way to bind the wx event loop into Twisted's Reactor? Or do they need to run in separate threads/processes?
Thanks in advance,
Jon Mills
I typically base my code the example that comes with Twisted. http://twistedmatrix.com/trac/browser/trunk/doc/core/examples/wxdemo.py
Is this not working for you, or had you just not seen it? (It took me quite a while to find... ;) )
Kevin Horn
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
-- Jon Mills jonmills@moosesoup.com

On 2009.11.05 18:14:57 +0000, Jon Mills wrote:
Can anybody point me towards a nice up-to-date example of the use of Twisted with wxPython?
I assume (hope) there's some way to bind the wx event loop into Twisted's Reactor? Or do they need to run in separate threads/processes?
wx has multiple event loops so reactor integration isn't as easy as it should be. Longer version of that answer here: http://wiki.wxpython.org/wxPythonAndTwisted Here's an example of doing it with threads: https://pangalactic.us/repo/ampchat -- David Ripton dripton@ripton.net
participants (3)
-
David Ripton
-
Jon Mills
-
Kevin Horn