def OnNewCard(self, evt): newCardDlg = Dialog.AddNewCard(None, -1, "新建单词卡片", (500, 500)) newCardDlg.ShowModal() newCardDlg.Destroy()