summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-08-23 13:18:10 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-08-23 13:18:10 (GMT)
commit0eb936b47d3cbdee1aa810bba25eb739a146dca6 (patch)
treeb9727870e0f0a3b82bf30a6b85ee5cb735085f90 /Lib
parent83b120d690d45ddbdfeb8fdd5359a1272fc3a5f3 (diff)
downloadcpython-0eb936b47d3cbdee1aa810bba25eb739a146dca6.zip
cpython-0eb936b47d3cbdee1aa810bba25eb739a146dca6.tar.gz
cpython-0eb936b47d3cbdee1aa810bba25eb739a146dca6.tar.bz2
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.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/lib-tk/Tkinter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index c7cd2bf..f8366cb 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/Tkinter.py
@@ -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