diff options
| author | Terry Jan Reedy <tjreedy@udel.edu> | 2015-11-12 20:03:30 (GMT) |
|---|---|---|
| committer | Terry Jan Reedy <tjreedy@udel.edu> | 2015-11-12 20:03:30 (GMT) |
| commit | 4df5c7aa30d4e8cc3542cff3d2a31c08fa16cbc5 (patch) | |
| tree | 231a0a9824f9e50fc7ab1999567dc6cb7d354440 /Lib/idlelib/PyShell.py | |
| parent | d5c075143b9fc133b206229c6d86cd6a0c46364a (diff) | |
| parent | e19f3ec07228aeaa9bd1379413a3054953a5c51e (diff) | |
| download | cpython-4df5c7aa30d4e8cc3542cff3d2a31c08fa16cbc5.zip cpython-4df5c7aa30d4e8cc3542cff3d2a31c08fa16cbc5.tar.gz cpython-4df5c7aa30d4e8cc3542cff3d2a31c08fa16cbc5.tar.bz2 | |
Merge with 3.5
Diffstat (limited to 'Lib/idlelib/PyShell.py')
| -rwxr-xr-x | Lib/idlelib/PyShell.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 57aa6da..058dfb9 100755 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -152,7 +152,7 @@ class PyShellEditorWindow(EditorWindow): # possible due to update in restore_file_breaks return if color: - theme = idleConf.GetOption('main','Theme','name') + theme = idleConf.CurrentTheme() cfg = idleConf.GetHighlight(theme, "break") else: cfg = {'foreground': '', 'background': ''} @@ -338,7 +338,7 @@ class ModifiedColorDelegator(ColorDelegator): def LoadTagDefs(self): ColorDelegator.LoadTagDefs(self) - theme = idleConf.GetOption('main','Theme','name') + theme = idleConf.CurrentTheme() self.tagdefs.update({ "stdin": {'background':None,'foreground':None}, "stdout": idleConf.GetHighlight(theme, "stdout"), @@ -621,7 +621,7 @@ class ModifiedInterpreter(InteractiveInterpreter): item = RemoteObjectBrowser.StubObjectTreeItem(self.rpcclt, oid) from idlelib.TreeWidget import ScrolledCanvas, TreeNode top = Toplevel(self.tkconsole.root) - theme = idleConf.GetOption('main','Theme','name') + theme = idleConf.CurrentTheme() background = idleConf.GetHighlight(theme, 'normal')['background'] sc = ScrolledCanvas(top, bg=background, highlightthickness=0) sc.frame.pack(expand=1, fill="both") |
