Commit fa8c3eab authored by Guido van Rossum's avatar Guido van Rossum

Greg McFarlane writes: Tkinter.Text.tag_add should take multiple

arguments.  [Slightly changed from submitted patch.]
parent f63b8cc0
......@@ -1707,9 +1707,9 @@ class Text(Widget):
return self.tk.call(tuple(args))
def see(self, index):
self.tk.call(self._w, 'see', index)
def tag_add(self, tagName, index1, index2=None):
def tag_add(self, tagName, index1, *args):
self.tk.call(
self._w, 'tag', 'add', tagName, index1, index2)
(self._w, 'tag', 'add', tagName, index1) + args)
def tag_unbind(self, tagName, sequence, funcid=None):
self.tk.call(self._w, 'tag', 'bind', tagName, sequence, '')
if funcid:
......
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