Commit dc3b8170 authored by Kurt B. Kaiser's avatar Kurt B. Kaiser

MERGE DS_RPC_BRANCH into MAIN

ParenMatch.py
    Remove last dependencies to old config backend 06Aug
parent da02b079
...@@ -14,7 +14,7 @@ import string ...@@ -14,7 +14,7 @@ import string
import PyParse import PyParse
from AutoIndent import AutoIndent, index2line from AutoIndent import AutoIndent, index2line
from IdleConf import idleconf from configHandler import idleConf
class ParenMatch: class ParenMatch:
"""Highlight matching parentheses """Highlight matching parentheses
...@@ -44,12 +44,13 @@ class ParenMatch: ...@@ -44,12 +44,13 @@ class ParenMatch:
so I haven't bothered. so I haven't bothered.
""" """
menudefs = [] menudefs = []
iconf = idleconf.getsection('ParenMatch') STYLE = idleConf.GetOption('extensions','ParenMatch','style',
STYLE = iconf.getdef('style', 'default') default='expression')
FLASH_DELAY = iconf.getint('flash-delay') FLASH_DELAY = idleConf.GetOption('extensions','ParenMatch','flash-delay',
HILITE_CONFIG = iconf.getcolor('hilite') type='int',default=500)
BELL = iconf.getboolean('bell') HILITE_CONFIG = idleConf.GetHighlight(idleConf.CurrentTheme(),'hilite')
del iconf BELL = idleConf.GetOption('extensions','ParenMatch','bell',
type='bool',default=1)
def __init__(self, editwin): def __init__(self, editwin):
self.editwin = editwin self.editwin = editwin
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment