X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/185d7c3ee4c6e4a9ddaf811ae38e57d68a0fdff3..943ca237540a8bdf62d87f0c94de7d0ad02c0e16:/wxPython/demo/wxButton.py diff --git a/wxPython/demo/wxButton.py b/wxPython/demo/wxButton.py index 7ed3113215..a8956f3db9 100644 --- a/wxPython/demo/wxButton.py +++ b/wxPython/demo/wxButton.py @@ -1,6 +1,8 @@ from wxPython.wx import * +import images + #---------------------------------------------------------------------- class TestPanel(wxPanel): @@ -19,12 +21,11 @@ class TestPanel(wxPanel): b.SetToolTipString("This is a Hello button...") - bmp = wxBitmap('bitmaps/test2.bmp', wxBITMAP_TYPE_BMP) - + bmp = images.getTest2Bitmap() mask = wxMaskColour(bmp, wxBLUE) bmp.SetMask(mask) - print bmp.GetWidth(), bmp.GetHeight() + ##print bmp.GetWidth(), bmp.GetHeight() wxBitmapButton(self, 30, bmp, wxPoint(140, 20), wxSize(bmp.GetWidth()+10, bmp.GetHeight()+10))