From 5e247b705e3bdd77967bca76601b791003389ada Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Thu, 31 May 2012 09:17:29 -0700 Subject: Issue #14962: Update text coloring in IDLE shell window after changing options. Patch by Roger Serwy. --- Lib/idlelib/PyShell.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Lib/idlelib/PyShell.py') diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index eec0b70b447..fa2e150933d 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" -- cgit v1.2.3