aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorigor_bogomolov <qivb18@gmail.com>2011-12-29 17:07:38 +0400
committerPaulo Alcantara <pcacjr@gmail.com>2012-01-04 13:51:03 -0300
commitf186a194177d479e2adc066b469b1fcf2c4a2d48 (patch)
treeaa6eb0bf381d7aeb35f9ff33eca6a4c01ec52dff
parent23a69668606b14e5bafe943fd02e336d1b2f2cbb (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-xexamples/richtext/syntaxhighlighter/syntaxhighlighter.py2
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()