]> granicus.if.org Git - python/commitdiff
Added tag_prevrange analogous to rag_nextrange.
authorGuido van Rossum <guido@python.org>
Mon, 15 Dec 1997 17:31:52 +0000 (17:31 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 15 Dec 1997 17:31:52 +0000 (17:31 +0000)
Lib/lib-tk/Tkinter.py

index e59c3d536f07e824426528e4c3a77542dd0a9402..61cb07eb7aad04578a4075a3f61a333913f536c1 100644 (file)
@@ -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)