Mercurial > cpython-lru_cache-weakref
diff Lib/idlelib/PyShell.py @ 31625:1b02c77cdcfe legacy-trunk
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
| author | Kurt B. Kaiser <kbk@shore.net> |
|---|---|
| date | Mon, 08 Mar 2004 18:15:31 +0000 |
| parents | 71a294bd7950 |
| children | 014b0d84422f |
line wrap: on
line diff
--- a/Lib/idlelib/PyShell.py Mon Mar 08 16:57:19 2004 +0000 +++ b/Lib/idlelib/PyShell.py Mon Mar 08 18:15:31 2004 +0000 @@ -528,7 +528,9 @@ item = RemoteObjectBrowser.StubObjectTreeItem(self.rpcclt, oid) from TreeWidget import ScrolledCanvas, TreeNode top = Toplevel(self.tkconsole.root) - sc = ScrolledCanvas(top, bg="white", highlightthickness=0) + theme = idleConf.GetOption('main','Theme','name') + background = idleConf.GetHighlight(theme, 'normal')['background'] + sc = ScrolledCanvas(top, bg=background, highlightthickness=0) sc.frame.pack(expand=1, fill="both") node = TreeNode(sc.canvas, None, item) node.expand()
