def closeEvent(self, event): logger.debug('closeEvent', self.name) if cp.res_save_log: logger.saveLogInFile(fnm.log_file()) logger.saveLogTotalInFile(fnm.log_file_total()) #try : cp.guifiles.close() #except : pass #try : cp.guisetupinfo.close() #except : pass #try : cp.guianasettings.close() #except : pass #try : cp.guisystemsettings.close() #except : pass #try : cp.guiviewresults.close() #except : pass #try : cp.guirun.close() #except : pass try: cp.guilogger.close() except: pass try: cp.guifilebrowser.close() except: pass
def closeEvent(self, event): logger.debug('closeEvent', self.name) if cp.res_save_log : logger.saveLogInFile ( fnm.log_file() ) logger.saveLogTotalInFile( fnm.log_file_total() ) #try : cp.guifiles.close() #except : pass #try : cp.guisetupinfo.close() #except : pass #try : cp.guianasettings.close() #except : pass #try : cp.guisystemsettings.close() #except : pass #try : cp.guiviewresults.close() #except : pass #try : cp.guirun.close() #except : pass try : cp.guilogger.close() except : pass try : cp.guifilebrowser.close() except : pass
def startGUILog(self) : self.fname_log = fnm.log_file() self.fname_log_total = fnm.log_file_total() self.setStatus(0, 'Log-file: ' + os.path.basename(self.fname_log)) logger.setLevel(cp.log_level.value()) self.box_txt.setText( logger.getLogContent() ) logger.setGUILogger(self) logger.debug('GUILogger is open', __name__)
def closeEvent(self, event): logger.debug('closeEvent', self.name) if cp.res_save_log : logger.saveLogInFile ( fnm.log_file() ) logger.saveLogTotalInFile( fnm.log_file_total() ) try : self.gui_win.close() except : pass try : del self.gui_win except : pass #try : cp.guifiles.close() #except : pass #try : cp.guisetupinfo.close() #except : pass #try : cp.guianasettings.close() #except : pass #try : cp.guisystemsettings.close() #except : pass #try : cp.guiviewresults.close() #except : pass #try : cp.guirun.close() #except : pass try : cp.guilogger.close() except : pass try : cp.guifilebrowser.close() except : pass try : cp.plotimgspe.close() except : pass try : cp.plotimgspe_g.close() except : pass try : cp.plottime.close() except : pass try : cp.plotarray.close() except : pass try : cp.plot_g2.close() except : pass try : cp.plot_gr.close() except : pass try : cp.maskeditor.close() except : pass
def closeEvent(self, event): logger.debug('closeEvent', self.name) if cp.res_save_log: logger.saveLogInFile(fnm.log_file()) logger.saveLogTotalInFile(fnm.log_file_total()) try: self.gui_win.close() except: pass try: del self.gui_win except: pass #try : cp.guifiles.close() #except : pass #try : cp.guisetupinfo.close() #except : pass #try : cp.guianasettings.close() #except : pass #try : cp.guisystemsettings.close() #except : pass #try : cp.guiviewresults.close() #except : pass #try : cp.guirun.close() #except : pass try: cp.guilogger.close() except: pass try: cp.guifilebrowser.close() except: pass try: cp.plotimgspe.close() except: pass try: cp.plotimgspe_g.close() except: pass try: cp.plottime.close() except: pass try: cp.plotarray.close() except: pass try: cp.plot_g2.close() except: pass try: cp.maskeditor.close() except: pass