On Sat, Nov 1, 2008 at 7:17 AM,  <span dir="ltr">&lt;<a href="mailto:otu@iptech-ghana.com">otu@iptech-ghana.com</a>&gt;</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>
 &nbsp; &nbsp; &nbsp; &nbsp;print&quot;Be careful not to fall off&quot;<br>
<br>
The result came out on the interactive window. I saved this as<br>
&quot;example.py&quot; on the desktop. The python icon appears on the the desktop<br>
alright. &nbsp;When I attempt to run it by double clicking the icon, only a<br>
black DOS window flashes.</blockquote><div>&nbsp;<br>The problem is that the DOS window closes when the program exits. Try adding the line<br>raw_input(&quot;Press return to exit &quot;)<br>to the end of your program.<br><br>
Kent<br></div></div>