cpython: 8b793a946acb (original) (raw)
Mercurial > cpython
changeset 83189:8b793a946acb 3.3
#17613: Prevent traceback when removing syntax colorizer in IDLE. [#17613]
Roger Serwy roger.serwy@gmail.com | |
---|---|
date | Sun, 07 Apr 2013 12:41:16 -0500 |
parents | c26ec5897c5a |
children | b45675223885 4d8e9c5ba651 |
files | Lib/idlelib/ColorDelegator.py Misc/NEWS |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-)[+] [-] Lib/idlelib/ColorDelegator.py 4 Misc/NEWS 2 |
line wrap: on
line diff
--- a/Lib/idlelib/ColorDelegator.py +++ b/Lib/idlelib/ColorDelegator.py @@ -51,6 +51,10 @@ class ColorDelegator(Delegator): self.config_colors() self.bind("<>", self.toggle_colorize_event) self.notify_range("1.0", "end")
else:[](#l1.7)
# No delegate - stop any colorizing[](#l1.8)
self.stop_colorizing = True[](#l1.9)
self.allow_colorizing = False[](#l1.10)
def config_colors(self): for tag, cnf in self.tagdefs.items():
--- a/Misc/NEWS +++ b/Misc/NEWS @@ -33,6 +33,8 @@ Library IDLE ---- +- Issue #17613: Prevent traceback when removing syntax colorizer in IDLE. +