On Mon, 5 Mar 2001, Eduardo Ferro wrote:

> Hi!
> 
> Anyone have a example of how can i log the stdout of a system call
> throught a scrolled window???
> I suposes that it a very normal to use python+gtk for this task, but I
> can`t find a good example of it.
> I actually use a timer to perodically read from a pipe, but this
> solution don`t seems very good.
> 
> Anyone know some program that do this using python+gtk to check the
> code???

So you want to display the text read from a pipe to a text window?

If so, then you want to use the input_add() function, which adds a
callback that will be called when there is info to be read/written
on the fd (depends on the flags passed to input_add).  I don't have any
example code for this at the moment though.

James.

-- 
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/



_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to