+ def OnAddCate(self, evt) :
+ print('add a category')
+ print(self.m_listCate.GetItemCount())
+ self.cate.addcatefromscratch()
+ self.m_listCate.dlist = self.cate.getcate()
+ self.m_listCate.RefreshData(self.m_listCate.dlist)
+ self.m_listCate.SetSelection(self.m_listCate.GetItemCount() - 1)
+