25 Apr 2005 25 Apr '05
On Mon, 2005-04-25 at 16:15 +0200, Antoine Pitrou wrote:
It may be better, by the way, to run wx in the main thread and Twisted in the secondary thread. Some toolkits supported by wx may not like the fact that they aren't called from the main thread - I'm not sure such a limitation exists but I'm not sure of the contrary either. Twisted, OTOH, does not seem to care at all.
Twisted does care about this for signal handling. If Twisted is run in a thread it will not be able to do shutdown based on signals or run processes correctly (though if you install your own signal handlers that forward info to twisted it can be made to work).