From 0eb936b47d3cbdee1aa810bba25eb739a146dca6 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Thu, 23 Aug 2001 13:18:10 +0000 Subject: [PATCH] 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. --- Lib/lib-tk/Tkinter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index c7cd2bf831f..f8366cb934f 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