mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
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.
This commit is contained in:
parent
e13cc92e6c
commit
0af6703a71
1 changed files with 42 additions and 0 deletions
|
|
@ -2505,6 +2505,48 @@ item: Edit Registry
|
||||||
end
|
end
|
||||||
item: End Block
|
item: End Block
|
||||||
end
|
end
|
||||||
|
item: Remark
|
||||||
|
end
|
||||||
|
item: Remark
|
||||||
|
Text=If we're installing IDLE, also set an Edit context menu action to use IDLE, for .py and .pyw files.
|
||||||
|
end
|
||||||
|
item: If/While Statement
|
||||||
|
Variable=COMPONENTS
|
||||||
|
Value=B
|
||||||
|
Flags=00000010
|
||||||
|
end
|
||||||
|
item: If/While Statement
|
||||||
|
Variable=USE_HKCR
|
||||||
|
Value=1
|
||||||
|
end
|
||||||
|
item: Edit Registry
|
||||||
|
Total Keys=1
|
||||||
|
Key=Python.NoConFile\shell\Edit with IDLE\command
|
||||||
|
New Value=%MAINDIR%\pythonw.exe %MAINDIR%\Tools\idle\idle.pyw -e "%%1"
|
||||||
|
end
|
||||||
|
item: Edit Registry
|
||||||
|
Total Keys=1
|
||||||
|
Key=Python.File\shell\Edit with IDLE\command
|
||||||
|
New Value=%MAINDIR%\pythonw.exe %MAINDIR%\Tools\idle\idle.pyw -e "%%1"
|
||||||
|
end
|
||||||
|
item: Else Statement
|
||||||
|
end
|
||||||
|
item: Edit Registry
|
||||||
|
Total Keys=1
|
||||||
|
Key=Software\CLASSES\Python.NoConFile\shell\Edit with IDLE\command
|
||||||
|
New Value=%MAINDIR%\pythonw.exe %MAINDIR%\Tools\idle\idle.pyw -e "%%1"
|
||||||
|
Root=1
|
||||||
|
end
|
||||||
|
item: Edit Registry
|
||||||
|
Total Keys=1
|
||||||
|
Key=Software\CLASSES\Python.File\shell\Edit with IDLE\command
|
||||||
|
New Value=%MAINDIR%\pythonw.exe %MAINDIR%\Tools\idle\idle.pyw -e "%%1"
|
||||||
|
Root=1
|
||||||
|
end
|
||||||
|
item: End Block
|
||||||
|
end
|
||||||
|
item: End Block
|
||||||
|
end
|
||||||
item: End Block
|
item: End Block
|
||||||
end
|
end
|
||||||
item: Remark
|
item: Remark
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue