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
-Original Message- From: [EMAIL PROTECTED] on behalf of Vladimir Pouzanov Sent: Tue 11/6/2007 10:08 AM To: pyqt@riverbankcomputing.com Subject: [PyQt] stdin processing Is there any way to read stdin line by line without blocking? My application receives data over stdin (one command per line) and

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

[PyQt] stdin processing

2007-11-06 Thread Vladimir Pouzanov
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.open(0, QtCore.QIODevice.ReadOnly) self.connect(self.stdi