X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/969d9b6fa963c0f14298e0ec8aa88b6d6292a6f8..f78e4942ec0f3f6abd2992502e2d6c5c2e8e55f6:/wxPython/wx/lib/statbmp.py?ds=inline diff --git a/wxPython/wx/lib/statbmp.py b/wxPython/wx/lib/statbmp.py index f0e0ff488c..fa2db42356 100644 --- a/wxPython/wx/lib/statbmp.py +++ b/wxPython/wx/lib/statbmp.py @@ -25,7 +25,7 @@ class GenStaticBitmap(wx.PyControl): wx.DefaultValidator, name) self._bitmap = bitmap self.InheritAttributes() - self.SetBestSize(size) + self.SetBestFittingSize(size) self.Bind(wx.EVT_ERASE_BACKGROUND, self.OnEraseBackground) self.Bind(wx.EVT_PAINT, self.OnPaint) @@ -33,7 +33,7 @@ class GenStaticBitmap(wx.PyControl): def SetBitmap(self, bitmap): self._bitmap = bitmap - self.SetBestSize( (bitmap.GetWidth(), bitmap.GetHeight()) ) + self.SetBestFittingSize( (bitmap.GetWidth(), bitmap.GetHeight()) ) self.Refresh()