mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
added select_present and select_range to Entry widget
This commit is contained in:
parent
abad1cc647
commit
1d59df28ac
2 changed files with 10 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue