From: Guido van Rossum Date: Mon, 15 Dec 1997 17:31:52 +0000 (+0000) Subject: Added tag_prevrange analogous to rag_nextrange. X-Git-Tag: v1.5~165 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0413d4841b2b0636b6892b0f013a8a7e739054e;p=python Added tag_prevrange analogous to rag_nextrange. --- diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index e59c3d536f..61cb07eb7a 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -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)