mirror of
https://github.com/python/cpython.git
synced 2025-10-25 10:44:55 +00:00
Whoops -- referenced self.top before it was set.
This commit is contained in:
parent
4eaadf002e
commit
ad24ae10df
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue