]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxButton.py
don't log mouse events by default
[wxWidgets.git] / wxPython / demo / wxButton.py
index 7ed311321547289cdf5d5b2d6d2d416e27f7ac14..a8956f3db982586d9de25aee99f9b2d451dbe24d 100644 (file)
@@ -1,6 +1,8 @@
 
 from wxPython.wx import *
 
 
 from wxPython.wx import *
 
+import images
+
 #----------------------------------------------------------------------
 
 class TestPanel(wxPanel):
 #----------------------------------------------------------------------
 
 class TestPanel(wxPanel):
@@ -19,12 +21,11 @@ class TestPanel(wxPanel):
 
         b.SetToolTipString("This is a Hello button...")
 
 
         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)
 
         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))
 
         wxBitmapButton(self, 30, bmp, wxPoint(140, 20),
                        wxSize(bmp.GetWidth()+10, bmp.GetHeight()+10))