diff options
author | Guido van Rossum <guido@python.org> | 1997-02-14 16:21:16 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-02-14 16:21:16 (GMT) |
commit | 764d6c7acd078fd0114ee7066561d836879ae0e5 (patch) | |
tree | d9712c0be508aff0f7e8a682546bad5bc424c00a /Lib | |
parent | 1851a67695276039116834a86facd31c66ef53a8 (diff) | |
download | cpython-764d6c7acd078fd0114ee7066561d836879ae0e5.zip cpython-764d6c7acd078fd0114ee7066561d836879ae0e5.tar.gz cpython-764d6c7acd078fd0114ee7066561d836879ae0e5.tar.bz2 |
Gave the Listbox selection methods their correct (longer) names.
Removed select_adjust -- Tk no longer supports this.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/lib-tk/Tkinter.py | 6 | ||||
-rwxr-xr-x | Lib/tkinter/Tkinter.py | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index a19cf50..5a0cb3d 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -1267,18 +1267,20 @@ class Listbox(Widget): i = self.tk.call(self._w, 'index', index) if i == 'none': return None return self.tk.getint(i) - def select_adjust(self, index): - self.tk.call(self._w, 'select', 'adjust', index) def select_anchor(self, index): self.tk.call(self._w, 'selection', 'anchor', index) + selection_anchor = select_anchor def select_clear(self, first, last=None): self.tk.call(self._w, 'selection', 'clear', first, last) + selection_clear = select_clear def select_includes(self, index): return self.tk.getboolean(self.tk.call( self._w, 'selection', 'includes', index)) + selection_includes = select_includes def select_set(self, first, last=None): self.tk.call(self._w, 'selection', 'set', first, last) + selection_set = select_set def size(self): return self.tk.getint(self.tk.call(self._w, 'size')) def xview(self, *what): diff --git a/Lib/tkinter/Tkinter.py b/Lib/tkinter/Tkinter.py index a19cf50..5a0cb3d 100755 --- a/Lib/tkinter/Tkinter.py +++ b/Lib/tkinter/Tkinter.py @@ -1267,18 +1267,20 @@ class Listbox(Widget): i = self.tk.call(self._w, 'index', index) if i == 'none': return None return self.tk.getint(i) - def select_adjust(self, index): - self.tk.call(self._w, 'select', 'adjust', index) def select_anchor(self, index): self.tk.call(self._w, 'selection', 'anchor', index) + selection_anchor = select_anchor def select_clear(self, first, last=None): self.tk.call(self._w, 'selection', 'clear', first, last) + selection_clear = select_clear def select_includes(self, index): return self.tk.getboolean(self.tk.call( self._w, 'selection', 'includes', index)) + selection_includes = select_includes def select_set(self, first, last=None): self.tk.call(self._w, 'selection', 'set', first, last) + selection_set = select_set def size(self): return self.tk.getint(self.tk.call(self._w, 'size')) def xview(self, *what): |