X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/969d9b6fa963c0f14298e0ec8aa88b6d6292a6f8..4f60dce5d49d3a5f38d93c867bd3527fe60e1aec:/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()