Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f0413d4

Browse files
committed
Added tag_prevrange analogous to rag_nextrange.
1 parent 330aafb commit f0413d4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/lib-tk/Tkinter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1616,6 +1616,9 @@ def tag_names(self, index=None):
16161616
def tag_nextrange(self, tagName, index1, index2=None):
16171617
return self.tk.splitlist(self.tk.call(
16181618
self._w, 'tag', 'nextrange', tagName, index1, index2))
1619+
def tag_prevrange(self, tagName, index1, index2=None):
1620+
return self.tk.splitlist(self.tk.call(
1621+
self._w, 'tag', 'prevrange', tagName, index1, index2))
16191622
def tag_raise(self, tagName, aboveThis=None):
16201623
self.tk.call(
16211624
self._w, 'tag', 'raise', tagName, aboveThis)

0 commit comments

Comments
 (0)