diff options
Diffstat (limited to 'Lib/lib-tk/Tkinter.py')
-rw-r--r-- | Lib/lib-tk/Tkinter.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index f97ee27..1b22100 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -1025,6 +1025,11 @@ class Entry(Widget): self.tk.call(self._w, 'select', 'clear', 'end') def select_from(self, index): self.tk.call(self._w, 'select', 'set', index) + def select_present(self): + return self.tk.getboolean( + self.tk.call(self._w, 'select', 'present')) + def select_range(self, start, end): + self.tk.call(self._w, 'select', 'range', start, end) def select_to(self, index): self.tk.call(self._w, 'select', 'to', index) def view(self, index): |