Greg McFarlane writes: Tkinter.Text.tag_add should take multiple
arguments. [Slightly changed from submitted patch.]
This commit is contained in:
parent
f63b8cc07c
commit
fa8c3eab79
|
@ -1707,9 +1707,9 @@ class Text(Widget):
|
||||||
return self.tk.call(tuple(args))
|
return self.tk.call(tuple(args))
|
||||||
def see(self, index):
|
def see(self, index):
|
||||||
self.tk.call(self._w, 'see', 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.tk.call(
|
||||||
self._w, 'tag', 'add', tagName, index1, index2)
|
(self._w, 'tag', 'add', tagName, index1) + args)
|
||||||
def tag_unbind(self, tagName, sequence, funcid=None):
|
def tag_unbind(self, tagName, sequence, funcid=None):
|
||||||
self.tk.call(self._w, 'tag', 'bind', tagName, sequence, '')
|
self.tk.call(self._w, 'tag', 'bind', tagName, sequence, '')
|
||||||
if funcid:
|
if funcid:
|
||||||
|
|
Loading…
Reference in New Issue