Re: [Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Gabriel Rossetti
On 08/24/2010 04:26 PM, Itamar Turner-Trauring wrote: > On Tue, 2010-08-24 at 15:22 +0200, Gabriel Rossetti wrote: > > >> Ok, so you put Twisted in a thread? I read in several posts that this >> posed problems, have you had any drawbacks? >> > reactor.spawnProcess won't notice processes h

Re: [Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Gabriel Rossetti
On 08/24/2010 04:37 PM, Stephen Waterbury wrote: > On 08/24/2010 10:08 AM, Stephen Waterbury wrote: >> On 08/24/2010 09:24 AM, Stephen Waterbury wrote: >>> On 08/24/2010 09:22 AM, Gabriel Rossetti wrote: Ok, so you put Twisted in a thread? I read in several posts that this posed problems,

Re: [Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Gabriel Rossetti
On 08/24/2010 07:32 PM, Andrew Francis wrote: > Hi > > >> I can't find any examples of using Twisted with wxPython, were wx is in >> a seperate thread. I used to have one somewhere but can' t find it >> either. I'm looking because for some reason my code doesn't work (the >> GUI freezes), even

Re: [Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Andrew Francis
Hi >I can't find any examples of using Twisted with wxPython, were wx is in >a seperate thread. I used to have one somewhere but can' t find it >either. I'm looking because for some reason my code doesn't work (the >GUI freezes), even though I use reactor.callFromThread() for Twisted >calls f

Re: [Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Itamar Turner-Trauring
On Tue, 2010-08-24 at 15:22 +0200, Gabriel Rossetti wrote: > Ok, so you put Twisted in a thread? I read in several posts that this > posed problems, have you had any drawbacks? reactor.spawnProcess won't notice processes have exited on posix platforms (though you can fix this by installing your

Re: [Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Stephen Waterbury
On 08/24/2010 09:24 AM, Stephen Waterbury wrote: > On 08/24/2010 09:22 AM, Gabriel Rossetti wrote: >> Ok, so you put Twisted in a thread? I read in several posts that this >> posed problems, have you had any drawbacks? > > I haven't observed any. Reflecting on this a little further (and with the c

Re: [Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Stephen Waterbury
On 08/24/2010 09:22 AM, Gabriel Rossetti wrote: > On 08/24/2010 03:06 PM, Stephen Waterbury wrote: >> On 08/24/2010 05:40 AM, Gabriel Rossetti wrote: >> >>> Hello, >>> >>> I can't find any examples of using Twisted with wxPython, were wx is in >>> a seperate thread. I used to have one somewhere but

Re: [Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Gabriel Rossetti
On 08/24/2010 02:11 PM, Itamar Turner-Trauring wrote: > On Tue, 2010-08-24 at 11:40 +0200, Gabriel Rossetti wrote: > >> Hello, >> >> I can't find any examples of using Twisted with wxPython, were wx is in >> a seperate thread. I used to have one somewhere but can' t find it >> either. I'm looki

Re: [Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Gabriel Rossetti
On 08/24/2010 03:06 PM, Stephen Waterbury wrote: > On 08/24/2010 05:40 AM, Gabriel Rossetti wrote: > >> Hello, >> >> I can't find any examples of using Twisted with wxPython, were wx is in >> a seperate thread. I used to have one somewhere but can' t find it >> either. I'm looking because for s

Re: [Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Gabriel Rossetti
It may not indeed, but from what I've read it should, I'll look into that, thanks for the reply and idea. Gabriel On 08/24/2010 03:00 PM, Jason Rennie wrote: I have experience getting cherrypy (web server) and Twisted to play together nicely... As you know, reactor.callFromThread is necessary

Re: [Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Stephen Waterbury
On 08/24/2010 05:40 AM, Gabriel Rossetti wrote: > Hello, > > I can't find any examples of using Twisted with wxPython, were wx is in > a seperate thread. I used to have one somewhere but can' t find it > either. I'm looking because for some reason my code doesn't work (the > GUI freezes), even thou

Re: [Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Jason Rennie
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.

Re: [Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Itamar Turner-Trauring
On Tue, 2010-08-24 at 11:40 +0200, Gabriel Rossetti wrote: > Hello, > > I can't find any examples of using Twisted with wxPython, were wx is in > a seperate thread. I used to have one somewhere but can' t find it > either. I'm looking because for some reason my code doesn't work (the > GUI free

[Twisted-Python] Twisted with wxPython in a thread

2010-08-24 Thread Gabriel Rossetti
Hello, I can't find any examples of using Twisted with wxPython, were wx is in a seperate thread. I used to have one somewhere but can' t find it either. I'm looking because for some reason my code doesn't work (the GUI freezes), even though I use reactor.callFromThread() for Twisted calls fro