summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorRoger Serwy <roger.serwy@gmail.com>2013-04-07 17:42:13 (GMT)
committerRoger Serwy <roger.serwy@gmail.com>2013-04-07 17:42:13 (GMT)
commitd673ed9b437e29ff093019dd13c314913d1686ec (patch)
tree53979ce22a26e68d2b5e930fa8ad87244abbffb3 /Lib/idlelib
parent4687cf795c4011f7e8a0ccdffaafba5758f1a61f (diff)
parent7733be8f2612df4caad771795de40cabf66b287b (diff)
downloadcpython-d673ed9b437e29ff093019dd13c314913d1686ec.zip
cpython-d673ed9b437e29ff093019dd13c314913d1686ec.tar.gz
cpython-d673ed9b437e29ff093019dd13c314913d1686ec.tar.bz2
#17613: merge with 3.3.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/ColorDelegator.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/idlelib/ColorDelegator.py b/Lib/idlelib/ColorDelegator.py
index e4ccb42..61e2be4 100644
--- a/Lib/idlelib/ColorDelegator.py
+++ b/Lib/idlelib/ColorDelegator.py
@@ -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():