From 5af0df528d717ca4b60edfeab5174dece7fe22eb Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 25 Jun 1999 17:08:19 +0000 Subject: Destroy the tree when closing. --- Tools/idle/ClassBrowser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/idle/ClassBrowser.py b/Tools/idle/ClassBrowser.py index 0cdd645..31299f0 100644 --- a/Tools/idle/ClassBrowser.py +++ b/Tools/idle/ClassBrowser.py @@ -36,6 +36,7 @@ class ClassBrowser: def close(self, event=None): self.top.destroy() + self.node.destroy() def init(self, flist): self.flist = flist @@ -51,7 +52,7 @@ class ClassBrowser: sc = ScrolledCanvas(top, bg="white", highlightthickness=0, takefocus=1) sc.frame.pack(expand=1, fill="both") item = self.rootnode() - node = TreeNode(sc.canvas, None, item) + self.node = node = TreeNode(sc.canvas, None, item) node.update() node.expand() -- cgit v0.12