Mercurial > cpython-lru_cache-weakref
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 28940:fa057824c9b4 | 28941:05da7726c027 |
|---|---|
| 9 | 9 |
| 10 def init(): | 10 def init(): |
| 11 import MacOS | 11 import MacOS |
| 12 if hasattr(MacOS, 'EnableAppswitch'): | 12 if hasattr(MacOS, 'EnableAppswitch'): |
| 13 MacOS.EnableAppswitch(-1) | 13 MacOS.EnableAppswitch(-1) |
| 14 | |
| 15 try: | |
| 16 import autoGIL | |
| 17 except ImportError: | |
| 18 pass | |
| 19 else: | |
| 20 autoGIL.installAutoGIL() | |
| 14 | 21 |
| 15 from Carbon import Qd, QuickDraw | 22 from Carbon import Qd, QuickDraw |
| 16 Qd.SetCursor(Qd.GetCursor(QuickDraw.watchCursor).data) | 23 Qd.SetCursor(Qd.GetCursor(QuickDraw.watchCursor).data) |
| 17 | 24 |
| 18 import macresource | 25 import macresource |
