[PyKDE] [PyQt] QProcess and reading from input
newellm at blur.com
Fri Dec 15 22:08:15 GMT 2006
On Friday 15 December 2006 13:57, Jacek Jablonski wrote:
> I have some program in C++ that emits the data to stdout. And I have
> some script in Python. I want this script to read the data everytime
> it is available and then move the progress bar. But whole content is
> read when QProcess ends. Here is code:
> so foo() is called only once, because "in the function" shows only once.
> Please help,
I'm not sure about the ggsend command, but you'll only get data when that
process either flushes it's output, or when the buffer becomes full and is
flushed automatically. So if there's relatively little output it will come
all at once, and there is nothing you can do about that without changing the
ggsend program to flush it's output more often.
More information about the PyQt