diff options
author | Guido van Rossum <guido@python.org> | 1995-08-11 14:21:06 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-08-11 14:21:06 (GMT) |
commit | 1d59df28ac32e6bcd449255b092b6acd7d31672a (patch) | |
tree | 7ff7a95431da815130af3df28b0714dfc3ae820c /Lib/tkinter | |
parent | abad1cc647a9c8e892829f8066dc85ad3b7c9632 (diff) | |
download | cpython-1d59df28ac32e6bcd449255b092b6acd7d31672a.zip cpython-1d59df28ac32e6bcd449255b092b6acd7d31672a.tar.gz cpython-1d59df28ac32e6bcd449255b092b6acd7d31672a.tar.bz2 |
added select_present and select_range to Entry widget
Diffstat (limited to 'Lib/tkinter')
-rwxr-xr-x | Lib/tkinter/Tkinter.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/tkinter/Tkinter.py b/Lib/tkinter/Tkinter.py index f97ee27..1b22100 100755 --- a/Lib/tkinter/Tkinter.py +++ b/Lib/tkinter/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): |