X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/969d9b6fa963c0f14298e0ec8aa88b6d6292a6f8..609b563c8b9ade4fcde9160f11c7deaf16a9f7b6:/wxPython/wx/lib/buttons.py?ds=sidebyside diff --git a/wxPython/wx/lib/buttons.py b/wxPython/wx/lib/buttons.py index 68260c0572..833f176a57 100644 --- a/wxPython/wx/lib/buttons.py +++ b/wxPython/wx/lib/buttons.py @@ -77,7 +77,7 @@ class GenButton(wx.PyControl): self.SetLabel(label) self.InheritAttributes() - self.SetBestSize(size) + self.SetBestFittingSize(size) self.InitColours() self.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown) @@ -100,7 +100,7 @@ class GenButton(wx.PyControl): """ if size is None: size = wx.DefaultSize - wx.PyControl.SetBestSize(self, size) + wx.PyControl.SetBestFittingSize(self, size) def DoGetBestSize(self):