summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk/Tkinter.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-06-21 14:13:30 (GMT)
committerGuido van Rossum <guido@python.org>1999-06-21 14:13:30 (GMT)
commit1a03cf56e0b3ac9bac1b6acad0e7c99c5ee7ad33 (patch)
tree000b549e94a11185ab13a8e3caa0c5c917c35f96 /Lib/lib-tk/Tkinter.py
parent6f49e0a154a91f55445653fe8842d023a5343162 (diff)
downloadcpython-1a03cf56e0b3ac9bac1b6acad0e7c99c5ee7ad33.zip
cpython-1a03cf56e0b3ac9bac1b6acad0e7c99c5ee7ad33.tar.gz
cpython-1a03cf56e0b3ac9bac1b6acad0e7c99c5ee7ad33.tar.bz2
Greg McFarlane submitted two missing Text methods: mark_next() and
mark_previous().
Diffstat (limited to 'Lib/lib-tk/Tkinter.py')
-rw-r--r--Lib/lib-tk/Tkinter.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index 50039b0..3eeee5c 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/Tkinter.py
@@ -1686,6 +1686,10 @@ class Text(Widget):
self.tk.call(self._w, 'mark', 'set', markName, index)
def mark_unset(self, *markNames):
self.tk.call((self._w, 'mark', 'unset') + markNames)
+ def mark_next(self, index):
+ return self.tk.call(self._w, 'mark', 'next', index) or None
+ def mark_previous(self, index):
+ return self.tk.call(self._w, 'mark', 'previous', index) or None
def scan_mark(self, x, y):
self.tk.call(self._w, 'scan', 'mark', x, y)
def scan_dragto(self, x, y):