]> granicus.if.org Git - python/commitdiff
Issue #14962: Update text coloring in IDLE shell window after changing
authorNed Deily <nad@acm.org>
Thu, 31 May 2012 16:17:29 +0000 (09:17 -0700)
committerNed Deily <nad@acm.org>
Thu, 31 May 2012 16:17:29 +0000 (09:17 -0700)
options.  Patch by Roger Serwy.

Lib/idlelib/PyShell.py
Misc/NEWS

index edb4f37669c438651df86cc3a94183f80a184454..278f4f658b11ad5936214029a923861f22c4bb04 100644 (file)
@@ -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"
 
index 582f5262e4453d9729160b5103513f767c7b2b5a..3f99773e8a67ab2b1728be826f874f32d2bd3083 100644 (file)
--- 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