diff options
author | Raymond Hettinger <python@rcn.com> | 2003-07-09 18:48:24 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-07-09 18:48:24 (GMT) |
commit | 931237e2e66975c54e2ac6c5e503ee2992a22bcf (patch) | |
tree | e5b750f23a7b670cbcc58930c70e7324725afd2f /Lib/idlelib/configDialog.py | |
parent | a4d2b869b9d582abcad178d930374a26a6e743fb (diff) | |
download | cpython-931237e2e66975c54e2ac6c5e503ee2992a22bcf.zip cpython-931237e2e66975c54e2ac6c5e503ee2992a22bcf.tar.gz cpython-931237e2e66975c54e2ac6c5e503ee2992a22bcf.tar.bz2 |
SF patch #768187: replace apply(f, args, kwds) with f(*args, **kwds)
Diffstat (limited to 'Lib/idlelib/configDialog.py')
-rw-r--r-- | Lib/idlelib/configDialog.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/idlelib/configDialog.py b/Lib/idlelib/configDialog.py index af3e98a..8c3eb3e 100644 --- a/Lib/idlelib/configDialog.py +++ b/Lib/idlelib/configDialog.py @@ -794,8 +794,7 @@ class ConfigDialog(Toplevel): if self.fgHilite.get(): plane='foreground' else: plane='background' sampleElement=self.themeElements[self.highlightTarget.get()][0] - apply(self.textHighlightSample.tag_config, - (sampleElement,),{plane:newColour}) + self.textHighlightSample.tag_config(sampleElement, **{plane:newColour}) theme=self.customTheme.get() themeElement=sampleElement+'-'+plane self.AddChangedItem('highlight',theme,themeElement,newColour) @@ -890,7 +889,7 @@ class ConfigDialog(Toplevel): colours['foreground']=themeDict[element+'-foreground'] if themeDict.has_key(element+'-background'): colours['background']=themeDict[element+'-background'] - apply(self.textHighlightSample.tag_config,(element,),colours) + self.textHighlightSample.tag_config(element, **colours) self.SetColourSample() ## def OnCheckUserHelpBrowser(self): |