diff options
author | Guido van Rossum <guido@python.org> | 1997-12-15 17:31:52 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-12-15 17:31:52 (GMT) |
commit | f0413d4841b2b0636b6892b0f013a8a7e739054e (patch) | |
tree | 64ff4aa5fd97b211269458ce20702b4813fc9123 /Lib/lib-tk/Tkinter.py | |
parent | 330aafb0c2741aff0f63ce82d1bcca6e0862cf30 (diff) | |
download | cpython-f0413d4841b2b0636b6892b0f013a8a7e739054e.zip cpython-f0413d4841b2b0636b6892b0f013a8a7e739054e.tar.gz cpython-f0413d4841b2b0636b6892b0f013a8a7e739054e.tar.bz2 |
Added tag_prevrange analogous to rag_nextrange.
Diffstat (limited to 'Lib/lib-tk/Tkinter.py')
-rw-r--r-- | Lib/lib-tk/Tkinter.py | 3 |
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) |