Whoops -- referenced self.top before it was set.

This commit is contained in:
Guido van Rossum 1998-10-13 20:00:02 +00:00
parent 4eaadf002e
commit ad24ae10df
1 changed files with 1 additions and 1 deletions

View File

@ -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,