aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-10-13 20:00:02 +0000
committerGuido van Rossum <guido@python.org>1998-10-13 20:00:02 +0000
commitad24ae10df60b77cf3cbd6497798d0d72a2810c1 (patch)
tree5d4d2ba579aab3c1cdac2c8ae6f9003461fc55e4
parentAdded {xview,yview}_{moveto,scroll} to the Canvas class. (diff)
downloadcpython-ad24ae10df60b77cf3cbd6497798d0d72a2810c1.tar.gz
cpython-ad24ae10df60b77cf3cbd6497798d0d72a2810c1.tar.bz2
cpython-ad24ae10df60b77cf3cbd6497798d0d72a2810c1.zip
Whoops -- referenced self.top before it was set.
-rw-r--r--Tools/idle/StackViewer.py2
1 files changed, 1 insertions, 1 deletions
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 @@ class StackViewer:
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,