commit | 9d9af2c7a897dc3071cad8277e463da4f7f5b61b | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Tue Aug 12 18:21:08 1997 +0000 |
committer | Guido van Rossum <guido@python.org> | Tue Aug 12 18:21:08 1997 +0000 |
tree | b2d5bcc2592495f7f713694a5a16e308da4ec32e | |
parent | a5e9fb6a65c37e769e8a1eb4e7e2cac6c9500b9c [diff] [blame] |
Fixes for the Mac. (Jack)
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 @@ 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: