]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/statbmp.py
added missing button state
[wxWidgets.git] / wxPython / wx / lib / statbmp.py
index bd4ab445145a3e51868d2aa642414a13fa130100..3585446ee62322beceb4fee0c05e90043f546166 100644 (file)
@@ -27,7 +27,7 @@ class GenStaticBitmap(wx.PyControl):
                              wx.DefaultValidator, name)
         self._bitmap = bitmap
         self.InheritAttributes()
-        self.SetBestFittingSize(size)
+        self.SetInitialSize(size)
 
         self.Bind(wx.EVT_ERASE_BACKGROUND, self.OnEraseBackground)
         self.Bind(wx.EVT_PAINT,            self.OnPaint)
@@ -35,7 +35,7 @@ class GenStaticBitmap(wx.PyControl):
 
     def SetBitmap(self, bitmap):
         self._bitmap = bitmap
-        self.SetBestFittingSize( (bitmap.GetWidth(), bitmap.GetHeight()) )
+        self.SetInitialSize( (bitmap.GetWidth(), bitmap.GetHeight()) )
         self.Refresh()