]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Greg McFarlane submitted two missing Text methods: mark_next() and
authorGuido van Rossum <guido@python.org>
Mon, 21 Jun 1999 14:13:30 +0000 (14:13 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 21 Jun 1999 14:13:30 +0000 (14:13 +0000)
mark_previous().

Lib/lib-tk/Tkinter.py

index 50039b0209a8c628ac387517ad1411731e3cd58e..3eeee5c11b6b0ed88fe4ecc19d6c0c807b3d5992 100644 (file)
@@ -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):