Commit 42b78e64 authored by Guido van Rossum's avatar Guido van Rossum

Fixed Entry.select_from() to acually call the "select from" widget

command instead of the non-existant "select set".  (Fred)
parent a25e5e9a
......@@ -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(
......
......@@ -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(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment