Commit 1a03cf56 authored by Guido van Rossum's avatar Guido van Rossum

Greg McFarlane submitted two missing Text methods: mark_next() and

mark_previous().
parent 6f49e0a1
...@@ -1686,6 +1686,10 @@ class Text(Widget): ...@@ -1686,6 +1686,10 @@ class Text(Widget):
self.tk.call(self._w, 'mark', 'set', markName, index) self.tk.call(self._w, 'mark', 'set', markName, index)
def mark_unset(self, *markNames): def mark_unset(self, *markNames):
self.tk.call((self._w, 'mark', 'unset') + 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): def scan_mark(self, x, y):
self.tk.call(self._w, 'scan', 'mark', x, y) self.tk.call(self._w, 'scan', 'mark', x, y)
def scan_dragto(self, x, y): def scan_dragto(self, x, y):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment