<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
It may not indeed, but from what I've read it should, I'll look into
that, thanks for the reply and idea.<br>
<br>
Gabriel<br>
<br>
On 08/24/2010 03:00 PM, Jason Rennie wrote:
<blockquote
 cite="mid:AANLkTi=a3PqDT5VataFpkRDO8y16uKuOOipgLHjJAEQ6@mail.gmail.com"
 type="cite">I have experience getting cherrypy (web server) and
Twisted to play together nicely... &nbsp;As you know, reactor.callFromThread
is necessary for waking-up twisted from a non-twisted thread. &nbsp;Getting
both cherrypy and the reactor running required that I start cherrypy
with a callback to run the reactor. &nbsp;I also needed to turn off
twisted'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? &nbsp;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 moz-do-not-send="true"
 href="mailto:gabriel.rossetti@arimaz.com">gabriel.rossetti@arimaz.com</a>&gt;</span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br>
    <br>
I can'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' t find it<br>
either. I'm looking because for some reason my code doesn'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 class="h5"><br>
_______________________________________________<br>
Twisted-Python mailing list<br>
    <a moz-do-not-send="true"
 href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
    <a moz-do-not-send="true"
 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 moz-do-not-send="true" href="http://www.itasoftware.com/">http://www.itasoftware.com/</a><br>
  <br>
  </div>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Twisted-Python mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a>
<a class="moz-txt-link-freetext" href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a>
  </pre>
</blockquote>
</body>
</html>