To whom it may concern.
If you try to close a frame containing a grid when the cell editor is open, you cause an error.
Sure, it doesn’t happen very often, but when it does the only piece of information you get from the system is “Offset: 723a3a72”, which is rather mysterious, at least for me: I spent five hours to solve the problem. And if you have passed around the application, your fame is dimmed.
Once recognized the disease, Dr. House, the cure is just a little pill.
In init, you write this instruction:
self.Bind(wx.EVT_CLOSE, self.OnClose)
#(supposing that it doesn't exist yet)
and then:
def OnClose(self, e):
self.grid.SaveEditControlValue()
self.Destroy()
I hope this was of some use.