[Python-checkins] python/dist/src/Lib/lib-tk Tkinter.py,1.167,1.168

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
Fri, 10 Jan 2003 15:24:34 -0800


Update of /cvsroot/python/python/dist/src/Lib/lib-tk
In directory sc8-pr-cvs1:/tmp/cvs-serv19656/Lib/lib-tk

Modified Files:
	Tkinter.py 
Log Message:
Fix SF bug # 602259, 3rd parameter for Tkinter.scan_dragto

Add the optional gain parameter and pass it to Tk.


Index: Tkinter.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/lib-tk/Tkinter.py,v
retrieving revision 1.167
retrieving revision 1.168
diff -C2 -d -r1.167 -r1.168
*** Tkinter.py	26 Nov 2002 21:39:48 -0000	1.167
--- Tkinter.py	10 Jan 2003 23:24:32 -0000	1.168
***************
*** 2140,2148 ****
          """Remember the current X, Y coordinates."""
          self.tk.call(self._w, 'scan', 'mark', x, y)
!     def scan_dragto(self, x, y):
!         """Adjust the view of the canvas to 10 times the
          difference between X and Y and the coordinates given in
          scan_mark."""
!         self.tk.call(self._w, 'scan', 'dragto', x, y)
      def select_adjust(self, tagOrId, index):
          """Adjust the end of the selection near the cursor of an item TAGORID to index."""
--- 2140,2148 ----
          """Remember the current X, Y coordinates."""
          self.tk.call(self._w, 'scan', 'mark', x, y)
!     def scan_dragto(self, x, y, gain=10):
!         """Adjust the view of the canvas to GAIN times the
          difference between X and Y and the coordinates given in
          scan_mark."""
!         self.tk.call(self._w, 'scan', 'dragto', x, y, gain)
      def select_adjust(self, tagOrId, index):
          """Adjust the end of the selection near the cursor of an item TAGORID to index."""