In _bind(), found a way to test for break without a temp variable.
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index 9291ab5..4a94c38 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/Tkinter.py
@@ -457,11 +457,11 @@
if func:
funcid = self._register(func, self._substitute,
needcleanup)
- cmd = ("%sset _tkinter_break [%s %s]\n"
- 'if {"$_tkinter_break" == "break"} break\n') \
- % (add and '+' or '',
- funcid,
- _string.join(self._subst_format))
+ cmd = ('%sif {"[%s %s]" == "break"} break\n'
+ %
+ (add and '+' or '',
+ funcid,
+ _string.join(self._subst_format)))
self.tk.call(what + (sequence, cmd))
return funcid
elif func == '':