summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/configDialog.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-07-09 18:48:24 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-07-09 18:48:24 (GMT)
commit931237e2e66975c54e2ac6c5e503ee2992a22bcf (patch)
treee5b750f23a7b670cbcc58930c70e7324725afd2f /Lib/idlelib/configDialog.py
parenta4d2b869b9d582abcad178d930374a26a6e743fb (diff)
downloadcpython-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.py5
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):