Actually, it probably does something and then closes the window immediately -- which means you can't see it!
Try this:
print "Hello, World"
raw_input("Press <Enter> to exit.")
If you double-click this, you should get output in a command prompt window.
Jeff
jrcagle
Practically a Master Poster
608 posts since Jul 2006
Reputation Points: 92
Solved Threads: 156
Some editors like DrPython, UliPad, PyScripter, IDLE have internal output window that will stay open without the use of console wait line like raw_input("Press to exit.")
bumsfeld
Nearly a Posting Virtuoso
1,445 posts since Jul 2005
Reputation Points: 404
Solved Threads: 184
Two things:
(1) I can double-click on your program and get a nice little Hello, World window, along with the command-prompt window. Do you get something else?
(2) If you manually rename the file from "myprog.py" to "myprog.pyw", the command-prompt window will not come up.
Jeff
jrcagle
Practically a Master Poster
608 posts since Jul 2006
Reputation Points: 92
Solved Threads: 156
OK, wait. In your source code directory, you have
myprog.pyw
myprog.pyc
Yes?
What happens if you double-click "myprog.pyw"?
jrcagle
Practically a Master Poster
608 posts since Jul 2006
Reputation Points: 92
Solved Threads: 156