Under Windows XP I have a context menu entry "edit with IDLE" for Python source files. I tried to make this work under Windows 7 (32 bit) as well by setting the corresponding registry entries under
HKEY_LOCAL_MACHINE\SOFTWARE\.py\shellex\ContextMenuHandlers\
However without success - the context menu entry does not appear. How do I set a context menu entry for a specific file type in Windows 7?
You can also open IDLE directly from your Python script file. Right click the file, then choose "Edit with IDLE". Rather than going through the "Run..." menu, learn to use F5 (on some systems, Fn + F5) to run your script. It's much quicker.
IMPORTANT: To open your Python file again, locate the file in the folder, click once on the file name it to highlight it, then right-click on the mouse to see the options shown in the screen below, and select Edit with IDLE to open the editor window.
I spent some time trying to figure this out, and finally got it. I'm running Windows 7, but it should be the same for Windows Vista, Windows XP, etc.
regedit
and hit ENTER).py
.py
key you come across, delete it.Do this until it gives you the message: finished searching the registry. Repeat this process but changing the search for the following querys:
.pyw
python
python.exe
pythonw.exe
Delete them all
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With