def on_finished(self, event): # wxGlade: sampoorna_win.<event_handler>
if self.button_finished.Label=="Abort":
msg="Do you want to abort this operation?"
dlg = wx.MessageDialog(self, msg,"Warning", wx.YES_NO | wx.ICON_QUESTION)
result = dlg.ShowModal()# == wx.ID_YES
if result==wx.ID_YES:
self.thread.stop()
self.Close()
dlg.Destroy()
else:
self.Close()
event.Skip()# end of class sampoorna_win
评论列表
文章目录