QScintilla/Exporters/ExporterHTML.py

changeset 3190
a9a94491c4fd
parent 3160
209a07d7e401
child 3484
645c12de6b0c
equal deleted inserted replaced
3189:9a21c547de5f 3190:a9a94491c4fd
365 365
366 def exportSource(self): 366 def exportSource(self):
367 """ 367 """
368 Public method performing the export. 368 Public method performing the export.
369 """ 369 """
370 filename = self._getFileName(self.trUtf8("HTML Files (*.html)")) 370 filename = self._getFileName(self.tr("HTML Files (*.html)"))
371 if not filename: 371 if not filename:
372 return 372 return
373 373
374 try: 374 try:
375 QApplication.setOverrideCursor(QCursor(Qt.WaitCursor)) 375 QApplication.setOverrideCursor(QCursor(Qt.WaitCursor))
402 f.close() 402 f.close()
403 except IOError as err: 403 except IOError as err:
404 QApplication.restoreOverrideCursor() 404 QApplication.restoreOverrideCursor()
405 E5MessageBox.critical( 405 E5MessageBox.critical(
406 self.editor, 406 self.editor,
407 self.trUtf8("Export source"), 407 self.tr("Export source"),
408 self.trUtf8( 408 self.tr(
409 """<p>The source could not be exported to""" 409 """<p>The source could not be exported to"""
410 """ <b>{0}</b>.</p><p>Reason: {1}</p>""") 410 """ <b>{0}</b>.</p><p>Reason: {1}</p>""")
411 .format(filename, str(err))) 411 .format(filename, str(err)))
412 finally: 412 finally:
413 QApplication.restoreOverrideCursor() 413 QApplication.restoreOverrideCursor()

eric ide

mercurial