gui_main.py: Hide window during close

Allows background processes to finish cleaning up without stalling the UI
This commit is contained in:
Mykola Grymalyuk
2022-05-19 13:55:11 -06:00
parent 05b08071fc
commit 526dbb5d8a

View File

@@ -76,6 +76,8 @@ class wx_python_gui:
wx.CallAfter(self.frame.Close)
def OnCloseFrame(self, event):
self.frame.SetTransparent(0)
wx.GetApp().Yield()
self.frame.DestroyChildren()
self.frame.Destroy()
self.app.ExitMainLoop()