summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/PyShell.py
diff options
context:
space:
mode:
authorSteven M. Gava <elguavas@python.net>2001-11-04 07:03:08 (GMT)
committerSteven M. Gava <elguavas@python.net>2001-11-04 07:03:08 (GMT)
commit9930061ce28b1fc60d267ae3474c74a41e655cd5 (patch)
tree019243ddaeed08681457aeb96fa0a94be23b792f /Lib/idlelib/PyShell.py
parentc99213f99369020c06bb75721fd41e2681445834 (diff)
downloadcpython-9930061ce28b1fc60d267ae3474c74a41e655cd5.zip
cpython-9930061ce28b1fc60d267ae3474c74a41e655cd5.tar.gz
cpython-9930061ce28b1fc60d267ae3474c74a41e655cd5.tar.bz2
further config system work
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rw-r--r--Lib/idlelib/PyShell.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index e2b545b..f349bd6 100644
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -43,6 +43,7 @@ from ColorDelegator import ColorDelegator
from UndoDelegator import UndoDelegator
from OutputWindow import OutputWindow, OnDemandOutputWindow
from IdleConf import idleconf
+from configHandler import idleConf
import idlever
# We need to patch linecache.checkcache, because we don't want it
@@ -141,15 +142,15 @@ class ModifiedColorDelegator(ColorDelegator):
ColorDelegator.recolorize_main(self)
tagdefs = ColorDelegator.tagdefs.copy()
- cconf = idleconf.getsection('Colors')
-
+ theme = idleConf.GetOption('main','Theme','name')
tagdefs.update({
- "stdin": cconf.getcolor("stdin"),
- "stdout": cconf.getcolor("stdout"),
- "stderr": cconf.getcolor("stderr"),
- "console": cconf.getcolor("console"),
- "ERROR": cconf.getcolor("ERROR"),
- None: cconf.getcolor("normal"),
+
+ "stdin": idleConf.GetHighlight(theme, "stdin"),
+ "stdout": idleConf.GetHighlight(theme, "stdout"),
+ "stderr": idleConf.GetHighlight(theme, "stderr"),
+ "console": idleConf.GetHighlight(theme, "console"),
+ "ERROR": idleConf.GetHighlight(theme, "error"),
+ None: idleConf.GetHighlight(theme, "normal"),
})