]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxButton.py
Committing in .
[wxWidgets.git] / wxPython / demo / wxButton.py
index 7ed311321547289cdf5d5b2d6d2d416e27f7ac14..2c763d7f70b4178a7a4856c115cb7df4b5509880 100644 (file)
@@ -1,6 +1,8 @@
 
 from wxPython.wx import *
 
+import images
+
 #----------------------------------------------------------------------
 
 class TestPanel(wxPanel):
@@ -19,18 +21,14 @@ 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)
 
-
     def OnClick(self, event):
         self.log.WriteText("Click! (%d)\n" % event.GetId())