]> granicus.if.org Git - python/commitdiff
The MacOS module may be available on Mac OS X, but it doesn't have a SchedParams...
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 23 Aug 2001 13:18:10 +0000 (13:18 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 23 Aug 2001 13:18:10 +0000 (13:18 +0000)
Lib/lib-tk/Tkinter.py

index c7cd2bf831f67a4e436b6d7bf6a830cea791f6f1..f8366cb934ffb46b779d72d190a9415e65a947f0 100644 (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