]> 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 eec0b70b4475eb1544c86f8295690f720dd2bf82..fa2e150933d2755ed7e61be9846667de9d0a2b5c 100644 (file)
@@ -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"
 
index 2c50c2f6ba851903e9fe0caff374c8b6594119f4..d8d519997fffe9417481c6d6b61138f8e18566d5 100644 (file)
--- 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.