cpython (2.7): Issue #14962: Update text coloring in IDLE shell window after changing
![](https://secure.gravatar.com/avatar/8ac615df352a970211b0e3d94a307c6d.jpg?s=120&d=mm&r=g)
http://hg.python.org/cpython/rev/1a4e99460438 changeset: 77265:1a4e99460438 branch: 2.7 parent: 77253:8817c295a8ee user: Ned Deily <nad@acm.org> date: Thu May 31 09:17:29 2012 -0700 summary: Issue #14962: Update text coloring in IDLE shell window after changing options. Patch by Roger Serwy. files: Lib/idlelib/PyShell.py | 5 +++++ Misc/NEWS | 3 +++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -313,6 +313,11 @@ "console": idleConf.GetHighlight(theme, "console"), }) + def removecolors(self): + # Don't remove shell color tags before "iomark" + for tag in self.tagdefs: + self.tag_remove(tag, "iomark", "end") + class ModifiedUndoDelegator(UndoDelegator): "Extend base class: forbid insert/delete before the I/O mark" diff --git a/Misc/NEWS b/Misc/NEWS --- a/Misc/NEWS +++ b/Misc/NEWS @@ -67,6 +67,9 @@ Library ------- +- Issue #14962: Update text coloring in IDLE shell window after changing + options. Patch by Roger Serwy. + - Issue #10997: Prevent a duplicate entry in IDLE's "Recent Files" menu. - Issue12510: Attempting to get invalid tooltip no longer closes Idle. -- Repository URL: http://hg.python.org/cpython
participants (1)
-
ned.deily