From 9930061ce28b1fc60d267ae3474c74a41e655cd5 Mon Sep 17 00:00:00 2001 From: "Steven M. Gava" Date: Sun, 4 Nov 2001 07:03:08 +0000 Subject: further config system work --- Lib/idlelib/PyShell.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'Lib/idlelib/PyShell.py') diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index e2b545b4d4..f349bd6c0d 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"), }) -- cgit v1.2.1