summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-08-12 18:21:08 (GMT)
committerGuido van Rossum <guido@python.org>1997-08-12 18:21:08 (GMT)
commit9d9af2c7a897dc3071cad8277e463da4f7f5b61b (patch)
treeb2d5bcc2592495f7f713694a5a16e308da4ec32e /Lib/tkinter
parenta5e9fb6a65c37e769e8a1eb4e7e2cac6c9500b9c (diff)
downloadcpython-9d9af2c7a897dc3071cad8277e463da4f7f5b61b.zip
cpython-9d9af2c7a897dc3071cad8277e463da4f7f5b61b.tar.gz
cpython-9d9af2c7a897dc3071cad8277e463da4f7f5b61b.tar.bz2
Fixes for the Mac. (Jack)
Diffstat (limited to 'Lib/tkinter')
-rwxr-xr-xLib/tkinter/Tkinter.py6
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: