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

arguments.  [Slightly changed from submitted patch.]
This commit is contained in:
Guido van Rossum 1999-06-01 13:57:15 +00:00
parent f63b8cc07c
commit fa8c3eab79
1 changed files with 2 additions and 2 deletions

View File

@ -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: