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
[EMAIL PROTECTED]       | http://www.simonzone.com/software/
Nijmegen, The Netherlands | "ZooTV? You made the right choice."

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to