Issue #3068: Add Idle extension configuration dialog to Options menu.

Original patch by Tal Einat.
This commit is contained in:
Terry Jan Reedy 2014-10-22 20:15:18 -04:00
parent c803bd84b5
commit a9421fb3a3
6 changed files with 279 additions and 21 deletions

View file

@ -44,6 +44,9 @@ class IdleConfParser(ConfigParser):
Get an option value for given section/option or return default.
If type is specified, return as type.
"""
# TODO Use default as fallback, at least if not None
# Should also print Warning(file, section, option).
# Currently may raise ValueError
if not self.has_option(section, option):
return default
if type == 'bool':