On 2 Jul 2007, at 10:12, Ronald Oussoren wrote: >> Trying to implement a watchdog thread in a Carbon Event-based >> application. Trouble is, the thread's sleep() call never seems to >> return. > > There is no threading support in the Carbon bindings. The wrapper > for RunApplicationEventLoop doesn't give up the GIL, which means > other Python threads don't get a chance to run unless the main > thread is actually handling events in Python code.
Ahh, should've guessed. I'll redo it in PyObjC then. Thanks, has -- http://appscript.sourceforge.net http://rb-appscript.rubyforge.org http://appscript.sourceforge.net/objc-appscript.html _______________________________________________ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig
