<div class="gmail_quote">Hi Gabriel,</div><div class="gmail_quote"><br></div><div class="gmail_quote">On Thu, Aug 20, 2009 at 5:20 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;">I thought<br>
of maybe putting the wx mainloop in a thread and using the standard<br>
reactor but I don&#39;t know how well this works or even if it&#39;s possible.<br>
</blockquote><div><br></div><div>If you&#39;ve already got all the appropriate code to separate out the GUI into a separate thread and communicate with the networking components via message queues, then this should work just fine.  Normally I&#39;d suspect wx (which I find to be a highly idiosyncratic, buggy, and arbitrarily limited library: have you considered using something else for your GUI?) might have some difficulties that I&#39;m not aware of, but I&#39;m pretty sure several other Twisted users have already done this exact type of integration.</div>
<div><br></div><div>Personally, regardless of UI toolkit, in this situation I&#39;d have the server start up with a &quot;normal&quot; reactor (select, poll, epoll, kqueue: take your pick) and have it spawn a separate GUI process with the GUI reactor, and communicate via a socket.  That way the GUI can be shut down and restarted without killing the back-end, and the back-end could be moved to a different machine.  But I don&#39;t know a lot about your application and there may be some requirements I&#39;m not aware of :).</div>
<div><br></div></div>