Index: Lib/lib-tk/Tkinter.py =================================================================== --- Lib/lib-tk/Tkinter.py (revision 62992) +++ Lib/lib-tk/Tkinter.py (working copy) @@ -2484,9 +2484,12 @@ self.tk.call((self._w, 'bbox') + args)) or None 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')) + selection = self.tk.call(self._w, 'curselection') + if not selection: + return () + else: + return self.tk.splitlist(self._getints(selection)) + def delete(self, first, last=None): """Delete items from FIRST to LAST (not included).""" self.tk.call(self._w, 'delete', first, last)