Right-click the Python file and find the IDLE option. solution:
This article describes how to right-click the Python file and find the IDLE option. This article uses the Registry to solve this problem. For more information, see
It is often encountered that double-click the. py file to run, or right-click the file without an IDLE edit item, which is common in WIN7.
Double-click the *. py file to run it. solution:
Right click-> open mode-> select default program-> View, find and select python.exe
Right-click there is no IDLE item solution:
1. If the PYTHON environment is not built soon, and there are not many library files in the PYTHONPATH and Lib/site-packages directories, you can reinstall
2. Modify the registry,
I. Use the regedit command to modify the Registry
The Code is as follows:
[HKEY_CLASSES_ROOT \ Python. File \ shell \ EditwithIDLE]
[HKEY_CLASSES_ROOT \ Python. File \ shell \ EditwithIDLE \ command]
Ii. Modify the registry using a batch file
The Code is as follows:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT \ Python. File \ shell \ EditwithIDLE]
@ = "& Edit with IDLE"
[HKEY_CLASSES_ROOT \ Python. File \ shell \ EditwithIDLE \ command]
@ = "\" C :\\ Python27 \ pythonw.exe \ "\" C :\\ Python27 \ Lib \ idlelib \ idle. pyw \ "-e \" % 1 \""
Save the preceding file to python. reg. Double-click the file to modify the registry and restart the file.
NOTE: replace it with your own PYTHON installation directory.