From ad24ae10df60b77cf3cbd6497798d0d72a2810c1 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 13 Oct 1998 20:00:02 +0000 Subject: [PATCH] Whoops -- referenced self.top before it was set. --- Tools/idle/StackViewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/idle/StackViewer.py b/Tools/idle/StackViewer.py index 52169a5f873..9b3a7c3a655 100644 --- a/Tools/idle/StackViewer.py +++ b/Tools/idle/StackViewer.py @@ -18,9 +18,9 @@ def __init__(self, root=None, flist=None): root = top = Tk() else: top = Toplevel(root) - self.top.protocol("WM_DELETE_WINDOW", self.close) self.root = root self.top = top + self.top.protocol("WM_DELETE_WINDOW", self.close) top.wm_title("Stack viewer") # Create help label self.helplabel = Label(top,