Mercurial > cpython-lru_cache-weakref
diff Mac/Tools/IDE/PythonIDE.py @ 28941:05da7726c027 legacy-trunk
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...)
| author | Just van Rossum <just@letterror.com> |
|---|---|
| date | Sat, 03 May 2003 00:31:35 +0000 |
| parents | 5d4d4ebfd317 |
| children | 89dc069aad2c |
line wrap: on
line diff
--- a/Mac/Tools/IDE/PythonIDE.py Sat May 03 00:27:23 2003 +0000 +++ b/Mac/Tools/IDE/PythonIDE.py Sat May 03 00:31:35 2003 +0000 @@ -12,6 +12,13 @@ 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)
