diff options
author | Just van Rossum <just@letterror.com> | 2003-05-03 00:31:35 (GMT) |
---|---|---|
committer | Just van Rossum <just@letterror.com> | 2003-05-03 00:31:35 (GMT) |
commit | 4e2d23226fb3cb93b21507276c238e316b078007 (patch) | |
tree | 4c843f876363d2fda23598de6d6b190218793bcc /Mac/Tools/IDE/PythonIDE.py | |
parent | 96f7d875b7092ec92a24647702757c76cdf9b6a5 (diff) | |
download | cpython-4e2d23226fb3cb93b21507276c238e316b078007.zip cpython-4e2d23226fb3cb93b21507276c238e316b078007.tar.gz cpython-4e2d23226fb3cb93b21507276c238e316b078007.tar.bz2 |
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...)
Diffstat (limited to 'Mac/Tools/IDE/PythonIDE.py')
-rw-r--r-- | Mac/Tools/IDE/PythonIDE.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Mac/Tools/IDE/PythonIDE.py b/Mac/Tools/IDE/PythonIDE.py index 9922bef..b7bc388 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) |