mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
more of config dialog reading from files
This commit is contained in:
parent
9bd1401bbb
commit
41a8532f66
4 changed files with 82 additions and 38 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue