X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/185d7c3ee4c6e4a9ddaf811ae38e57d68a0fdff3..ae1daed0739bf3c60b5bff4fbda823be2ee67872:/wxPython/demo/wxButton.py?ds=inline diff --git a/wxPython/demo/wxButton.py b/wxPython/demo/wxButton.py index 7ed3113215..2e9664e70a 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,17 +21,17 @@ 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() - wxBitmapButton(self, 30, bmp, wxPoint(140, 20), wxSize(bmp.GetWidth()+10, bmp.GetHeight()+10)) EVT_BUTTON(self, 30, self.OnClick) + if wxUSE_UNICODE: + label = unichr(21514) + unichr(26984) + unichr(8307) + unichr(29545) + wxButton(self, -1, label+" (I have no idea what that says...)", (20, 150)) def OnClick(self, event): self.log.WriteText("Click! (%d)\n" % event.GetId())