[ python-Bugs-869780 ] curselection() in Tkinter.py should return
ints
SourceForge.net
noreply at sourceforge.net
Sat Jan 3 02:26:24 EST 2004
Bugs item #869780, was opened at 2004-01-03 15:26
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=869780&group_id=5470
Category: Tkinter
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Zhang Le (ejoy)
Assigned to: Martin v. Löwis (loewis)
Summary: curselection() in Tkinter.py should return ints
Initial Comment:
I noticed that in Tkinter.py curselection() always
return strings instead of ints, (users have to use
map(int, list) to get the int values) but why? Here's
the code I found in Python 2.2/2.3. It seems someone
has noticed the problem before.
def curselection(self):
"""Return list of indices of currently selected
item."""
# XXX Ought to apply self._getints()...
return self.tk.splitlist(self.tk.call(
self._w, 'curselection'))
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=869780&group_id=5470
More information about the Python-bugs-list
mailing list