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