[PyQt] stdin processing

Simon Edwards simon at simonzone.com
Thu Nov 8 11:57:55 GMT 2007


Tom Dossis wrote:
> 
> On 07/11/2007, at 2:08 AM, Vladimir Pouzanov wrote:
> 
>> Is there any way to read stdin line by line without blocking? My 
>> application
>> receives data over stdin (one command per line) and should react 
>> immediately.


> I get the same problem in the following doctest.
> Also I don't see the bytesWritten signal either.

> Create a pair of QFile objects to read/write from/to a pipe:

If you google on Qt and pipes then you should be able to find something. 
I'm fairly sure that it is a (known) bug in Qt.

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