wxpython: wxbitmap / wximage fail...

James Tan webmaster at nextmovetech.com
Sat Feb 8 15:19:11 EST 2003


Hie everyone

I've been playing with image, and it seems that i'm facing a dead end with
this error.
the wxbitmap and wximage works fine with bmp, but when it comes to gif nor
jpg nor png, it's all screw up.
but i'm not sure what the demo did (gosh), it work,
but why it isn't working on mine?
i'm using python 2.2.2 with wxpython 2.4
please advice:

#----code -----
from wxPython.wx import *

mybmp = wxBitmap("town03_c.gif", wxBITMAP_TYPE_GIF)
myimg = wxImage("town03_c.gif", wxBITMAP_TYPE_GIF)


mybmp2 = myimg.ConvertToBitmap()
#-----end of code------

----errors-----
04:14:51: Warning: No image handler for type 13 defined.
04:14:51: Warning: No image handler for type 13 defined.
04:14:51: Debug: e:\projects\wx\src\msw\bitmap.cpp(507): assert
"wxAssertFailure" failed: invalid image


best regards,

James






More information about the Python-list mailing list