Re: [pygtk] output gtk.TextView

2004-10-22 Thread Marcus Habermehl
Am Dienstag, den 19.10.2004, 08:36 -0400 schrieb Steve McClure: On Mon, 2004-10-18 at 13:05, Marcus Habermehl wrote: 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

Re: [pygtk] output gtk.TextView

2004-10-19 Thread Steve McClure
On Mon, 2004-10-18 at 13:05, Marcus Habermehl wrote: 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?

Re: [pygtk] output gtk.TextView

2004-10-18 Thread Marcus Habermehl
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

[pygtk] output gtk.TextView

2004-10-17 Thread Marcus Habermehl
Hi. I want to execute some shell commands in my python script. The output should be redirected to a gtk.TextView in real-time. How can I do this? My first idea was sys.stdin. But I become each time an error. TypeError: coercing to Unicode: need string or buffer, file found regards Marcus

Re: [pygtk] output gtk.TextView

2004-10-17 Thread 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