Commit d57908f5 authored by Guido van Rossum's avatar Guido van Rossum

Finally fix SF bug #441172, using a variant of patch ##443626:

canceling an edit operation would not revert the value of the field.
The fix takes care to destroy the Entry object, as suggested in the
patch.
parent b80bb6c5
......@@ -291,6 +291,12 @@ class TreeNode:
self.canvas.focus_set()
def edit_cancel(self, event=None):
try:
entry = self.entry
del self.entry
except AttributeError:
return
entry.destroy()
self.drawtext()
self.canvas.focus_set()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment