def onClose(self, event=None): ret = popup(self, "Really Quit?", "Exit Sample Stage?", style=wx.YES_NO|wx.NO_DEFAULT|wx.ICON_QUESTION) if ret == wx.ID_YES: finalize_epics() try: fout = open(WORKDIR_FILE, 'w') fout.write("%s\n" % os.path.abspath(os.curdir)) fout.close() except: pass self.Destroy()
def onClose(self, event=None): ret = popup(self, "Really Quit?", "Exit Sample Stage?", style=wx.YES_NO | wx.NO_DEFAULT | wx.ICON_QUESTION) if ret == wx.ID_YES: finalize_epics() try: fout = open(WORKDIR_FILE, 'w') fout.write("%s\n" % os.path.abspath(os.curdir)) fout.close() except: pass self.Destroy()
def onClose(self, event): finalize_epics() self.Destroy()