From 42b78e644164b4aee732fd78f3ca07c8ce11420c Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 6 Sep 1996 14:20:23 +0000 Subject: Fixed Entry.select_from() to acually call the "select from" widget command instead of the non-existant "select set". (Fred) --- Lib/lib-tk/Tkinter.py | 2 +- Lib/tkinter/Tkinter.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 1f784fd..fd25c84 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -1123,7 +1123,7 @@ class Entry(Widget): self.tk.call(self._w, 'selection', 'clear') select_clear = selection_clear def selection_from(self, index): - self.tk.call(self._w, 'selection', 'set', index) + self.tk.call(self._w, 'selection', 'from', index) select_from = selection_from def selection_present(self): return self.tk.getboolean( diff --git a/Lib/tkinter/Tkinter.py b/Lib/tkinter/Tkinter.py index 1f784fd..fd25c84 100755 --- a/Lib/tkinter/Tkinter.py +++ b/Lib/tkinter/Tkinter.py @@ -1123,7 +1123,7 @@ class Entry(Widget): self.tk.call(self._w, 'selection', 'clear') select_clear = selection_clear def selection_from(self, index): - self.tk.call(self._w, 'selection', 'set', index) + self.tk.call(self._w, 'selection', 'from', index) select_from = selection_from def selection_present(self): return self.tk.getboolean( -- cgit v0.12