I have experience getting cherrypy (web server) and Twisted to play together nicely...  As you know, reactor.callFromThread is necessary for waking-up twisted from a non-twisted thread.  Getting both cherrypy and the reactor running required that I start cherrypy with a callback to run the reactor.  I also needed to turn off twisted&#39;s signal handling and install my own signal handling to ensure proper shut down.<div>
<br></div><div>Are you sure that wx.CallAfter is the right thing for wx calls from Twisted?  Since Twisted is an event loop, it may not release control in the same fashion as other wx calls.</div><div><br></div><div>Jason<br>
<br><div class="gmail_quote">On Tue, Aug 24, 2010 at 5:40 AM, Gabriel Rossetti <span dir="ltr">&lt;<a href="mailto:gabriel.rossetti@arimaz.com">gabriel.rossetti@arimaz.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br>
<br>
I can&#39;t find any examples of using Twisted with wxPython, were wx is in<br>
a seperate thread. I used to have one somewhere but can&#39; t find it<br>
either. I&#39;m looking because for some reason my code doesn&#39;t work (the<br>
GUI freezes), even though I use reactor.callFromThread() for Twisted<br>
calls from wx and wx.CallAfter() for wx calls from Twisted. Can anyone<br>
point me to an example?<br>
<br>
Thank you,<br>
<font color="#888888">Gabriel<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Jason Rennie<br>Research Scientist, ITA Software<br>617-714-2645<br><a href="http://www.itasoftware.com/">http://www.itasoftware.com/</a><br><br>
</div>