summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/ClassBrowser.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2004-03-08 18:15:31 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2004-03-08 18:15:31 (GMT)
commit73360a3e61274ffcc4c9fc3d09746bd6603e92a5 (patch)
tree261894a40d78f78641cf21f4f16af44e5411cf07 /Lib/idlelib/ClassBrowser.py
parent4102478f46c7b419c15b783643539801aaabb6a6 (diff)
downloadcpython-73360a3e61274ffcc4c9fc3d09746bd6603e92a5.zip
cpython-73360a3e61274ffcc4c9fc3d09746bd6603e92a5.tar.gz
cpython-73360a3e61274ffcc4c9fc3d09746bd6603e92a5.tar.bz2
Add a highlight theme for builtin keywords. Python Patch 805830 Nigel Rowe
M ClassBrowser.py M ColorDelegator.py M EditorWindow.py M NEWS.txt M PyShell.py M TreeWidget.py M config-highlight.def M configDialog.py M configHandler.py
Diffstat (limited to 'Lib/idlelib/ClassBrowser.py')
-rw-r--r--Lib/idlelib/ClassBrowser.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/idlelib/ClassBrowser.py b/Lib/idlelib/ClassBrowser.py
index 82f5191..e5a60a5 100644
--- a/Lib/idlelib/ClassBrowser.py
+++ b/Lib/idlelib/ClassBrowser.py
@@ -17,6 +17,7 @@ import pyclbr
import PyShell
from WindowList import ListedToplevel
from TreeWidget import TreeNode, TreeItem, ScrolledCanvas
+from configHandler import idleConf
class ClassBrowser:
@@ -42,7 +43,9 @@ class ClassBrowser:
self.settitle()
top.focus_set()
# create scrolled canvas
- sc = ScrolledCanvas(top, bg="white", highlightthickness=0, takefocus=1)
+ theme = idleConf.GetOption('main','Theme','name')
+ background = idleConf.GetHighlight(theme, 'normal')['background']
+ sc = ScrolledCanvas(top, bg=background, highlightthickness=0, takefocus=1)
sc.frame.pack(expand=1, fill="both")
item = self.rootnode()
self.node = node = TreeNode(sc.canvas, None, item)