Here are some notes on how to configure Windows XP (sorry, not Windows Vista) to run a Python application by clicking on the program in Windows explorer and having it run in DOS window that does not exit when the program finishes.
open Windows Explorer (winKey-E)
From the Tools tab, select Folder Options
File types
Scroll down and select py extension
At the bottom, click on Advanced
Click on New
Fill in the fields as follows [1]
Action: Run in Window Application to Use: "C:Python26\python.exe"-i "%1" %*Click on Use DDE
Under DDE:
Application: Python Topic: Systemclick OK
Note
This does not work is Windows Vista. Microsoft has removed the ability to define new actions for file types.
Footnotes
| [1] | The Application specification here is almost the same as what is in the open option, except -i is added |