summaryrefslogtreecommitdiff
path: root/Lib/tkinter/Tkinter.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-08-12 18:21:08 +0000
committerGuido van Rossum <guido@python.org>1997-08-12 18:21:08 +0000
commit9d9af2c7a897dc3071cad8277e463da4f7f5b61b (patch)
treeb2d5bcc2592495f7f713694a5a16e308da4ec32e /Lib/tkinter/Tkinter.py
parenta5e9fb6a65c37e769e8a1eb4e7e2cac6c9500b9c (diff)
downloadcpython-git-9d9af2c7a897dc3071cad8277e463da4f7f5b61b.tar.gz
Fixes for the Mac. (Jack)
Diffstat (limited to 'Lib/tkinter/Tkinter.py')
-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 287c06399c..dbf59b1900 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: