409 |
409 |
410 f = QFile(fn) |
410 f = QFile(fn) |
411 if f.open(QIODevice.ReadOnly): |
411 if f.open(QIODevice.ReadOnly): |
412 reader = HighlightingStylesReader(f, lexers) |
412 reader = HighlightingStylesReader(f, lexers) |
413 reader.readXML() |
413 reader.readXML() |
|
414 f.close() |
414 else: |
415 else: |
415 E5MessageBox.critical(self, |
416 E5MessageBox.critical(self, |
416 self.trUtf8("Import Highlighting Styles"), |
417 self.trUtf8("Import Highlighting Styles"), |
417 self.trUtf8("""<p>The highlighting styles could not be read""" |
418 self.trUtf8("""<p>The highlighting styles could not be read""" |
418 """ from file <b>{0}</b>.</p><p>Reason: {1}</p>""")\ |
419 """ from file <b>{0}</b>.</p><p>Reason: {1}</p>""")\ |