def closeAllTrees(self): reply = MSG.wQuestion( self, 101, 'Double check...', """Do you want to close all the views,<br> and <b>forget unsaved</b> modifications?""") if reply: Q7FingerPrint.closeAllTrees()
def closeApplication(self): reply = MSG.wQuestion(self, 101, 'Double check...', """Do you want to quit %s,<b>close all views</b> and forget unsaved modifications?""" % OCTXT._ToolName) if reply == MSG.OK: Q7FingerPrint.closeAllTrees() if self.help is not None: self.help.close() if self._patternwindow is not None: self._patternwindow.close() if self.control_log is not None: self.control_log.close() if self._toolswindow is not None: self._toolswindow.close() return True else: return False