def gui_sim_stop(self): text = self.check_warnings() self.progress_window.stop() help_window().show() status_icon_stop(self.cluster) help_window().help_set_help([ "plot.png", _("<big><b>Simulation finished!</b></big><br>Click on the plot icon to plot the results" ) ]) if len(text) != 0: self.dialog = sim_warnings(text) if self.callback_when_done != False: self.callback_when_done() self.callback_when_done = False if self.excel_workbook_gen_error == True: help_window().help_append([ "warning.png", _("<big><b>Excel workbook error</b></big><br>I can't write new data to the file data.xlsx, I think you have are viewing it using another program. Please close data.xlsx to enable me to write new data to it." ) ]) self.jobs_update.emit() self.sim_finished.emit()
def update_now(): response=yes_no_dlg(self,_("This feature is sill under development. It searches the gpvdm web page for updates then uses them to update gpvdm. Use it at your own risk - I take no responsibility for any data loss! Do you wish to continue?")) if response==True: ret='\n'.join(update_fetch()) dialog=sim_warnings() dialog.init(ret) response=dialog.run() dialog.destroy() md.destroy()
def gui_sim_stop(self): text = self.check_warnings() self.progress_window.stop() help_window().show() status_icon_stop(self.cluster) help_window().help_set_help([ "plot.png", _("<big><b>Simulation finished!</b></big><br>Click on the plot icon to plot the results" ) ]) if len(text) != 0: self.dialog = sim_warnings(text) self.jobs_update.emit() self.sim_finished.emit()
def gui_sim_stop(self): print("here") text=self.check_warnings() self.progress_window.stop() help_window().show() status_icon_stop(self.cluster) help_window().help_set_help(["plot.png",_("<big><b>Simulation finished!</b></big><br>Click on the plot icon to plot the results")]) if len(text)!=0: self.dialog=sim_warnings(text) if self.callback_when_done!=False: self.callback_when_done() self.callback_when_done=False self.sim_finished.emit()