X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..504d911e5a101759669b3ab3487a2f1e28989d7b:/wxPython/demo/wxButton.py diff --git a/wxPython/demo/wxButton.py b/wxPython/demo/wxButton.py index b9bdc0bbc7..7ed3113215 100644 --- a/wxPython/demo/wxButton.py +++ b/wxPython/demo/wxButton.py @@ -14,9 +14,11 @@ class TestPanel(wxPanel): b.SetForegroundColour(wxWHITE) b.SetDefault() - wxButton(self, 20, "HELLO AGAIN!", wxPoint(20, 60), wxSize(90, 45)) + b = wxButton(self, 20, "HELLO AGAIN!", wxPoint(20, 60), wxSize(90, 45)) EVT_BUTTON(self, 20, self.OnClick) + b.SetToolTipString("This is a Hello button...") + bmp = wxBitmap('bitmaps/test2.bmp', wxBITMAP_TYPE_BMP) mask = wxMaskColour(bmp, wxBLUE)