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

Fredrik Lundh python-dev@python.org
Thu, 7 Sep 2000 08:05:16 -0700


Update of /cvsroot/python/python/dist/src/Lib/lib-tk
In directory slayer.i.sourceforge.net:/tmp/cvs-serv707/lib/lib-tk

Modified Files:
	Tkinter.py 
Log Message:


Older Tk versions don't support mousewheel support.  Set event.delta
to zero if that's the case (closes bug #113727)


Index: Tkinter.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/lib-tk/Tkinter.py,v
retrieving revision 1.146
retrieving revision 1.147
diff -C2 -r1.146 -r1.147
*** Tkinter.py	2000/08/09 19:26:47	1.146
--- Tkinter.py	2000/09/07 15:05:09	1.147
***************
*** 1051,1055 ****
          e.x_root = getint(X)
          e.y_root = getint(Y)
!         e.delta = getint(D)
          return (e,)
      def _report_exception(self):
--- 1051,1058 ----
          e.x_root = getint(X)
          e.y_root = getint(Y)
!         try:
!             e.delta = getint(D)
!         except ValueError:
!             e.delta = 0
          return (e,)
      def _report_exception(self):