The MacOS module may be available on Mac OS X, but it doesn't have a SchedParams() method, and there's no need to call it anyway.

This commit is contained in:
Jack Jansen 2001-08-23 13:18:10 +00:00
parent 83b120d690
commit 0eb936b47d
1 changed files with 1 additions and 1 deletions

View File

@ -1478,7 +1478,7 @@ class Tk(Misc, Wm):
if ext not in ('.py', '.pyc', '.pyo'):
baseName = baseName + ext
self.tk = _tkinter.create(screenName, baseName, className)
if _MacOS:
if _MacOS and hasattr(MacOS, 'SchedParams'):
# Disable event scanning except for Command-Period
_MacOS.SchedParams(1, 0)
# Work around nasty MacTk bug