Install automatic GIL switcher upon IDE startup.

(Jack: maybe this could/should be done in Framework.py instead, that way
apps don't have to think about it. PackMan springs to mind...)
This commit is contained in:
Just van Rossum 2003-05-03 00:31:35 +00:00
parent 96f7d875b7
commit 4e2d23226f
1 changed files with 7 additions and 0 deletions

View File

@ -12,6 +12,13 @@ def init():
if hasattr(MacOS, 'EnableAppswitch'):
MacOS.EnableAppswitch(-1)
try:
import autoGIL
except ImportError:
pass
else:
autoGIL.installAutoGIL()
from Carbon import Qd, QuickDraw
Qd.SetCursor(Qd.GetCursor(QuickDraw.watchCursor).data)