I have both textctrl and listctrl in my Parent frame. I want to erase both the teletext and listctrl in one click. so when the reset button is clicked it should erase all text and list.How do i accomplish this? I am trying this but that gives me error
self.reset_btn=wx.Button(p,-1,"Reset!")
self.reset_btn.Bind(wx.EVT_BUTTON, self.OnReset, self.reset_btn)
bs.Add(self.reset_btn,0,wx.ALIGN_CENTER)
def OnReset(self, event):
self.list.ClearAll()
self.text.ClearAll()