From fa8c3eab79043d7dddafe00242730257db638849 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 1 Jun 1999 13:57:15 +0000 Subject: Greg McFarlane writes: Tkinter.Text.tag_add should take multiple arguments. [Slightly changed from submitted patch.] --- Lib/lib-tk/Tkinter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 2e5b69c..50039b0 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: -- cgit v0.12