From: Ned Deily Date: Thu, 31 May 2012 16:17:29 +0000 (-0700) Subject: Issue #14962: Update text coloring in IDLE shell window after changing X-Git-Tag: v3.3.0b1~329^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b2a56b89d6ce0d8ce3343953529e07a42ffc917;p=python Issue #14962: Update text coloring in IDLE shell window after changing options. Patch by Roger Serwy. --- diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index edb4f37669..278f4f658b 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -309,6 +309,11 @@ class ModifiedColorDelegator(ColorDelegator): "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 index 582f5262e4..3f99773e8a 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -70,6 +70,9 @@ Core and Builtins 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. - Issue #14443: Tell rpmbuild to use the correct version of Python in