[PyKDE] Little bug in QTextStream
Simon Edwards
simon at simonzone.com
Mon Oct 16 07:24:53 BST 2006
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()
main()
---------------------------
Output is "This is my number 1.", while I had expected "This is my number
80.".
cheers,
--
Simon Edwards | KDE-NL, Guidance tools, Guarddog Firewall
simon at simonzone.com | http://www.simonzone.com/software/
Nijmegen, The Netherlands | "ZooTV? You made the right choice."
More information about the PyQt
mailing list