--- a/QScintilla/MiniEditor.py Sun Mar 24 13:52:12 2013 +0100 +++ b/QScintilla/MiniEditor.py Mon Mar 25 03:11:06 2013 +0100 @@ -7,6 +7,8 @@ Module implementing a minimalistic editor for simple editing tasks. """ +from __future__ import unicode_literals # __IGNORE_WARNING__ + import os import re @@ -44,7 +46,7 @@ @param name name of this instance (string) @param flags window flags """ - super().__init__(parent) + super(MiniScintilla, self).__init__(parent) self.mw = parent @@ -74,7 +76,7 @@ self.setCursorFlashTime(QApplication.cursorFlashTime()) - super().focusInEvent(event) + super(MiniScintilla, self).focusInEvent(event) def focusOutEvent(self, event): """ @@ -85,7 +87,7 @@ self.mw.editorActGrp.setEnabled(False) self.setCaretWidth(0) - super().focusOutEvent(event) + super(MiniScintilla, self).focusOutEvent(event) class MiniEditor(E5MainWindow): @@ -105,7 +107,7 @@ @param parent reference to the parent widget (QWidget) @param name object name of the window (string) """ - super().__init__(parent) + super(MiniEditor, self).__init__(parent) if name is not None: self.setObjectName(name) self.setAttribute(Qt.WA_DeleteOnClose)