summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-06-02 13:52:16 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-06-02 13:52:16 (GMT)
commit0db1a52227e29272a3f0544ca1dfae57195d548e (patch)
treed841c02a5d5fa61312cdc9ebf0fdba7786d93069 /Lib/tkinter
parent8ff373714c06e0efad62e0b7be68bc5a4a8a6fa5 (diff)
parentca3cd004f3fb5c92227f54a0ea5d9f8b0631f330 (diff)
downloadcpython-0db1a52227e29272a3f0544ca1dfae57195d548e.zip
cpython-0db1a52227e29272a3f0544ca1dfae57195d548e.tar.gz
cpython-0db1a52227e29272a3f0544ca1dfae57195d548e.tar.bz2
Issue #6181: Fixed errors in tkinter.Listbox docstrings.
Based on patch by Guilherme Polo.
Diffstat (limited to 'Lib/tkinter')
-rw-r--r--Lib/tkinter/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py
index f60923a..a9c8ce0 100644
--- a/Lib/tkinter/__init__.py
+++ b/Lib/tkinter/__init__.py
@@ -2602,10 +2602,10 @@ class Listbox(Widget, XView, YView):
return self.tk.splitlist(self.tk.call(
self._w, 'curselection'))
def delete(self, first, last=None):
- """Delete items from FIRST to LAST (not included)."""
+ """Delete items from FIRST to LAST (included)."""
self.tk.call(self._w, 'delete', first, last)
def get(self, first, last=None):
- """Get list of items from FIRST to LAST (not included)."""
+ """Get list of items from FIRST to LAST (included)."""
if last:
return self.tk.splitlist(self.tk.call(
self._w, 'get', first, last))
@@ -2639,7 +2639,7 @@ class Listbox(Widget, XView, YView):
self.tk.call(self._w, 'selection', 'anchor', index)
select_anchor = selection_anchor
def selection_clear(self, first, last=None):
- """Clear the selection from FIRST to LAST (not included)."""
+ """Clear the selection from FIRST to LAST (included)."""
self.tk.call(self._w,
'selection', 'clear', first, last)
select_clear = selection_clear
@@ -2649,7 +2649,7 @@ class Listbox(Widget, XView, YView):
self._w, 'selection', 'includes', index))
select_includes = selection_includes
def selection_set(self, first, last=None):
- """Set the selection from FIRST to LAST (not included) without
+ """Set the selection from FIRST to LAST (included) without
changing the currently selected elements."""
self.tk.call(self._w, 'selection', 'set', first, last)
select_set = selection_set