QScintilla/Exporters/ExporterTEX.py

changeset 3190
a9a94491c4fd
parent 3160
209a07d7e401
child 3484
645c12de6b0c
equal deleted inserted replaced
3189:9a21c547de5f 3190:a9a94491c4fd
107 107
108 def exportSource(self): 108 def exportSource(self):
109 """ 109 """
110 Public method performing the export. 110 Public method performing the export.
111 """ 111 """
112 filename = self._getFileName(self.trUtf8("TeX Files (*.tex)")) 112 filename = self._getFileName(self.tr("TeX Files (*.tex)"))
113 if not filename: 113 if not filename:
114 return 114 return
115 115
116 try: 116 try:
117 QApplication.setOverrideCursor(QCursor(Qt.WaitCursor)) 117 QApplication.setOverrideCursor(QCursor(Qt.WaitCursor))
267 f.close() 267 f.close()
268 except IOError as err: 268 except IOError as err:
269 QApplication.restoreOverrideCursor() 269 QApplication.restoreOverrideCursor()
270 E5MessageBox.critical( 270 E5MessageBox.critical(
271 self.editor, 271 self.editor,
272 self.trUtf8("Export source"), 272 self.tr("Export source"),
273 self.trUtf8( 273 self.tr(
274 """<p>The source could not be exported to""" 274 """<p>The source could not be exported to"""
275 """ <b>{0}</b>.</p><p>Reason: {1}</p>""") 275 """ <b>{0}</b>.</p><p>Reason: {1}</p>""")
276 .format(filename, str(err))) 276 .format(filename, str(err)))
277 finally: 277 finally:
278 QApplication.restoreOverrideCursor() 278 QApplication.restoreOverrideCursor()

eric ide

mercurial