[wxPython-users] ANN: FlatNotebook Control For wxPython ;-)
Andrea Gavana
andrea.gavana at gmail.com
Tue Oct 3 10:25:14 PDT 2006
On 10/3/06, Robin Dunn <robin at alldunn.com> wrote:
> Kevin Ollivier wrote:
> > wx._core.PyAssertionError: C++ assertion "(bitmap.GetWidth() == m_width
> > && bitmap.GetHeight() == m_height) || (m_width == 0 && m_height == 0)"
> > failed in /BUILD/wxPython-src-2.6.3.3/src/mac/carbon/imaglist.cpp(88):
> > invalid bitmap size in wxImageList: this might work on this platform but
> > definitely won't under Windows.
> >
> > I've never seen this before on Mac when loading an image whose
> > dimensions were equal. Does anyone know what might be causing this?
>
> It's not checking that the width and height are equal, but that the
> dimensions of the image matches size specified for the image list.
Well, the imagelist is declared as:
self._ImageList = wx.ImageList(16, 16)
self._ImageList.Add(wx.Bitmap("book_red.png", wx.BITMAP_TYPE_PNG))
self._ImageList.Add(wx.Bitmap("book_green.png", wx.BITMAP_TYPE_PNG))
self._ImageList.Add(wx.Bitmap("book_blue.png", wx.BITMAP_TYPE_PNG))
the three images have the following properties:
Image width: 16
Image height: 16
Horizontal resolution: 71
Vertical resolution: 71
Bit depth: 32
Nnumber of images: 1
So I don't see why Mac should complain about the differences between
the imagelist size and the PNGs size. They are the same.
Curious the error message:
"invalid bitmap size in wxImageList: this might work on this platform
but definitely won't under Windows"
Hahahahahaha, yeah, sure, how comes that it's actually *working* on Windows? :-D
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/
More information about the wxpython-users
mailing list