def __init__(self, parent, log):
wx.Panel.__init__(self, parent, -1)
self.log = log
+ ##self.SetBackgroundColour("sky blue")
sizer = wx.FlexGridSizer(1, 3, 20, 20)
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)
b.SetToolTipString("This is a BIG button...")
b.SetBestSize()
sizer.Add(b)
+
+ # a flat text button
+ b = buttons.GenButton(self, -1, 'Flat buttons too!', style=wx.BORDER_NONE)
+ self.Bind(wx.EVT_BUTTON, self.OnButton, b)
+ sizer.Add(b, flag=wx.ALIGN_CENTER_VERTICAL)
+
+ # A flat image button
+ bmp = images.getTest2Bitmap()
+ bmp.SetMaskColour("blue")
+ b = buttons.GenBitmapButton(self, -1, bmp, style=wx.BORDER_NONE)
+ self.Bind(wx.EVT_BUTTON, self.OnButton, b)
+ sizer.Add(b)
+ ##b.SetBackgroundColour("sky blue")
+ ##b.SetBackgroundColour("pink")
+
+
border = wx.BoxSizer(wx.VERTICAL)
border.Add(sizer, 0, wx.ALL, 25)
self.SetSizer(border)