From: Jack Jansen Date: Thu, 23 Aug 2001 13:18:10 +0000 (+0000) Subject: The MacOS module may be available on Mac OS X, but it doesn't have a SchedParams... X-Git-Tag: v2.2a3~374 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0eb936b47d3cbdee1aa810bba25eb739a146dca6;p=python 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. --- diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index c7cd2bf831..f8366cb934 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