diff options
author | Guido van Rossum <guido@python.org> | 1994-07-06 10:20:11 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-07-06 10:20:11 (GMT) |
commit | 2a39031006236a3d04dfd28c9d10f9edd203924b (patch) | |
tree | c9bc70186b095fdf76072bdf4c2dfc4ddfe4986e | |
parent | a3cd357771f15b4eb3984ca13a618bae9deae1a1 (diff) | |
download | cpython-2a39031006236a3d04dfd28c9d10f9edd203924b.zip cpython-2a39031006236a3d04dfd28c9d10f9edd203924b.tar.gz cpython-2a39031006236a3d04dfd28c9d10f9edd203924b.tar.bz2 |
Remove garbage '+ ' and reformat tag_delete function budy
-rw-r--r-- | Lib/lib-tk/Tkinter.py | 5 | ||||
-rwxr-xr-x | Lib/tkinter/Tkinter.py | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index c3ee52b..89255b9 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -610,7 +610,7 @@ class Widget(Misc, Pack, Place): apply(self.tk.call, (widgetName, self._w) + extra) Widget.config(self, cnf) def config(self, cnf=None): -+ cnf = _cnfmerge(cnf) + cnf = _cnfmerge(cnf) if cnf is None: cnf = {} for x in self.tk.split( @@ -1076,8 +1076,7 @@ class Text(Widget): (self._w, 'tag', 'configure', tagName) + self._options(cnf)) def tag_delete(self, *tagNames): - apply(self.tk.call, (self._w, 'tag', 'delete') - + tagNames) + apply(self.tk.call, (self._w, 'tag', 'delete') + tagNames) def tag_lower(self, tagName, belowThis=None): self.tk.call(self._w, 'tag', 'lower', tagName, belowThis) diff --git a/Lib/tkinter/Tkinter.py b/Lib/tkinter/Tkinter.py index c3ee52b..89255b9 100755 --- a/Lib/tkinter/Tkinter.py +++ b/Lib/tkinter/Tkinter.py @@ -610,7 +610,7 @@ class Widget(Misc, Pack, Place): apply(self.tk.call, (widgetName, self._w) + extra) Widget.config(self, cnf) def config(self, cnf=None): -+ cnf = _cnfmerge(cnf) + cnf = _cnfmerge(cnf) if cnf is None: cnf = {} for x in self.tk.split( @@ -1076,8 +1076,7 @@ class Text(Widget): (self._w, 'tag', 'configure', tagName) + self._options(cnf)) def tag_delete(self, *tagNames): - apply(self.tk.call, (self._w, 'tag', 'delete') - + tagNames) + apply(self.tk.call, (self._w, 'tag', 'delete') + tagNames) def tag_lower(self, tagName, belowThis=None): self.tk.call(self._w, 'tag', 'lower', tagName, belowThis) |