--- a/QScintilla/QsciScintillaCompat.py Sun Mar 24 13:52:12 2013 +0100 +++ b/QScintilla/QsciScintillaCompat.py Mon Mar 25 03:11:06 2013 +0100 @@ -7,6 +7,8 @@ Module implementing a compatability interface class to QsciScintilla. """ +from __future__ import unicode_literals # __IGNORE_WARNING__ + from PyQt4.QtCore import pyqtSignal, Qt from PyQt4.QtGui import QPalette, QColor, QApplication from PyQt4.Qsci import QsciScintilla, \ @@ -58,7 +60,7 @@ @param name name of this instance (string) @param flags window flags """ - super().__init__(parent) + super(QsciScintillaCompat, self).__init__(parent) self.zoom = 0 @@ -74,7 +76,7 @@ @param lex the lexer to be set or None to reset it. """ - super().setLexer(lex) + super(QsciScintillaCompat, self).setLexer(lex) if lex is None: self.clearStyles() @@ -316,7 +318,7 @@ @param zoom zoom factor increment (integer) """ - super().zoomIn(zoom) + super(QsciScintillaCompat, self).zoomIn(zoom) def zoomOut(self, zoom=1): """ @@ -324,7 +326,7 @@ @param zoom zoom factor decrement (integer) """ - super().zoomOut(zoom) + super(QsciScintillaCompat, self).zoomOut(zoom) def zoomTo(self, zoom): """ @@ -333,7 +335,7 @@ @param zoom zoom factor (integer) """ self.zoom = zoom - super().zoomTo(zoom) + super(QsciScintillaCompat, self).zoomTo(zoom) self.zoomValueChanged.emit(self.zoom) def getZoom(self): @@ -888,9 +890,9 @@ @param margin margin number (integer) """ if style < self.ArrowFoldStyle: - super().setFolding(style, margin) + super(QsciScintillaCompat, self).setFolding(style, margin) else: - super().setFolding( + super(QsciScintillaCompat, self).setFolding( QsciScintilla.PlainFoldStyle, margin) if style == self.ArrowFoldStyle: @@ -994,7 +996,7 @@ if self.isListActive(): self.cancelList() - super().focusOutEvent(event) + super(QsciScintillaCompat, self).focusOutEvent(event) def event(self, evt): """