Néstor Amigo Cairo wrote:
> Hi!
> 
> I'm working in a GUI application as a frontend for some commands to
> copy some files into a Compact Flash. My question is: how can I
> execute the command from the GUI and show the output on a TextView
> inside the GUI application, line by line?? (the command is 'badblocks

In short:

launch the command, and feed the output handle into

gobject.io_add_watch()

you will get an event when something interesting (like arrival of new text) 
happens.

In the handler, read the data, and add it to your textview widget.


Albert
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to