5

PyGTK: Send output from a file descriptor to a textview?

view full story
linux-howto

http://www.linuxquestions.org – Within PyGTK I'm using gobject.spawn_async to launch a bash script. I would like the output of that bash script to be displayed within my application. I have a textview set up to receive the text ... but I don't know how to do it. Here are the commands that launch the program: Code: def run_command(command):         global keep_pulsing         keep_pulsing=True         (cpid, cstdin, cstdout, cstderr) = gobject.spawn_async(command,flags=gobject.SPAWN_DO_NOT_REAP_CHILD|gobject.SPAWN_STDE (HowTos)