Commit 5af0df52 authored by Guido van Rossum's avatar Guido van Rossum

Destroy the tree when closing.

parent 30455f30
......@@ -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()
......
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