more of config dialog reading from files

This commit is contained in:
Steven M. Gava 2001-10-29 08:05:34 +00:00
parent 9bd1401bbb
commit 41a8532f66
4 changed files with 82 additions and 38 deletions

View file

@ -28,9 +28,12 @@ class IdleConfParser(ConfigParser):
Get an option value for given section/option or return default.
If type is specified, return as type.
"""
if type=='bool': getVal=self.getboolean
elif type=='int': getVal=self.getint
else: getVal=self.get
if type=='bool':
getVal=self.getboolean
elif type=='int':
getVal=self.getint
else:
getVal=self.get
if self.has_option(section,option):
#return getVal(section, option, raw, vars)
return getVal(section, option)
@ -165,7 +168,6 @@ class IdleConf:
"""
pass
def GetKeys(self, name=None):
"""
Gets the requested keybindings or returns a final fallback keybinding
@ -174,7 +176,6 @@ class IdleConf:
"""
pass
def LoadCfgFiles(self):
"""
load all configuration files.