more work to support new config system
diff --git a/Lib/idlelib/configHandler.py b/Lib/idlelib/configHandler.py
index 2e5e2e9..e32c6e6 100644
--- a/Lib/idlelib/configHandler.py
+++ b/Lib/idlelib/configHandler.py
@@ -49,14 +49,6 @@
else: #return a default value
return []
- def GetHighlight(self, theme, element):
- fore = self.Get(theme, element + "-foreground")
- back = self.Get(theme, element + "-background")
- style = self.Ge(theme, element + "-fontStyle", default='')
- return {"fg": fore,
- "bg": back,
- "fStyle": style}
-
def Load(self):
"""
Load the configuration file from disk
@@ -160,7 +152,12 @@
return cfgParser.sections()
-
+ def GetHighlight(self, theme, element):
+ fore = self.GetOption('highlight', theme, element + "-foreground")
+ back = self.GetOption('highlight', theme, element + "-background")
+ return {"foreground": fore,
+ "background": back}
+
def GetTheme(self, name=None):
"""
Gets the requested theme or returns a final fallback theme in case