#17613: Prevent traceback when removing syntax colorizer in IDLE.
This commit is contained in:
parent
6b2918ae75
commit
7733be8f26
|
@ -51,6 +51,10 @@ class ColorDelegator(Delegator):
|
|||
self.config_colors()
|
||||
self.bind("<<toggle-auto-coloring>>", self.toggle_colorize_event)
|
||||
self.notify_range("1.0", "end")
|
||||
else:
|
||||
# No delegate - stop any colorizing
|
||||
self.stop_colorizing = True
|
||||
self.allow_colorizing = False
|
||||
|
||||
def config_colors(self):
|
||||
for tag, cnf in self.tagdefs.items():
|
||||
|
|
Loading…
Reference in New Issue