Re: Custom grid editor crashes
Grant Paton-Simpson <[email protected]>
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <[email protected]> |
Thanks - that was the answer. Nearly ready for a new release of SOFA. On Saturday, 31 August 2019 11:01:27 UTC+12, Grant Paton-Simpson wrote: > > Hi, > > I need some help making a simple custom editor for a grid cell. I wrote > code for a custom editor that worked on wxPython 2.8 (as part of the SOFA > Statistics application) but I've had no luck getting it to work on wxPython > 4.0.4. Crashes occur on both Windows 10 and Ubuntu 19.04. Thankfully these > crashes are reliable and occur every single time the user follows a > particular sequence of interactions. > > The attached code is the simplest I can make to illustrate the problem. > There is a TestFrame with a grid. The grid has 3 rows and one column. The > middle row is the one with the custom cell editor (with a red background to > make it obvious) and the custom cell editor has only one control - a > wx.TextCtrl. Clicking into the control (i.e. entering the custom editor) > and typing works fine but clicking out of it e.g. into another row, > instantly terminates the program. > > I am hoping it is a simple problem like mishandling event propagation or > the failure to override a method. > > Thanks in advance. > > All the best, > Grant > -- You received this message because you are subscribed to the Google Groups "wxPython-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/4d06d95d-cf2f-4f78-845a-836341c06dc6%40googlegroups.com.