diff options
author | Ned Deily <nad@acm.org> | 2012-05-31 16:17:29 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2012-05-31 16:17:29 (GMT) |
commit | 8b2a56b89d6ce0d8ce3343953529e07a42ffc917 (patch) | |
tree | 3445d59e0d92722f1bd6982dad0458b2df280a35 /Lib/idlelib/PyShell.py | |
parent | d70be9ba1f1ddb332f039491a50ac9190d3adfc4 (diff) | |
download | cpython-8b2a56b89d6ce0d8ce3343953529e07a42ffc917.zip cpython-8b2a56b89d6ce0d8ce3343953529e07a42ffc917.tar.gz cpython-8b2a56b89d6ce0d8ce3343953529e07a42ffc917.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.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index edb4f37..278f4f6 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -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" |