d***@gmail.com
2014-09-14 10:26:49 UTC
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
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
--
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 wxpython-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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 wxpython-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.