293 self.tr( |
293 self.tr( |
294 """<p>The source could not be exported to""" |
294 """<p>The source could not be exported to""" |
295 """ <b>{0}</b>.</p><p>Reason: {1}</p>""" |
295 """ <b>{0}</b>.</p><p>Reason: {1}</p>""" |
296 ).format(filename, str(err)), |
296 ).format(filename, str(err)), |
297 ) |
297 ) |
|
298 |
|
299 |
|
300 def createExporter(editor, parent=None): |
|
301 """ |
|
302 Function to instantiate an exporter object. |
|
303 |
|
304 @param editor reference to the editor object |
|
305 @type QScintilla.Editor.Editor |
|
306 @param parent parent object of the exporter (defaults to None) |
|
307 @type QObject (optional) |
|
308 @return exporter object |
|
309 @rtype ExporterTEX |
|
310 """ |
|
311 return ExporterTEX(editor, parent=parent) |