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

Fredrik Lundh python-dev@python.org
Wed, 9 Aug 2000 11:29:59 -0700


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

Modified Files:
	Tkinter.py 
Log Message:


-- added xview_moveto, xview_scroll, yview_moveto, yview_scroll
   to the Text method (closes Bug #110605)

Index: Tkinter.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/lib-tk/Tkinter.py,v
retrieving revision 1.142
retrieving revision 1.143
diff -C2 -r1.142 -r1.143
*** Tkinter.py	2000/08/09 18:03:11	1.142
--- Tkinter.py	2000/08/09 18:29:51	1.143
***************
*** 2831,2839 ****
              return self._getdoubles(self.tk.call(self._w, 'xview'))
          self.tk.call((self._w, 'xview') + what)
!     def yview(self, *what):
          """Query and change vertical position of the view."""
!         if not what:
              return self._getdoubles(self.tk.call(self._w, 'yview'))
!         self.tk.call((self._w, 'yview') + what)
      def yview_pickplace(self, *what):
          """Obsolete function, use see."""
--- 2831,2855 ----
              return self._getdoubles(self.tk.call(self._w, 'xview'))
          self.tk.call((self._w, 'xview') + what)
!     def xview_moveto(self, fraction):
!         """Adjusts the view in the window so that FRACTION of the
!         total width of the canvas is off-screen to the left."""
!         self.tk.call(self._w, 'xview', 'moveto', fraction)
!     def xview_scroll(self, number, what):
!         """Shift the x-view according to NUMBER which is measured
!         in "units" or "pages" (WHAT)."""
!         self.tk.call(self._w, 'xview', 'scroll', number, what)
!     def yview(self, *args):
          """Query and change vertical position of the view."""
!         if not args:
              return self._getdoubles(self.tk.call(self._w, 'yview'))
!         self.tk.call((self._w, 'yview') + args)
!     def yview_moveto(self, fraction):
!         """Adjusts the view in the window so that FRACTION of the
!         total height of the canvas is off-screen to the top."""
!         self.tk.call(self._w, 'yview', 'moveto', fraction)
!     def yview_scroll(self, number, what):
!         """Shift the y-view according to NUMBER which is measured
!         in "units" or "pages" (WHAT)."""
!         self.tk.call(self._w, 'yview', 'scroll', number, what)
      def yview_pickplace(self, *what):
          """Obsolete function, use see."""