diff Lib/idlelib/PyShell.py @ 20864:8957341f98f8 legacy-trunk

further config system work
author Steven M. Gava <elguavas@python.net>
date Sun, 04 Nov 2001 07:03:08 +0000
parents 1ca228e21a98
children c4499596b1a4
line wrap: on
line diff
--- a/Lib/idlelib/PyShell.py	Sun Nov 04 05:57:16 2001 +0000
+++ b/Lib/idlelib/PyShell.py	Sun Nov 04 07:03:08 2001 +0000
@@ -43,6 +43,7 @@
 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 @@
         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"),
     })