QScintilla/Exporters/ExporterHTML.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3190
a9a94491c4fd
child 3656
441956d8fce5
equal deleted inserted replaced
3456:96232974dcdb 3484:645c12de6b0c
367 367
368 def exportSource(self): 368 def exportSource(self):
369 """ 369 """
370 Public method performing the export. 370 Public method performing the export.
371 """ 371 """
372 filename = self._getFileName(self.trUtf8("HTML Files (*.html)")) 372 filename = self._getFileName(self.tr("HTML Files (*.html)"))
373 if not filename: 373 if not filename:
374 return 374 return
375 375
376 try: 376 try:
377 QApplication.setOverrideCursor(QCursor(Qt.WaitCursor)) 377 QApplication.setOverrideCursor(QCursor(Qt.WaitCursor))
404 f.close() 404 f.close()
405 except IOError as err: 405 except IOError as err:
406 QApplication.restoreOverrideCursor() 406 QApplication.restoreOverrideCursor()
407 E5MessageBox.critical( 407 E5MessageBox.critical(
408 self.editor, 408 self.editor,
409 self.trUtf8("Export source"), 409 self.tr("Export source"),
410 self.trUtf8( 410 self.tr(
411 """<p>The source could not be exported to""" 411 """<p>The source could not be exported to"""
412 """ <b>{0}</b>.</p><p>Reason: {1}</p>""") 412 """ <b>{0}</b>.</p><p>Reason: {1}</p>""")
413 .format(filename, str(err))) 413 .format(filename, str(err)))
414 finally: 414 finally:
415 QApplication.restoreOverrideCursor() 415 QApplication.restoreOverrideCursor()

eric ide

mercurial