X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/990416e0bd9fc0eb013165e1d164e8e6df560f32..4e0dcbb14a8b0d73b72fddbc194a0269491e0111:/utils/wxPython/demo/wxButton.py diff --git a/utils/wxPython/demo/wxButton.py b/utils/wxPython/demo/wxButton.py index d5ccab8493..b9bdc0bbc7 100644 --- a/utils/wxPython/demo/wxButton.py +++ b/utils/wxPython/demo/wxButton.py @@ -18,10 +18,12 @@ class TestPanel(wxPanel): EVT_BUTTON(self, 20, self.OnClick) bmp = wxBitmap('bitmaps/test2.bmp', wxBITMAP_TYPE_BMP) - # the mask is still having troubles on win95/98... + mask = wxMaskColour(bmp, wxBLUE) bmp.SetMask(mask) + print bmp.GetWidth(), bmp.GetHeight() + wxBitmapButton(self, 30, bmp, wxPoint(140, 20), wxSize(bmp.GetWidth()+10, bmp.GetHeight()+10)) EVT_BUTTON(self, 30, self.OnClick)