Re: [PyQt] stdin processing

2007-11-08 Thread Simon Edwards
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 se

Re: [PyQt] stdin processing

2007-11-07 Thread Tom Dossis
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've tried to make such thing: self.stdin = QtCore.QFile(self) self.stdin.o

Re: [PyQt] stdin processing

2007-11-07 Thread Simon Edwards
Hi, 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. Your story sounds a lot like the world of confusion and pain I found myself in when I wanted to read a pipe i

RE: [PyQt] stdin processing

2007-11-06 Thread Michiel De Hoon
I believe that this is because the QFile object as implemented in the Qt library on which PyQT builds does not emit the readyRead signal either. See: http://doc.trolltech.com/4.3/qfile.html As far as I can tell, there is no basic reason why a QFile should not emit a readyRead signal. The analogou

Re: [PyQt] stdin processing

2007-11-06 Thread Andreas Pakulat
On 06.11.07 15:08:49, 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've tried to make such thing: > self.stdin = QtCore.QFile(self) > self.stdin.op