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:
parent
83b120d690
commit
0eb936b47d
|
@ -1478,7 +1478,7 @@ class Tk(Misc, Wm):
|
||||||
if ext not in ('.py', '.pyc', '.pyo'):
|
if ext not in ('.py', '.pyc', '.pyo'):
|
||||||
baseName = baseName + ext
|
baseName = baseName + ext
|
||||||
self.tk = _tkinter.create(screenName, baseName, className)
|
self.tk = _tkinter.create(screenName, baseName, className)
|
||||||
if _MacOS:
|
if _MacOS and hasattr(MacOS, 'SchedParams'):
|
||||||
# Disable event scanning except for Command-Period
|
# Disable event scanning except for Command-Period
|
||||||
_MacOS.SchedParams(1, 0)
|
_MacOS.SchedParams(1, 0)
|
||||||
# Work around nasty MacTk bug
|
# Work around nasty MacTk bug
|
||||||
|
|
Loading…
Reference in New Issue