Hi,
I'm trying to get a cell renderer for my grid working, and
while I can run the demos just fine (MegaImageRenderer,
among others), I'm getting segfaults when I try to put the
behavior into my own grid. I've reduced the problem down
to:
# - begin sample code
from wxPython.wx import *
png = wxImage('bitmaps/image.png', wxBITMAP_TYPE_PNG)
print png
bmp = png.ConvertToBitmap() # boom!
print bmp
# - end sample code
# - begin output
[pmcnett@sol demo]$ python test.py
10:11:32 AM: Warning: No image handler for type 15 defined.
<wxPython.image.wxImage instance; proxy of C++ wxImage instance at _8291408_wxImage_p>
10:11:32 AM: Debug: /usr/src/redhat/BUILD/wxPythonSrc-2.4.2.4/src/gtk/bitmap.cpp(349): assert "wxAssertFailure" failed: invalid image
Segmentation fault
# - end output
For some reason, an image handler isn't being found, while in
the wxImage.py demo, all the images get converted and displayed
without trouble.
Am I failing to import something? Thanks!
ยทยทยท
--
Paul