raw_input uses sys.stderr I guess ?<br><br><div class="gmail_quote">On Mon, Feb 15, 2010 at 5:35 PM, Peter Otten <span dir="ltr"><__<a href="mailto:peter__@web.de">peter__@web.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div class="im">Joan Miller wrote:<br>
<br>
>> > Does `raw_input` uses internally `sys.stdout.write`?<br>
<br>
</div><div class="im">> It was to display the output inside a GUI app. overriding<br>
> `sys.stdout`. And as `print` also uses internally `sys.stdout.write`<br>
> then can be used `print` the shell script and get the output too in<br>
> the GUI, cann't it?<br>
<br>
</div>It should be easy to collect data written with print and show it in a gui,<br>
but I can't see how you would integrate raw_input() into a gui app.<br>
<br>
As to shell scripts, you can invoke them via subprocess, or, if the script<br>
needs user interaction, via pexpect.<br>
<font color="#888888"><br>
Peter<br>
</font><div><div></div><div class="h5">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br>