summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/configDialog.py
diff options
context:
space:
mode:
authorSteven M. Gava <elguavas@python.net>2002-01-04 07:53:06 (GMT)
committerSteven M. Gava <elguavas@python.net>2002-01-04 07:53:06 (GMT)
commit0cae01c49638c95fcff200aa92a3e7d580a9bb3e (patch)
tree46414c55ede31480184d493badb989bbe090863e /Lib/idlelib/configDialog.py
parentc597640515a9ca3aa1807cc633b8d7bf2aa4a4e6 (diff)
downloadcpython-0cae01c49638c95fcff200aa92a3e7d580a9bb3e.zip
cpython-0cae01c49638c95fcff200aa92a3e7d580a9bb3e.tar.gz
cpython-0cae01c49638c95fcff200aa92a3e7d580a9bb3e.tar.bz2
loading core keybindings via new config system plus
further devel of highlight handling
Diffstat (limited to 'Lib/idlelib/configDialog.py')
-rw-r--r--Lib/idlelib/configDialog.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/Lib/idlelib/configDialog.py b/Lib/idlelib/configDialog.py
index 6c88d60..bfff813 100644
--- a/Lib/idlelib/configDialog.py
+++ b/Lib/idlelib/configDialog.py
@@ -120,8 +120,8 @@ class ConfigDialog(Toplevel):
self.radioBg.config(state=DISABLED)
self.fgHilite.set(1)
else: #both fg and bg can be set
- self.radioFg.config(state=DISABLED)
- self.radioBg.config(state=DISABLED)
+ self.radioFg.config(state=NORMAL)
+ self.radioBg.config(state=NORMAL)
self.fgHilite.set(1)
self.SetColourSample()
@@ -496,7 +496,7 @@ class ConfigDialog(Toplevel):
colours=idleConf.GetHighlight(theme, self.themeElements[element][0])
if element=='Cursor': #cursor sample needs special painting
colours['background']=idleConf.GetHighlight(theme,
- 'normal-text', fgBg='bg')
+ 'normal', fgBg='bg')
apply(self.textHighlightSample.tag_config,
(self.themeElements[element][0],),colours)
@@ -558,11 +558,8 @@ class ConfigDialog(Toplevel):
themeNames=self.themeElements.keys()
themeNames.sort(self.__ThemeNameIndexCompare)
self.optMenuHighlightTarget.SetMenu(themeNames,themeNames[0])
- sampleBg=idleConf.GetHighlight(currentOption,
- self.highlightTarget.get())['background']
- self.fgHilite.set(0)
- self.frameColourSet.config(bg=sampleBg)
self.PaintThemeSample()
+ self.SetHighlightTarget()
def __ThemeNameIndexCompare(self,a,b):
if self.themeElements[a][1]<self.themeElements[b][1]: return -1