Place a try .. except surrounding the body of your program, and finally call the input() function.<br><br><div class="gmail_quote">On Thu, May 13, 2010 at 11:00 PM, a <span dir="ltr"><<a href="mailto:oxfordenergyservices@googlemail.com">oxfordenergyservices@googlemail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I'm coding on an old windows laptop<br>
<br>
i write the code and double click the icon.  it runs the program and<br>
writes results to a window.<br>
<br>
when the code finishes, the window closes, i do a time.sleep(10) to<br>
see what has happened.<br>
<br>
unfortunately when there is an error it just closes the window.<br>
anyway of seeing the error messages?<br>
<br>
thanks<br>
<br>
a<br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Matteo Landi<br><a href="http://www.matteolandi.net/">http://www.matteolandi.net/</a><br>