diff options
author | Guido van Rossum <guido@python.org> | 1998-10-13 20:00:02 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-10-13 20:00:02 (GMT) |
commit | ad24ae10df60b77cf3cbd6497798d0d72a2810c1 (patch) | |
tree | 5d4d2ba579aab3c1cdac2c8ae6f9003461fc55e4 /Tools/idle | |
parent | 4eaadf002ed7d4010f743855a4495940be7ccf28 (diff) | |
download | cpython-ad24ae10df60b77cf3cbd6497798d0d72a2810c1.zip cpython-ad24ae10df60b77cf3cbd6497798d0d72a2810c1.tar.gz cpython-ad24ae10df60b77cf3cbd6497798d0d72a2810c1.tar.bz2 |
Whoops -- referenced self.top before it was set.
Diffstat (limited to 'Tools/idle')
-rw-r--r-- | Tools/idle/StackViewer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/idle/StackViewer.py b/Tools/idle/StackViewer.py index 52169a5..9b3a7c3 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, |