From: Guido van Rossum Date: Tue, 1 Jun 1999 13:57:15 +0000 (+0000) Subject: Greg McFarlane writes: Tkinter.Text.tag_add should take multiple X-Git-Tag: v1.6a1~1318 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa8c3eab79043d7dddafe00242730257db638849;p=thirdparty%2FPython%2Fcpython.git Greg McFarlane writes: Tkinter.Text.tag_add should take multiple arguments. [Slightly changed from submitted patch.] --- diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 2e5b69c52fc2..50039b0209a8 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -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: