]> granicus.if.org Git - python/commitdiff
Fixed Entry.select_from() to acually call the "select from" widget
authorGuido van Rossum <guido@python.org>
Fri, 6 Sep 1996 14:20:23 +0000 (14:20 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 6 Sep 1996 14:20:23 +0000 (14:20 +0000)
command instead of the non-existant "select set".  (Fred)

Lib/lib-tk/Tkinter.py
Lib/tkinter/Tkinter.py

index 1f784fdc5ba6818459f567950af29d4175ee89a1..fd25c8420aa4ecabe5b2bbf970ebeb0fe48ed2e8 100644 (file)
@@ -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(
index 1f784fdc5ba6818459f567950af29d4175ee89a1..fd25c8420aa4ecabe5b2bbf970ebeb0fe48ed2e8 100755 (executable)
@@ -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(