From: Just van Rossum Date: Sat, 3 May 2003 00:31:35 +0000 (+0000) Subject: Install automatic GIL switcher upon IDE startup. X-Git-Tag: v2.3c1~885 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e2d23226fb3cb93b21507276c238e316b078007;p=python 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...) --- diff --git a/Mac/Tools/IDE/PythonIDE.py b/Mac/Tools/IDE/PythonIDE.py index 9922bef0e3..b7bc388f08 100644 --- a/Mac/Tools/IDE/PythonIDE.py +++ b/Mac/Tools/IDE/PythonIDE.py @@ -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)