Mercurial > cpython-lru_cache-weakref
diff Lib/idlelib/PyShell.py @ 77265:1a4e99460438 2.7
Issue #14962: Update text coloring in IDLE shell window after changing
options. Patch by Roger Serwy.
| author | Ned Deily <nad@acm.org> |
|---|---|
| date | Thu, 31 May 2012 09:17:29 -0700 |
| parents | 4334964993b9 |
| children | 58189e37331c |
line wrap: on
line diff
--- a/Lib/idlelib/PyShell.py Thu May 31 12:35:13 2012 +0100 +++ b/Lib/idlelib/PyShell.py Thu May 31 09:17:29 2012 -0700 @@ -313,6 +313,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"
