Re: Custom grid editor crashes

Jan Vonrickenbach <[email protected]>
Newsgroups gmane.comp.python.wxpython
Message-ID <[email protected]>
Hi,

Looks like I have exactly the same problem. Would you be willing to share 
the changes needed in your example?

Thanks in advance

Jan

On Saturday, September 28, 2019 at 9:45:56 PM UTC+2, Grant Paton-Simpson 
wrote:
>
> 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:
>>
>>  
>>
>  
>>
>
>> 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/00b20dbb-f65c-431b-b17e-63e27ae5a070%40googlegroups.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.