QScintilla/Exporters/ExporterRTF.py

changeset 3190
a9a94491c4fd
parent 3160
209a07d7e401
child 3484
645c12de6b0c
equal deleted inserted replaced
3189:9a21c547de5f 3190:a9a94491c4fd
112 112
113 def exportSource(self): 113 def exportSource(self):
114 """ 114 """
115 Public method performing the export. 115 Public method performing the export.
116 """ 116 """
117 filename = self._getFileName(self.trUtf8("RTF Files (*.rtf)")) 117 filename = self._getFileName(self.tr("RTF Files (*.rtf)"))
118 if not filename: 118 if not filename:
119 return 119 return
120 120
121 try: 121 try:
122 QApplication.setOverrideCursor(QCursor(Qt.WaitCursor)) 122 QApplication.setOverrideCursor(QCursor(Qt.WaitCursor))
346 f.close() 346 f.close()
347 except IOError as err: 347 except IOError as err:
348 QApplication.restoreOverrideCursor() 348 QApplication.restoreOverrideCursor()
349 E5MessageBox.critical( 349 E5MessageBox.critical(
350 self.editor, 350 self.editor,
351 self.trUtf8("Export source"), 351 self.tr("Export source"),
352 self.trUtf8( 352 self.tr(
353 """<p>The source could not be exported to""" 353 """<p>The source could not be exported to"""
354 """ <b>{0}</b>.</p><p>Reason: {1}</p>""") 354 """ <b>{0}</b>.</p><p>Reason: {1}</p>""")
355 .format(filename, str(err))) 355 .format(filename, str(err)))
356 finally: 356 finally:
357 QApplication.restoreOverrideCursor() 357 QApplication.restoreOverrideCursor()

eric ide

mercurial