[wxPython] wxOGL wxBitmapShape problems

My shape is always blank without text.

I've used the demo code in a seperate app and tried adding to 'shapes'
list, adding independently to canvas.

I've tried loading bitmap through wxBitmap,wxImage,PIL and
wxBitmapShape.

I've tried setting pens, brushes.

I'm now running out of ideas!

After tweaking MyAddShape to optionally set the pen and brush, adding this
to the demo works for me:

        bmp = wxBitmap('bitmaps/test2.bmp', wxBITMAP_TYPE_BMP)
        mask = wxMaskColour(bmp, wxBLUE)
        bmp.SetMask(mask)
        s = wxBitmapShape()
        s.SetBitmap(bmp)
        self.MyAddShape(s, 225, 150, None, None, "Bitmap")

The only problem is that the text shows up in the middle of the bitmap,
you'll probably have to do something with constraints or shape regions to
put it somewhere else. Has anybody done this already and want to share some
code?

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!