]> granicus.if.org Git - python/commitdiff
MERGE DS_RPC_BRANCH into MAIN
authorKurt B. Kaiser <kbk@shore.net>
Sat, 14 Sep 2002 02:46:19 +0000 (02:46 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Sat, 14 Sep 2002 02:46:19 +0000 (02:46 +0000)
ParenMatch.py
    Remove last dependencies to old config backend 06Aug

Lib/idlelib/ParenMatch.py

index 78514226a7556da5789a8ae7b239906356a270e0..db6fb6c8007149744b4935ac013993eb2277c661 100644 (file)
@@ -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