Added missing TKrootdestroyed flag to window destroyed callback
This commit is contained in:
parent
f47e397086
commit
e3d227e709
|
@ -2055,6 +2055,12 @@ class TkScrollableFrame(tk.Frame):
|
|||
self.TKFrame.config(borderwidth=0, highlightthickness=0)
|
||||
self.config(borderwidth=0, highlightthickness=0)
|
||||
|
||||
# scrollbar = tk.Scrollbar(frame)
|
||||
# scrollbar.pack(side=tk.RIGHT, fill='y')
|
||||
# scrollbar.config(command=treeview.yview)
|
||||
# self.vscrollbar.config(command=self.TKFrame.yview)
|
||||
# self.TKFrame.configure(yscrollcommand=self.vscrollbar.set)
|
||||
|
||||
self.bind('<Configure>', self.set_scrollregion)
|
||||
|
||||
self.bind_mouse_scroll(self.canvas, self.yscroll)
|
||||
|
@ -3093,6 +3099,7 @@ class Window:
|
|||
self.TKroot.quit() # kick the users out of the mainloop
|
||||
if self.CurrentlyRunningMainloop: # quit if this is the current mainloop, otherwise don't quit!
|
||||
self.TKroot.destroy() # kick the users out of the mainloop
|
||||
self.TKrootDestroyed = True
|
||||
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in New Issue