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: v2.7.4rc1~779 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e247b705e3bdd77967bca76601b791003389ada;p=thirdparty%2FPython%2Fcpython.git 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 eec0b70b4475..fa2e150933d2 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -313,6 +313,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 2c50c2f6ba85..d8d519997fff 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -67,6 +67,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. - Issue12510: Attempting to get invalid tooltip no longer closes Idle.