summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-06-25 17:08:19 (GMT)
committerGuido van Rossum <guido@python.org>1999-06-25 17:08:19 (GMT)
commit5af0df528d717ca4b60edfeab5174dece7fe22eb (patch)
tree0b66d6f3e7b311760f069af1c7f25d7ec48fc3a0 /Tools
parent30455f305047888f7e1b9a2fb4b2fb1c07cc6cda (diff)
downloadcpython-5af0df528d717ca4b60edfeab5174dece7fe22eb.zip
cpython-5af0df528d717ca4b60edfeab5174dece7fe22eb.tar.gz
cpython-5af0df528d717ca4b60edfeab5174dece7fe22eb.tar.bz2
Destroy the tree when closing.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/idle/ClassBrowser.py3
1 files changed, 2 insertions, 1 deletions
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()