wx.PyControl.SetLabel(self, label) # don't check wx.ST_NO_AUTORESIZE yet
self.defBackClr = self.GetBackgroundColour()
self.InheritAttributes()
- self.SetBestSize(size)
+ self.SetBestFittingSize(size)
self.Bind(wx.EVT_ERASE_BACKGROUND, self.OnEraseBackground)
self.Bind(wx.EVT_PAINT, self.OnPaint)
if not style & wx.ST_NO_AUTORESIZE:
best = self.GetBestSize()
self.SetSize(best)
- self.SetSizeHints(best)
+ self.SetMinSize(best)
self.Refresh()
if not style & wx.ST_NO_AUTORESIZE:
best = self.GetBestSize()
self.SetSize(best)
- self.SetSizeHints(best)
+ self.SetMinSize(best)
self.Refresh()