[Python-checkins] CVS: python/dist/src/PCbuild python20.wse,1.92,1.93

Tim Peters tim_one@users.sourceforge.net
Tue, 09 Oct 2001 15:22:39 -0700


Update of /cvsroot/python/python/dist/src/PCbuild
In directory usw-pr-cvs1:/tmp/cvs-serv26042/python/PCbuild

Modified Files:
	python20.wse 
Log Message:
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.


Index: python20.wse
===================================================================
RCS file: /cvsroot/python/python/dist/src/PCbuild/python20.wse,v
retrieving revision 1.92
retrieving revision 1.93
diff -C2 -d -r1.92 -r1.93
*** python20.wse	2001/09/28 21:53:42	1.92
--- python20.wse	2001/10/09 22:22:36	1.93
***************
*** 2506,2509 ****
--- 2506,2551 ----
  item: End Block
  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
  end