[Python-checkins] CVS: python/dist/src/Lib/lib-tk Tkinter.py,1.153,1.154

Jack Jansen jackjansen@users.sourceforge.net
Thu, 23 Aug 2001 06:18:12 -0700


Update of /cvsroot/python/python/dist/src/Lib/lib-tk
In directory usw-pr-cvs1:/tmp/cvs-serv20730/Python/Lib/lib-tk

Modified Files:
	Tkinter.py 
Log Message:
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.

Index: Tkinter.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/lib-tk/Tkinter.py,v
retrieving revision 1.153
retrieving revision 1.154
diff -C2 -d -r1.153 -r1.154
*** Tkinter.py	2001/08/09 16:57:33	1.153
--- Tkinter.py	2001/08/23 13:18:10	1.154
***************
*** 1479,1483 ****
                  baseName = baseName + ext
          self.tk = _tkinter.create(screenName, baseName, className)
!         if _MacOS:
              # Disable event scanning except for Command-Period
              _MacOS.SchedParams(1, 0)
--- 1479,1483 ----
                  baseName = baseName + ext
          self.tk = _tkinter.create(screenName, baseName, className)
!         if _MacOS and hasattr(MacOS, 'SchedParams'):
              # Disable event scanning except for Command-Period
              _MacOS.SchedParams(1, 0)