Fixes for the Mac. (Jack)

This commit is contained in:
Guido van Rossum 1997-08-12 18:21:08 +00:00
parent a5e9fb6a65
commit 9d9af2c7a8
3 changed files with 16 additions and 5 deletions

View file

@ -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: