def onReset(self, event): """ Reset the color of the panel to the default color """ self.panel.SetBackgroundColour(wx.NullColour) self.txt.SetBackgroundColour(wx.NullColour) self.panel.Refresh()