mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Added tag_prevrange analogous to rag_nextrange.
This commit is contained in:
parent
330aafb0c2
commit
f0413d4841
1 changed files with 3 additions and 0 deletions
|
@ -1616,6 +1616,9 @@ class Text(Widget):
|
|||
def tag_nextrange(self, tagName, index1, index2=None):
|
||||
return self.tk.splitlist(self.tk.call(
|
||||
self._w, 'tag', 'nextrange', tagName, index1, index2))
|
||||
def tag_prevrange(self, tagName, index1, index2=None):
|
||||
return self.tk.splitlist(self.tk.call(
|
||||
self._w, 'tag', 'prevrange', tagName, index1, index2))
|
||||
def tag_raise(self, tagName, aboveThis=None):
|
||||
self.tk.call(
|
||||
self._w, 'tag', 'raise', tagName, aboveThis)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue