1
I installed Python 3.6.1 windows 64-bit. But my edit with idle is missing when I use the right click. Can somebody help? I already reinstalled a few times, but the problem still there. =(
1
I installed Python 3.6.1 windows 64-bit. But my edit with idle is missing when I use the right click. Can somebody help? I already reinstalled a few times, but the problem still there. =(
0
I don't know where your context menu items went but you can fix them by following the steps here “Edit with IDLE” option missing from context menu Only do that if you're comfortable messing around with the registry though.
I do not have a Windows computer to try this on, but your other option is to re-install Python and look for an option to install the context menu/shell extensions. It's probably in there, just off by default.
0
The problem most likely stems from overwriting the Python.File
filetyp with a user choice on how to open a file. I could fix it on my system using the registry editor of Windows (Win+R, then enter regedit
and press enter) as follows:
.py
and .pyw
in the registry
for example there is most likely an entry at
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.py\UserChoice
for .py
files:
[HKEY_CLASSES_ROOT\Python.File]
@="Python File"
[HKEY_CLASSES_ROOT\Python.File\DefaultIcon]
@="\"C:\\Windows\\py.exe\",1"
[HKEY_CLASSES_ROOT\Python.File\Shell]
[HKEY_CLASSES_ROOT\Python.File\Shell\editwithidle]
"MUIVerb"="Edit with IDLE"
[HKEY_CLASSES_ROOT\Python.File\Shell\editwithidle\command]
@="\"C:\\python3\\pythonw.exe\" -m idlelib \"%L\" %*"
[HKEY_CLASSES_ROOT\Python.File\Shell\open]
[HKEY_CLASSES_ROOT\Python.File\Shell\open\command]
@="\"C:\\Windows\\py.exe\" \"%L\" %*"
and for .pyw
files:
[HKEY_CLASSES_ROOT\Python.NoConFile\DefaultIcon]
@="\"C:\\Windows\\py.exe\",1"
[HKEY_CLASSES_ROOT\Python.NoConFile\Shell]
[HKEY_CLASSES_ROOT\Python.NoConFile\Shell\editwithidle]
"MUIVerb"="Edit with IDLE"
[HKEY_CLASSES_ROOT\Python.NoConFile\Shell\editwithidle\command]
@="\"C:\\python3\\pythonw.exe\" -m idlelib \"%L\" %*"
[HKEY_CLASSES_ROOT\Python.NoConFile\Shell\open]
[HKEY_CLASSES_ROOT\Python.NoConFile\Shell\open\command]
@="\"C:\\Windows\\pyw.exe\" \"%L\" %*"
Then you should get a working option "Edit with IDLE" whenever you right-click on .py
or a .pyw
file in the file explorer. Double-clicking or opening the file involves the python launcher and directly starts the program.
0
You can open the file in IDLE with just "open" of right mouse click or double clicking on the file. The idea is here, https://www.webucator.com/how-to/how-make-idle-the-default-editor-for-python-files-on-windows.cfm
Now you can open .py files in IDLE simply by double-clicking on them.
-1
If you tried the above steps and it did not work try this (Thanks Eryk) : https://bugs.python.org/issue29014
I guess SystemFileAssociations in local machine keys has something to do with it. Copied from his answer :
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.py]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.py\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.py\shell\editwithidle]
"MUIVerb"="&Edit with IDLE"
"Subcommands"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.py\shell\editwithidle\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.py\shell\editwithidle\shell\edit35]
"MUIVerb"="Edit with IDLE 3.5 (64-bit)"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.py\shell\editwithidle\shell\edit35\command]
@="\"C:\\Program Files\\Python35\\pythonw.exe\" -m idlelib \"%1\" %*"
please describe the required steps to the solutions and explain what it does – Albin – 2019-07-13T21:24:54.583
1It would be helpful to include the essential parts of the linked page so your answer can be useful even when the other page goes down. – I say Reinstate Monica – 2019-02-07T01:13:15.030