mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #14962: Update text coloring in IDLE shell window after changing
options. Patch by Roger Serwy.
This commit is contained in:
parent
d70be9ba1f
commit
8b2a56b89d
2 changed files with 8 additions and 0 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue