wxBrush from a Bitmap

I'm trying to create a stippled wxBrush using a bitmap using the
following from the wxWindows docs:

wxBrush(const wxBitmap& stippleBitmap)

Constructs a stippled brush using a bitmap.

However I get an error saying that wxBrush is expecting a wxColour as an
argument. I expect that either this isn't implemented or has a
different name in wxPython. Any help?

Rob A Brooks wrote:

I'm trying to create a stippled wxBrush using a bitmap using the
following from the wxWindows docs:
wxBrush(const wxBitmap& stippleBitmap)
Constructs a stippled brush using a bitmap.

argument. I expect that either this isn't implemented or has a
different name in wxPython. Any help?

Does this work?

  brush = wxBitmap(color, wxSTIPPLE)
  brush.SetStipple(bmp)

ยทยทยท

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