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

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
2002年7月22日 19:55:16 -0700


Update of /cvsroot/python/python/dist/src/Lib/lib-tk
In directory usw-pr-cvs1:/tmp/cvs-serv3556/Lib/lib-tk
Modified Files:
 Tag: release22-maint
	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.160
retrieving revision 1.160.10.1
diff -C2 -d -r1.160 -r1.160.10.1
*** Tkinter.py	13 Oct 2001 09:33:51 -0000	1.160
--- Tkinter.py	23 Jul 2002 02:55:14 -0000	1.160.10.1
***************
*** 2096,2100 ****
 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."""
--- 2096,2100 ----
 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."""

AltStyle によって変換されたページ (->オリジナル) /