+ p = wxPanel(self, -1, style=0)
+ grid = CustTableGrid(p, log)
+ b = wxButton(p, -1, "Another Control...")
+ b.SetDefault()
+ EVT_BUTTON(self, b.GetId(), self.OnButton)
+ EVT_SET_FOCUS(b, self.OnButtonFocus)
+ bs = wxBoxSizer(wxVERTICAL)
+ bs.Add(grid, 1, wxGROW|wxALL, 5)
+ bs.Add(b)
+ p.SetSizer(bs)
+
+ def OnButton(self, evt):
+ print "button selected"
+
+ def OnButtonFocus(self, evt):
+ print "button focus"