]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/statbmp.py
Remember the version selected and allow require to be called again as
[wxWidgets.git] / wxPython / wx / lib / statbmp.py
index f0e0ff488cee57dd3c1c32a832b32b5d7f587989..fa2db42356c89927cac926996749a3674de0c19b 100644 (file)
@@ -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()