self.Bind(wx.EVT_BUTTON, self.OnBiggerButton, b)
b.SetFont(wx.Font(20, wx.SWISS, wx.NORMAL, wx.BOLD, False))
b.SetBezelWidth(5)
- ###b.SetBestSize()
b.SetMinSize(wx.DefaultSize)
b.SetBackgroundColour("Navy")
b.SetForegroundColour(wx.WHITE)
mask = wx.Mask(bmp, wx.BLUE)
bmp.SetMask(mask)
b.SetBitmapSelected(bmp)
- b.SetBestSize()
+ b.SetInitialSize()
sizer.Add(b)
# A toggle button
bmp.SetMask(mask)
b.SetBitmapSelected(bmp)
b.SetToggle(True)
- b.SetBestSize()
+ b.SetInitialSize()
sizer.Add(b)
# A bitmap button with text.
bmp.SetMask(mask)
b.SetBitmapSelected(bmp)
b.SetUseFocusIndicator(False)
- b.SetBestSize()
+ b.SetInitialSize()
sizer.Add(b)