[Python-checkins] cpython (3.2): Issue #14962: Update text coloring in IDLE shell window after changing
ned.deily
python-checkins at python.org
Thu May 31 18:58:49 CEST 2012
http://hg.python.org/cpython/rev/9d0c3a835bfe
changeset: 77266:9d0c3a835bfe
branch: 3.2
parent: 77254:a0023e779bce
user: Ned Deily <nad at acm.org>
date: Thu May 31 09:17:29 2012 -0700
summary:
Issue #14962: Update text coloring in IDLE shell window after changing
options. Patch by Roger Serwy.
files:
Lib/idlelib/PyShell.py | 5 +++++
Misc/NEWS | 3 +++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -309,6 +309,11 @@
"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"
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -70,6 +70,9 @@
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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list