def quit(self): try: self.documents_controller.closeAllDocuments() TemporaryDirectory.delete() QApplication.quit() except Exception as e: Dialogs.showError(e)
def quit(self): try: self.documents_controller.closeAllDocuments() TemporaryDirectory.delete() QApplication.quit() except Exception, e: Dialogs.showError(e)
def initController(self): temp_dir = TemporaryDirectory.get() self.latex2image_converter = Converter(temp_dir) self.latex2image_converter.convertedSignal.connect( self.previewGenerated) self.latex2image_converter.conversionAbortedSignal.connect( self.conversionAborted)
def initController(self): temp_dir = TemporaryDirectory.get() self.latex2image_converter = Converter(temp_dir) self.latex2image_converter.convertedSignal.connect(self.previewGenerated) self.latex2image_converter.conversionAbortedSignal.connect(self.conversionAborted)