[Python-checkins] r65328 - python/trunk/Lib/lib-tk/Tkinter.py

benjamin.peterson python-checkins at python.org
Thu Jul 31 17:15:46 CEST 2008


Author: benjamin.peterson
Date: Thu Jul 31 17:15:45 2008
New Revision: 65328

Log:
remove usage of MacOS from Tkinter

Modified:
   python/trunk/Lib/lib-tk/Tkinter.py

Modified: python/trunk/Lib/lib-tk/Tkinter.py
==============================================================================
--- python/trunk/Lib/lib-tk/Tkinter.py	(original)
+++ python/trunk/Lib/lib-tk/Tkinter.py	Thu Jul 31 17:15:45 2008
@@ -41,10 +41,6 @@
 TclError = _tkinter.TclError
 from types import *
 from Tkconstants import *
-try:
-    import MacOS; _MacOS = MacOS; del MacOS
-except ImportError:
-    _MacOS = None
 
 wantobjects = 1
 
@@ -1655,12 +1651,6 @@
     def _loadtk(self):
         self._tkloaded = 1
         global _default_root
-        if _MacOS and hasattr(_MacOS, 'SchedParams'):
-            # Disable event scanning except for Command-Period
-            _MacOS.SchedParams(1, 0)
-            # Work around nasty MacTk bug
-            # XXX Is this one still needed?
-            self.update()
         # Version sanity checks
         tk_version = self.tk.getvar('tk_version')
         if tk_version != _tkinter.TK_VERSION:


More information about the Python-checkins mailing list