Another where I replied off-list.  :(

On 12/26/06, Luke Paireepinart <[EMAIL PROTECTED]> wrote:

Python is installed just like any other program.
If you install Counter-Strike 1.5, and then Counter-Strike 1.6 (video
games), the shortcut on your desktop will be changed to refer to
Counter-Strike 1.6.  Changing environment variables wouldn't change this.

When you right-click something and you see shortcuts such as 'unzip with
Win-Rar', 'edit with IDLE', etc.  It is in essence the same as such a
shortcut would be on your desktop, except it's specific to the object you
have selected, whereas a shortcut wouldn't be.

Okay, so when you installed python 2.3, IDLE was installed with it (the
version of IDLE that comes with python2.3 in the WIndows binaries).  When
you installed python 2.4, IDLE (the version that comes with the python 2.4 
WIndows
binaries) was installed into your python 2.4 install path.  Now during
each install, context menu options are added for files with .py, .pyw, etc.
that are called 'edit with IDLE'.  the ones that were added during the
second install ( 2.4) overwrote the context menu options of the python 
2.3install.

Also note that you now have 2 installs of IDLE, in each Python directory.

This can be rectified (assuming you think it's a problem that the 2.4version of 
IDLE is being used)  by following these steps:
open  "My Computer", press  Alt, T, O. (tools -> folder options)
select "File Types" tab.
scroll down to PY
choose ADVANCED
there should be an option that says "Edit with IDLE"
(I don't have python on this computer, can't check.  Should be pretty
obvious waht you want to choose here)
select that option, and click "Edit"
change the 'Application used to perform this action:' field from
c:\Python2.4\whatever
to c:\Python2.3 or wherever you instaleld python 2.3
make sure not to change any of the parameters that IDLE gets passed here,
though.
I.E. don't use 'Browse' to find the python 2.3 version of IDLE because it
may (read: probably will) delete the command line options you have set
there.

HTH,
-Luke

On 12/25/06, linda.s <[EMAIL PROTECTED]> wrote:

> in my computer, there are python 2.3 and 2.4
> Every time I right click a python code and select "edit with IDLE", it
> goes to python2.4; I am very curious why it does not got to python 2.3
> because I set python 23 in my PYTHONPATH in the My Computer -
> Properties - Advanced - Environment Variables.
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to