Whoops -- referenced self.top before it was set.
This commit is contained in:
parent
4eaadf002e
commit
ad24ae10df
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue