Place a try .. except surrounding the body of your program, and finally call the input() function.
On Thu, May 13, 2010 at 11:00 PM, a <oxfordenergyservi...@googlemail.com>wrote: > I'm coding on an old windows laptop > > i write the code and double click the icon. it runs the program and > writes results to a window. > > when the code finishes, the window closes, i do a time.sleep(10) to > see what has happened. > > unfortunately when there is an error it just closes the window. > anyway of seeing the error messages? > > thanks > > a > -- > http://mail.python.org/mailman/listinfo/python-list > -- Matteo Landi http://www.matteolandi.net/
-- http://mail.python.org/mailman/listinfo/python-list