<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 24 September 2013 21:38, John Yeung <span dir="ltr"><<a href="mailto:gallium.arsenide@gmail.com" target="_blank">gallium.arsenide@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, Sep 24, 2013 at 5:28 AM, JPM <<a href="mailto:jpmelian@gmail.com">jpmelian@gmail.com</a>> wrote:<br>

> I mean the console window appear and disappear 0.1 second after and<br>
> I can not see any output.<br>
><br>
> I think the console window should remain open.<br>
><br>
> The python program only has one print line ( print "Hello world" ).<br>
<br>
</div>I don't have time at the moment to test things out with Geany (it's<br>
not my usual editor), but I do have a suggestion:<br>
<br>
One thing to try, to keep a Python window open that is not staying<br>
open by other means, is to add an input statement at the end of your<br>
program.  If you're using Python 2, it would be a raw_input()<br>
statement; if using Python 3, just input().<br></blockquote><div><br></div><div>The python command is actually run by a .bat script which has a pause after the python command, so you shouldn't need anything in the program if the python command runs.  It sounds more like as Johannes said, the command is probably python.exe or some other error is preventing it finding python, so the bat file is exiting immediately without doing the pause.</div>
<div><br></div><div>Cheers</div><div>Lex</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
John<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.geany.org">Users@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/users" target="_blank">https://lists.geany.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div></div>