]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Greg McFarlane writes: Tkinter.Text.tag_add should take multiple
authorGuido van Rossum <guido@python.org>
Tue, 1 Jun 1999 13:57:15 +0000 (13:57 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 1 Jun 1999 13:57:15 +0000 (13:57 +0000)
arguments.  [Slightly changed from submitted patch.]

Lib/lib-tk/Tkinter.py

index 2e5b69c52fc2b89760092f9e151a093a7a7c280f..50039b0209a8c628ac387517ad1411731e3cd58e 100644 (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: