summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/PyShell.py
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2012-05-31 16:17:29 (GMT)
committerNed Deily <nad@acm.org>2012-05-31 16:17:29 (GMT)
commit5e247b705e3bdd77967bca76601b791003389ada (patch)
treef5bf1a56205fe322b3416d5ddb3cf228559c7ba0 /Lib/idlelib/PyShell.py
parentc3ea4085f9f75427da48525c01184d3551f11161 (diff)
downloadcpython-5e247b705e3bdd77967bca76601b791003389ada.zip
cpython-5e247b705e3bdd77967bca76601b791003389ada.tar.gz
cpython-5e247b705e3bdd77967bca76601b791003389ada.tar.bz2
Issue #14962: Update text coloring in IDLE shell window after changing
options. Patch by Roger Serwy.
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rw-r--r--Lib/idlelib/PyShell.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index eec0b70..fa2e150 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"