Here's a reg file to add the command to edit with IDLE for Python.File
(.py) and Python.NoConFile
(.pyw) file types. It's for Python 2.7, installed in C:\Python27
, so substitute the paths to pythonw.exe
and idle.pyw
that are relevant to your installation. Save it to a .reg file. Then right-click and choose Merge
.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Python.File\shell\Edit with IDLE\command]
@="\"C:\\Python27\\pythonw.exe\" \"C:\\Python27\\Lib\\idlelib\\idle.pyw\" -e \"%1\""
[HKEY_CLASSES_ROOT\Python.NoConFile\shell\Edit with IDLE\command]
@="\"C:\\Python27\\pythonw.exe\" \"C:\\Python27\\Lib\\idlelib\\idle.pyw\" -e \"%1\""
You could try to uninstall Python using Revo Uninstaller Freeware, clean up the registry via CCleaner free, then reinstall Python.
– harrymc – 2014-12-04T07:28:54.500I though this is because I installed two Python in my computer, then I remove one. Maybe I should try keyword like "How to insert shortcut into right-click menu". Anyway thanks for your help. – None – 2011-10-06T03:35:53.697
That probably is the reason it went missing, but your question is how to fix it – Michael Mrozek – 2011-10-06T04:23:01.237