From e3d227e709b0fa97f18cc660add0241e2f24cd83 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Tue, 30 Oct 2018 12:10:28 -0400 Subject: [PATCH] Added missing TKrootdestroyed flag to window destroyed callback --- PySimpleGUI.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index a001089a..0519f275 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -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('', 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