diff options
author | Steven M. Gava <elguavas@python.net> | 2001-11-03 05:07:28 (GMT) |
---|---|---|
committer | Steven M. Gava <elguavas@python.net> | 2001-11-03 05:07:28 (GMT) |
commit | e16d94b77e0ea851d91479c3337ce6b8a5198e5e (patch) | |
tree | be73fdac7ff8d912652bf8428e8ee250943cc881 /Lib/idlelib/configHandler.py | |
parent | dedbe255d32ace4b92fbe099aea454775701edf4 (diff) | |
download | cpython-e16d94b77e0ea851d91479c3337ce6b8a5198e5e.zip cpython-e16d94b77e0ea851d91479c3337ce6b8a5198e5e.tar.gz cpython-e16d94b77e0ea851d91479c3337ce6b8a5198e5e.tar.bz2 |
more work to support new config system
Diffstat (limited to 'Lib/idlelib/configHandler.py')
-rw-r--r-- | Lib/idlelib/configHandler.py | 15 |
1 files changed, 6 insertions, 9 deletions
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 @@ class IdleConfParser(ConfigParser): 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 @@ class IdleConf: 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 |