summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-06-01 13:57:15 (GMT)
committerGuido van Rossum <guido@python.org>1999-06-01 13:57:15 (GMT)
commitfa8c3eab79043d7dddafe00242730257db638849 (patch)
treef82eb8edda0af006627358e368a3523ff13a5185 /Lib/lib-tk
parentf63b8cc07c1782b4319c314b0ff0245f5ec5f455 (diff)
downloadcpython-fa8c3eab79043d7dddafe00242730257db638849.zip
cpython-fa8c3eab79043d7dddafe00242730257db638849.tar.gz
cpython-fa8c3eab79043d7dddafe00242730257db638849.tar.bz2
Greg McFarlane writes: Tkinter.Text.tag_add should take multiple
arguments. [Slightly changed from submitted patch.]
Diffstat (limited to 'Lib/lib-tk')
-rw-r--r--Lib/lib-tk/Tkinter.py4
1 files 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: