mirror of
https://github.com/python/cpython.git
synced 2025-08-28 04:35:02 +00:00
further config system work
This commit is contained in:
parent
c99213f993
commit
9930061ce2
4 changed files with 56 additions and 17 deletions
|
@ -43,6 +43,7 @@ from ColorDelegator import ColorDelegator
|
|||
from UndoDelegator import UndoDelegator
|
||||
from OutputWindow import OutputWindow, OnDemandOutputWindow
|
||||
from IdleConf import idleconf
|
||||
from configHandler import idleConf
|
||||
import idlever
|
||||
|
||||
# We need to patch linecache.checkcache, because we don't want it
|
||||
|
@ -141,15 +142,15 @@ class ModifiedColorDelegator(ColorDelegator):
|
|||
ColorDelegator.recolorize_main(self)
|
||||
|
||||
tagdefs = ColorDelegator.tagdefs.copy()
|
||||
cconf = idleconf.getsection('Colors')
|
||||
|
||||
theme = idleConf.GetOption('main','Theme','name')
|
||||
tagdefs.update({
|
||||
"stdin": cconf.getcolor("stdin"),
|
||||
"stdout": cconf.getcolor("stdout"),
|
||||
"stderr": cconf.getcolor("stderr"),
|
||||
"console": cconf.getcolor("console"),
|
||||
"ERROR": cconf.getcolor("ERROR"),
|
||||
None: cconf.getcolor("normal"),
|
||||
|
||||
"stdin": idleConf.GetHighlight(theme, "stdin"),
|
||||
"stdout": idleConf.GetHighlight(theme, "stdout"),
|
||||
"stderr": idleConf.GetHighlight(theme, "stderr"),
|
||||
"console": idleConf.GetHighlight(theme, "console"),
|
||||
"ERROR": idleConf.GetHighlight(theme, "error"),
|
||||
None: idleConf.GetHighlight(theme, "normal"),
|
||||
})
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue