mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
SF patch #768187: replace apply(f, args, kwds) with f(*args, **kwds)
This commit is contained in:
parent
a4d2b869b9
commit
931237e2e6
10 changed files with 14 additions and 16 deletions
|
@ -13,7 +13,7 @@ class OutputWindow(EditorWindow):
|
|||
"""
|
||||
|
||||
def __init__(self, *args):
|
||||
apply(EditorWindow.__init__, (self,) + args)
|
||||
EditorWindow.__init__(self, *args)
|
||||
self.text.bind("<<goto-file-line>>", self.goto_file_line)
|
||||
|
||||
# Customize EditorWindow
|
||||
|
@ -136,7 +136,7 @@ class OnDemandOutputWindow:
|
|||
text = owin.text
|
||||
for tag, cnf in self.tagdefs.items():
|
||||
if cnf:
|
||||
apply(text.tag_configure, (tag,), cnf)
|
||||
text.tag_configure(tag, **cnf)
|
||||
text.tag_raise('sel')
|
||||
self.write = self.owin.write
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue