[Twisted-Python] threadedselectreactor and twistd
bob at redivi.com
Tue Sep 13 13:03:25 EDT 2005
On Sep 13, 2005, at 8:39 AM, Stefano Masini wrote:
> On 9/12/05, Antony Kummel <antonykummel at yahoo.com> wrote:
>> Not sure what you mean.
>> If threadedselectreactor can't integrate with twistd,
>> then the problem that threadedselectreactor solves is
>> inherent to twistd, in which case twistd is simply
>> unsuitable for some uses (i.e. GUI)?
> using twisted with GUIs is not trivial, and I found it quite tricky.
> But in the end it's possible and in fact I do it all the time. Here's
> the best solution I could find so far, using wxPython:
> 1) Run wxPython in the main thread
> 2) Run twisted reactor in a secondary thread
> 3) Have special proxy objects that bridge calls from gui code (running
> in one thread) and network code (running inside another)
Have you actually used threadedselectreactor? It sure doesn't sound
like it. It solves this problem without the proxy objects.
More information about the Twisted-Python