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