QScintilla/Exporters/ExporterPDF.py

changeset 537
72b32daeb8d6
parent 535
4b00d7336e19
child 791
9ec2ac20e54e
equal deleted inserted replaced
536:6d8d39753c82 537:72b32daeb8d6
12 12
13 13
14 from PyQt4.QtCore import * 14 from PyQt4.QtCore import *
15 from PyQt4.QtGui import * 15 from PyQt4.QtGui import *
16 from PyQt4.Qsci import QsciScintilla 16 from PyQt4.Qsci import QsciScintilla
17
18 from E5Gui import E5MessageBox
17 19
18 from .ExporterBase import ExporterBase 20 from .ExporterBase import ExporterBase
19 21
20 import Preferences 22 import Preferences
21 23
576 # write required stuff and close the PDF file 578 # write required stuff and close the PDF file
577 self.pr.endPDF() 579 self.pr.endPDF()
578 f.close() 580 f.close()
579 except IOError as err: 581 except IOError as err:
580 QApplication.restoreOverrideCursor() 582 QApplication.restoreOverrideCursor()
581 QMessageBox.critical(self.editor, 583 E5MessageBox.critical(self.editor,
582 self.trUtf8("Export source"), 584 self.trUtf8("Export source"),
583 self.trUtf8( 585 self.trUtf8(
584 """<p>The source could not be exported to <b>{0}</b>.</p>""" 586 """<p>The source could not be exported to <b>{0}</b>.</p>"""
585 """<p>Reason: {1}</p>""")\ 587 """<p>Reason: {1}</p>""")\
586 .format(filename, str(err))) 588 .format(filename, str(err)))

eric ide

mercurial