Kaydet (Commit) 7ea8f840 authored tarafından Guido van Rossum's avatar Guido van Rossum

Break some cycles when the widget is destroyed.

üst 624a1915
......@@ -48,6 +48,10 @@ class Dialog(Toplevel):
self.wait_window(self)
def destroy(self):
self.initial_focus = None
Toplevel.destroy(self)
#
# construction hooks
......@@ -131,6 +135,10 @@ class _QueryDialog(Dialog):
Dialog.__init__(self, parent, title)
def destroy(self):
self.entry = None
Dialog.destroy(self)
def body(self, master):
w = Label(master, text=self.prompt, justify=LEFT)
......
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