[Patches] [ python-Patches-581396 ] Canvas "select_item" always returns None
noreply@sourceforge.net
noreply@sourceforge.net
Sun, 14 Jul 2002 12:23:44 -0700
Patches item #581396, was opened at 2002-07-14 19:23
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=581396&group_id=5470
Category: Tkinter
Group: Python 2.1.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthias Klose (doko)
Assigned to: Nobody/Anonymous (nobody)
Summary: Canvas "select_item" always returns None
Initial Comment:
bug in 2.1.3, 2.2.1 and CVS HEAD. One liner patch:
*** /usr/lib/python2.1/lib-tk/Tkinter.py.orig Wed Jul
3 17:04:28 2002
--- /usr/lib/python2.1/lib-tk/Tkinter.py Wed Jul
3 17:04:31 2002
***************
*** 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')
def select_to(self, tagOrId, index):
"""Set the variable end of a selection in
item TAGORID to INDEX."""
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=581396&group_id=5470