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

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
Mon, 22 Jul 2002 19:53:00 -0700


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

Modified Files:
	Tkinter.py 
Log Message:
SF patch #581396, Canvas "select_item" always returns None

Return the selected item, if there is any.


Index: Tkinter.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/lib-tk/Tkinter.py,v
retrieving revision 1.162
retrieving revision 1.163
diff -C2 -d -r1.162 -r1.163
*** Tkinter.py	23 Apr 2002 13:27:24 -0000	1.162
--- Tkinter.py	23 Jul 2002 02:52:58 -0000	1.163
***************
*** 2104,2108 ****
      def select_item(self):
          """Return the item which has the selection."""
!         self.tk.call(self._w, 'select', 'item')
      def select_to(self, tagOrId, index):
          """Set the variable end of a selection in item TAGORID to INDEX."""
--- 2104,2108 ----
      def select_item(self):
          """Return the item which has the selection."""
!         return self.tk.call(self._w, 'select', 'item') or None
      def select_to(self, tagOrId, index):
          """Set the variable end of a selection in item TAGORID to INDEX."""