[pygtk] output > gtk.TextView

Marcus Habermehl bmh1980de at yahoo.de
Tue Oct 19 01:05:20 WST 2004


Am Sonntag, den 17.10.2004, 16:36 -0500 schrieb Skip Montanaro:
>     Marcus> I want to execute some shell commands in my python script. The
>     Marcus> output should be redirected to a gtk.TextView in real-time. How
>     Marcus> can I do this?
> 
> Use os.popen or one of its cousins, capture the output via reads on the file
> object returned, then stuff it into the TextBuffer associated with your
> TextView widget.

That I've making, now. But the text gets insert when the shell command
is finished.

Is there are not another possibility?

regard

Marcus



More information about the pygtk mailing list