diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2002-09-14 02:46:19 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2002-09-14 02:46:19 (GMT) |
commit | 8c11f7e3bf6bc184fbdd526cd9221cb443426afa (patch) | |
tree | b74b958f10a8577f32427cdf4f920ebda796a289 | |
parent | 12b9f340cee9f125e59e75ad9681538c736f23c6 (diff) | |
download | cpython-8c11f7e3bf6bc184fbdd526cd9221cb443426afa.zip cpython-8c11f7e3bf6bc184fbdd526cd9221cb443426afa.tar.gz cpython-8c11f7e3bf6bc184fbdd526cd9221cb443426afa.tar.bz2 |
MERGE DS_RPC_BRANCH into MAIN
ParenMatch.py
Remove last dependencies to old config backend 06Aug
-rw-r--r-- | Lib/idlelib/ParenMatch.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Lib/idlelib/ParenMatch.py b/Lib/idlelib/ParenMatch.py index 7851422..db6fb6c 100644 --- a/Lib/idlelib/ParenMatch.py +++ b/Lib/idlelib/ParenMatch.py @@ -14,7 +14,7 @@ import string import PyParse from AutoIndent import AutoIndent, index2line -from IdleConf import idleconf +from configHandler import idleConf class ParenMatch: """Highlight matching parentheses @@ -44,12 +44,13 @@ class ParenMatch: so I haven't bothered. """ menudefs = [] - iconf = idleconf.getsection('ParenMatch') - STYLE = iconf.getdef('style', 'default') - FLASH_DELAY = iconf.getint('flash-delay') - HILITE_CONFIG = iconf.getcolor('hilite') - BELL = iconf.getboolean('bell') - del iconf + STYLE = idleConf.GetOption('extensions','ParenMatch','style', + default='expression') + FLASH_DELAY = idleConf.GetOption('extensions','ParenMatch','flash-delay', + type='int',default=500) + HILITE_CONFIG = idleConf.GetHighlight(idleConf.CurrentTheme(),'hilite') + BELL = idleConf.GetOption('extensions','ParenMatch','bell', + type='bool',default=1) def __init__(self, editwin): self.editwin = editwin |