mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Remove garbage '+ ' and reformat tag_delete function budy
This commit is contained in:
parent
a3cd357771
commit
2a39031006
2 changed files with 4 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue