Hi,
I have a class with a member called 'image' which holds a wxBitmap. The
following code
print self.image
print dir(self.image)
results in this output:
<C wxBitmap instance at _c6f578_wxBitmap_p>
['CopyFromCursor', 'CopyFromIcon', 'Destroy', 'GetClassName', 'GetDepth',
'GetHa
ndle', 'GetHeight', 'GetMask', 'GetPalette', 'GetQuality', 'GetSubBitmap',
'GetV
isible', 'GetWidth', 'IsNull', 'LoadFile', 'Ok', 'SaveFile', 'SetDepth',
'SetHan
dle', 'SetHeight', 'SetMask', 'SetMaskColour', 'SetPalette', 'SetQuality',
'SetS
ize', 'SetVisible', 'SetWidth', '__del__', '__doc__', '__init__',
'__module__',
'__repr__', 'this', 'thisown']
Where is my 'ConvertToImage' function? If I try
image = self.image.ConvertToImage()
I get the following error:
image = self.image.ConvertToImage()
AttributeError: wxBitmapPtr instance has no attribute 'ConvertToImage'
Where does the wxBitmapPtr comes from? How can I convert it to an wxBitmap
and then to wxImage? I think the code worked with an earlier build of
version 2.4 (I have 2.4.0.7 installed and I think I had 2.4.0.3 installed
before this).
regards,
Achim