[IPython-dev] Status of IPython+GUI+Threads+PyOS_InputHook

Ville M. Vainio vivainio at gmail.com
Sun Feb 8 07:05:41 EST 2009

On Sun, Feb 8, 2009 at 12:22 PM, Gael Varoquaux
<gael.varoquaux at normalesup.org> wrote:

> Finally, the trickiest part was running subprocesses. The reason being
> that I needed both synchronous prints, and key-event processing. The

In qt, dealing with processes is luckily very simple; you can just use QProcess.


It allows you to just react to the following signals:

void readyReadStandardError ()
void readyReadStandardOutput ()

"QProcess allows you to treat a process as a sequential I/O device.
You can write to and read from the process just as you would access a
network connection using QTcpSocket. You can then write to the
process's standard input by calling write(), and read the standard
output by calling read(), readLine(), and getChar()."

Ville M. Vainio

More information about the IPython-dev mailing list