Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0db1a52

Browse files
Issue #6181: Fixed errors in tkinter.Listbox docstrings.
Based on patch by Guilherme Polo.
2 parents 8ff3737 + ca3cd00 commit 0db1a52

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Lib/tkinter/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2602,10 +2602,10 @@ def curselection(self):
26022602
return self.tk.splitlist(self.tk.call(
26032603
self._w, 'curselection'))
26042604
def delete(self, first, last=None):
2605-
"""Delete items from FIRST to LAST (not included)."""
2605+
"""Delete items from FIRST to LAST (included)."""
26062606
self.tk.call(self._w, 'delete', first, last)
26072607
def get(self, first, last=None):
2608-
"""Get list of items from FIRST to LAST (not included)."""
2608+
"""Get list of items from FIRST to LAST (included)."""
26092609
if last:
26102610
return self.tk.splitlist(self.tk.call(
26112611
self._w, 'get', first, last))
@@ -2639,7 +2639,7 @@ def selection_anchor(self, index):
26392639
self.tk.call(self._w, 'selection', 'anchor', index)
26402640
select_anchor = selection_anchor
26412641
def selection_clear(self, first, last=None):
2642-
"""Clear the selection from FIRST to LAST (not included)."""
2642+
"""Clear the selection from FIRST to LAST (included)."""
26432643
self.tk.call(self._w,
26442644
'selection', 'clear', first, last)
26452645
select_clear = selection_clear
@@ -2649,7 +2649,7 @@ def selection_includes(self, index):
26492649
self._w, 'selection', 'includes', index))
26502650
select_includes = selection_includes
26512651
def selection_set(self, first, last=None):
2652-
"""Set the selection from FIRST to LAST (not included) without
2652+
"""Set the selection from FIRST to LAST (included) without
26532653
changing the currently selected elements."""
26542654
self.tk.call(self._w, 'selection', 'set', first, last)
26552655
select_set = selection_set

0 commit comments

Comments
 (0)