Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0af6703

Browse files
committed
If all of Python, IDLE and Tcl/Tk are being installed, and the user has
not disabled file-extension registration, arrange for .py and .pyw files to have an "Edit with IDLE" context (right-click) menu entry, selecting which executes IDLE w/ the -e switch followed by the selected file's path.
1 parent e13cc92 commit 0af6703

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

PCbuild/python20.wse

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2505,6 +2505,48 @@ item: Edit Registry
25052505
end
25062506
item: End Block
25072507
end
2508+
item: Remark
2509+
end
2510+
item: Remark
2511+
Text=If we're installing IDLE, also set an Edit context menu action to use IDLE, for .py and .pyw files.
2512+
end
2513+
item: If/While Statement
2514+
Variable=COMPONENTS
2515+
Value=B
2516+
Flags=00000010
2517+
end
2518+
item: If/While Statement
2519+
Variable=USE_HKCR
2520+
Value=1
2521+
end
2522+
item: Edit Registry
2523+
Total Keys=1
2524+
Key=Python.NoConFile\shell\Edit with IDLE\command
2525+
New Value=%MAINDIR%\pythonw.exe %MAINDIR%\Tools\idle\idle.pyw -e "%%1"
2526+
end
2527+
item: Edit Registry
2528+
Total Keys=1
2529+
Key=Python.File\shell\Edit with IDLE\command
2530+
New Value=%MAINDIR%\pythonw.exe %MAINDIR%\Tools\idle\idle.pyw -e "%%1"
2531+
end
2532+
item: Else Statement
2533+
end
2534+
item: Edit Registry
2535+
Total Keys=1
2536+
Key=Software\CLASSES\Python.NoConFile\shell\Edit with IDLE\command
2537+
New Value=%MAINDIR%\pythonw.exe %MAINDIR%\Tools\idle\idle.pyw -e "%%1"
2538+
Root=1
2539+
end
2540+
item: Edit Registry
2541+
Total Keys=1
2542+
Key=Software\CLASSES\Python.File\shell\Edit with IDLE\command
2543+
New Value=%MAINDIR%\pythonw.exe %MAINDIR%\Tools\idle\idle.pyw -e "%%1"
2544+
Root=1
2545+
end
2546+
item: End Block
2547+
end
2548+
item: End Block
2549+
end
25082550
item: End Block
25092551
end
25102552
item: Remark

0 commit comments

Comments
 (0)