]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxButton.py
[start of] a wxUniversal implementation of wxToolBar
[wxWidgets.git] / wxPython / demo / wxButton.py
index 7ed311321547289cdf5d5b2d6d2d416e27f7ac14..a8956f3db982586d9de25aee99f9b2d451dbe24d 100644 (file)
@@ -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))