How can I open Python files in IDLE from Windows?
At least for Python 3.1 (it shouldn't be any different for 2.7), IDLE is located in C:\Python31\Lib\idlelib\idle.bat
.
So to make it open Python scripts, right-click a script, go to Open with → Choose default program, click Browse, browse to C:\Python27\Lib\idlelib
, and select idle.bat
(the extension might not show depending on your Windows settings). Remember to check the Always use selected program to open this kind of file button if it isn't checked already.
Windows 7 Pro 64bit after installing python-3.5.1-amd64.exe
had the same issue no edit context after install.
To correct: Right click .py file, open with Choose default program ... then assigned to: c:\users\myusername\AppData\Local\Programs\Python\Python35\pythonw.exe
and selected "Always use the selected program to open this kind of file" & the .py files changed to the Python IDE icon & the edit context menu started showing up.