<br><br><div><span class="gmail_quote">On 12/13/07, <b class="gmail_sendername">Caleb Marcus</b> <<a href="mailto:caleb.marcus@gmail.com">caleb.marcus@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



  
  

<div>
I'm writing something that has to invoke an external program, and every time the external program prints something, update a UI. How would I go about doing this?
</div>

</blockquote></div><br>Use sys.popen or pexpect module.<br>With pexpect you can even use single thread.<br clear="all"><br>-- <br>Vladimir Rusinov<br>GreenMice Solutions: IT-решения на базе Linux<br><a href="http://greenmice.info/">
http://greenmice.info/</a>