In the attached minimal script I try to use a custom renderer for my DataViewCtrl, but the renderer seems to absolutely need a string from the Model’s GetValue method (line 29), or a weird error dialog appears with the “Wrong type, required: long but: string” message.
The dialog “eats” the exception, which isn’t printed in the console, so there seems to be no way to examine the whole traceback with the exact line number where the exception is raised.
In my real script, I currently have to convert the integer value to string in Model’s GetValue, and then reconvert it to an integer in the Renderer because it’s an ID that I need in order to retrieve the text and images to render; of course I’d like to avoid the conversion if possible. What am I doing wrong?
My system:
wxPython 3.0.0.0
wxGTK 3.0.1
GTK 2.24.24
Arch Linux x86_64
Thank you
test_dvrenderer.py (1.6 KB)