OK, I am very new in programming, and I installed python2.5.1 and pygame, and I wrote the hello world programme etc. and I ran it in the python shell. But the problem is, I can't run any python document outside the shell. I tried an example in pygame, and the examples in python, but the same happens. A brief shell opens for a few milliseconds, the closes. Why does this happen and can I correct it?
magneto
0
Newbie Poster
Recommended Answers
Jump to PostFor others who might run into this problem, a simple solution would be to append the line
raw_input("Press ENTER to exit")
at the end of your code.
Jump to PostAnother way is to use an IDE based editor like DrPython or IDLE that has its own output window.
All 5 Replies
magneto
0
Newbie Poster
scru
909
Posting Virtuoso
Featured Poster
Ene Uran
638
Posting Virtuoso
scru
909
Posting Virtuoso
Featured Poster
laseredd
9
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.