diff options
Diffstat (limited to 'Lib/lib-tk/Tkinter.py')
-rw-r--r-- | Lib/lib-tk/Tkinter.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 287c063..dbf59b1 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -667,7 +667,11 @@ class Tk(Misc, Wm): try: # Disable event scanning except for Command-Period import MacOS - MacOS.EnableAppswitch(0) + try: + MacOS.SchedParams(1, 0) + except AttributeError: + # pre-1.5, use old routine + MacOS.EnableAppswitch(0) except ImportError: pass else: |