Re: [PyKDE] Little bug in QTextStream

2006-10-20 Thread Phil Thompson
On Monday 16 October 2006 7:24 am, Simon Edwards wrote: > Hi Phil, > > - > #!/usr/bin/env python > > from PyQt4 import QtCore > > def main(): > > f = QtCore.QFile("Stream_test.txt") > f.open(QtCore.QIODevice.WriteOnly) > > stream = QtCore.QTextStream(f) > num

[PyKDE] Little bug in QTextStream

2006-10-15 Thread Simon Edwards
Hi Phil, - #!/usr/bin/env python from PyQt4 import QtCore def main(): f = QtCore.QFile("Stream_test.txt") f.open(QtCore.QIODevice.WriteOnly) stream = QtCore.QTextStream(f) num = 80 stream << "This is my number " << num << "." f.close() mai