diff options
Diffstat (limited to 'Lib/tkinter/Tkinter.py')
-rwxr-xr-x | Lib/tkinter/Tkinter.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/tkinter/Tkinter.py b/Lib/tkinter/Tkinter.py index 287c063..dbf59b1 100755 --- a/Lib/tkinter/Tkinter.py +++ b/Lib/tkinter/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: |