21 def __init__(self, parent, label, handler=None, width=-1,
22 height=25, color_secondary_foreground='black', color_secondary_background='light grey'):
23 wx.Button.__init__(self, parent, label=label,
25 self.SetBackgroundColour(Colour(color_secondary_background))
26 self.SetOwnBackgroundColour(Colour(color_secondary_background))
27 self.SetForegroundColour(Colour(color_secondary_foreground))
28 self.SetOwnForegroundColour(Colour(color_secondary_foreground))
30 handler = getattr(parent,
'On'+label.replace(
' ',
''))
31 parent.Bind(wx.EVT_BUTTON, handler, self)