mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Issue #3068: Add Idle extension configuration dialog to Options menu.
Original patch by Tal Einat.
This commit is contained in:
parent
c803bd84b5
commit
a9421fb3a3
6 changed files with 279 additions and 21 deletions
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue