Re: [Twisted-Python] reactor.stop() and thread and wxPython problem

2009-01-16 Thread Reza Lotun
>> * Have the reactor run in a seperate thread from wx (making sure to >> use reactor.run(installSignalHandlers=False)) >> * Spawn threads from wx->Twisted in the proper way: use >> reactor.callFromThread(reactor.callInThread(someCall)) A small point, but my code snippet example should have been:

Re: [Twisted-Python] reactor.stop() and thread and wxPython problem

2009-01-16 Thread Stephen Waterbury
Reza Lotun wrote: * Have the reactor run in a seperate thread from wx (making sure to use reactor.run(installSignalHandlers=False)) * Spawn threads from wx->Twisted in the proper way: use reactor.callFromThread(reactor.callInThread(someCall)) I'd second that -- I've used the pattern described h

Re: [Twisted-Python] reactor.stop() and thread and wxPython problem

2009-01-16 Thread Gabriel Rossetti
Reza Lotun wrote: Hi Gabriel, I don't quite understand your question. Do you mean to say that you have written some code with wx and Twisted in an integrated event loop, and are doing something like reactor.callInThread(someCall), and when you call reactor.stop the app doesn't exit? AFAIK, any

Re: [Twisted-Python] reactor.stop() and thread and wxPython problem

2009-01-16 Thread Reza Lotun
Hi Gabriel, I don't quite understand your question. Do you mean to say that you have written some code with wx and Twisted in an integrated event loop, and are doing something like reactor.callInThread(someCall), and when you call reactor.stop the app doesn't exit? AFAIK, any thread spawning goes

[Twisted-Python] reactor.stop() and thread and wxPython problem

2009-01-15 Thread Gabriel Rossetti
Hello everyone, I have written some code using Twisted that spawns threads and another using wxPython integration. For some reason when reactor.stop() is called they don't always exit. I suspect that the reactor is waiting on the threads to finish, which they apparently don't do, and as for th