X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/42233acb1f0c54cc37fd6d8444e7d1a4d6b8853c..0a5bb138a71dfc1c706fc0858fb2801500e2c2e8:/wxPython/wx/lib/statbmp.py diff --git a/wxPython/wx/lib/statbmp.py b/wxPython/wx/lib/statbmp.py index bd4ab44514..3585446ee6 100644 --- a/wxPython/wx/lib/statbmp.py +++ b/wxPython/wx/lib/statbmp.py @@ -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()