On Sat, Nov 1, 2008 at 7:17 AM, <span dir="ltr"><<a href="mailto:otu@iptech-ghana.com">otu@iptech-ghana.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I am struggling with how to enable executable files. I copied the ff<br>
program on idlle non-interactice and run it.<br>
<br>
the_world_is_flat =1<br>
if the_world_is_flat:<br>
print"Be careful not to fall off"<br>
<br>
The result came out on the interactive window. I saved this as<br>
"example.py" on the desktop. The python icon appears on the the desktop<br>
alright. When I attempt to run it by double clicking the icon, only a<br>
black DOS window flashes.</blockquote><div> <br>The problem is that the DOS window closes when the program exits. Try adding the line<br>raw_input("Press return to exit ")<br>to the end of your program.<br><br>
Kent<br></div></div>