Fix exception on exit in some case, sequel of an earlier cleanup commit I couldn't find back. Disconnecting the event is apparently the way to go. https://wiki.wxpython.org/Surviving%20with%20wxEVT%20KILL%20FOCUS%20under%20Microsoft%20Windows
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Sat, 13 Jul 2019 10:57:25 +0200
changeset 2624 570cf07c3fd1
parent 2623 26ba948a2e51
child 2625 e5ce6c4a8672
Fix exception on exit in some case, sequel of an earlier cleanup commit I couldn't find back. Disconnecting the event is apparently the way to go. https://wiki.wxpython.org/Surviving%20with%20wxEVT%20KILL%20FOCUS%20under%20Microsoft%20Windows
BeremizIDE.py
--- a/BeremizIDE.py	Fri Jul 12 11:53:04 2019 +0200
+++ b/BeremizIDE.py	Sat Jul 13 10:57:25 2019 +0200
@@ -624,6 +624,7 @@
 
     def OnCloseFrame(self, event):
         if self.TryCloseFrame():
+            self.LogConsole.Disconnect(-1, -1, wx.wxEVT_KILL_FOCUS)
             event.Skip()
         else:
             # prevent event to continue, i.e. cancel closing