def Failed_Report(self):
if len(self.Failed_List)==0:
msg="All Students Passed"
else:
msg="The following Student(s) detained\n"
no=0
for pupil in self.Failed_List:
no+=1
msg+=str(no)+". "+str(pupil)+"\n"
#app = wx.PySimpleApp(0)
dlg = wx.MessageDialog(None, msg,str(self.class_)+self.div,wx.OK | wx.ICON_INFORMATION)
dlg.ShowModal()
dlg.Destroy()
评论列表
文章目录