Ok, so I just installed Python 2.7, but I all ready had python 2.5. I realized that because I installed Python 2.7 last, IDLE automatically opens Python 2.7 IDLE, which I don't want. Is there any way to set the Python 2.5 IDLE to automatically open when I use the right click option on a python source file? Thanks.
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
Unless you need Python 2.7 for some reason, the simplest way to achieve this in Windows is to uninstall Python and reinstall Python 2.5 again.
You can easily create or edit the right-click properties for a file.
To edit the right-click menu for a particular file extension:
Run
assoc .py
from the command line and note the name of the association:Run
regedit.exe
.HKEY_CLASSES_ROOT\Python.File\shell
.shell
calledEdit with IDLE
(or however you want it to show up in the menu).Edit with Idle
calledcommand
.Edit the default value to run the command you want. Use
"%1"
to insert the name of the right-clicked file. Something like:Alternatively, just save the following as
idle.reg
and double-click it to insert this value in the registry.