diff options
author | igor_bogomolov <qivb18@gmail.com> | 2011-12-29 17:07:38 +0400 |
---|---|---|
committer | Paulo Alcantara <pcacjr@gmail.com> | 2012-01-04 13:51:03 -0300 |
commit | f186a194177d479e2adc066b469b1fcf2c4a2d48 (patch) | |
tree | aa6eb0bf381d7aeb35f9ff33eca6a4c01ec52dff | |
parent | 23a69668606b14e5bafe943fd02e336d1b2f2cbb (diff) |
Fix bug in richtext/syntaxhighlighter/syntaxhighlighter example
Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
Reviewed-by: Paulo Alcantara <pcacjr@gmail.com>
-rwxr-xr-x | examples/richtext/syntaxhighlighter/syntaxhighlighter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/richtext/syntaxhighlighter/syntaxhighlighter.py b/examples/richtext/syntaxhighlighter/syntaxhighlighter.py index c0b36d2..3a6a7ba 100755 --- a/examples/richtext/syntaxhighlighter/syntaxhighlighter.py +++ b/examples/richtext/syntaxhighlighter/syntaxhighlighter.py @@ -34,7 +34,7 @@ class MainWindow(QtGui.QMainWindow): if fileName!="": inFile = QtCore.QFile(fileName) if inFile.open(QtCore.QFile.ReadOnly | QtCore.QFile.Text): - self.editor.setPlainText(inFile.readAll()) + self.editor.setPlainText(unicode(inFile.readAll())) def setupEditor(self): variableFormat = QtGui.QTextCharFormat() |