QScintilla/Exporters/ExporterRTF.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3190
a9a94491c4fd
child 3656
441956d8fce5
equal deleted inserted replaced
3456:96232974dcdb 3484:645c12de6b0c
114 114
115 def exportSource(self): 115 def exportSource(self):
116 """ 116 """
117 Public method performing the export. 117 Public method performing the export.
118 """ 118 """
119 filename = self._getFileName(self.trUtf8("RTF Files (*.rtf)")) 119 filename = self._getFileName(self.tr("RTF Files (*.rtf)"))
120 if not filename: 120 if not filename:
121 return 121 return
122 122
123 try: 123 try:
124 QApplication.setOverrideCursor(QCursor(Qt.WaitCursor)) 124 QApplication.setOverrideCursor(QCursor(Qt.WaitCursor))
348 f.close() 348 f.close()
349 except IOError as err: 349 except IOError as err:
350 QApplication.restoreOverrideCursor() 350 QApplication.restoreOverrideCursor()
351 E5MessageBox.critical( 351 E5MessageBox.critical(
352 self.editor, 352 self.editor,
353 self.trUtf8("Export source"), 353 self.tr("Export source"),
354 self.trUtf8( 354 self.tr(
355 """<p>The source could not be exported to""" 355 """<p>The source could not be exported to"""
356 """ <b>{0}</b>.</p><p>Reason: {1}</p>""") 356 """ <b>{0}</b>.</p><p>Reason: {1}</p>""")
357 .format(filename, str(err))) 357 .format(filename, str(err)))
358 finally: 358 finally:
359 QApplication.restoreOverrideCursor() 359 QApplication.restoreOverrideCursor()

eric ide

mercurial