[Tutor] (no subject)

Kent Johnson kent37 at tds.net
Sat Nov 1 17:02:59 CET 2008

On Sat, Nov 1, 2008 at 7:17 AM, <otu at iptech-ghana.com> wrote:

> I am struggling with how to enable executable files. I copied the ff
> program on idlle non-interactice and run it.
> the_world_is_flat =1
> if the_world_is_flat:
>        print"Be careful not to fall off"
> The result came out on the interactive window. I saved this as
> "example.py" on the desktop. The python icon appears on the the desktop
> alright.  When I attempt to run it by double clicking the icon, only a
> black DOS window flashes.

The problem is that the DOS window closes when the program exits. Try adding
the line
raw_input("Press return to exit ")
to the end of your program.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20081101/c1202d2b/attachment.htm>

More information about the Tutor mailing list