summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-12-15 17:31:52 (GMT)
committerGuido van Rossum <guido@python.org>1997-12-15 17:31:52 (GMT)
commitf0413d4841b2b0636b6892b0f013a8a7e739054e (patch)
tree64ff4aa5fd97b211269458ce20702b4813fc9123 /Lib
parent330aafb0c2741aff0f63ce82d1bcca6e0862cf30 (diff)
downloadcpython-f0413d4841b2b0636b6892b0f013a8a7e739054e.zip
cpython-f0413d4841b2b0636b6892b0f013a8a7e739054e.tar.gz
cpython-f0413d4841b2b0636b6892b0f013a8a7e739054e.tar.bz2
Added tag_prevrange analogous to rag_nextrange.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/lib-tk/Tkinter.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index e59c3d5..61cb07e 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)