Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #4236 > unrolled thread

IDLE lost from Windows menu !

Started byUncle Ben <ben@greenba.com>
First post2011-04-28 09:28 -0700
Last post2011-04-29 03:01 +1000
Articles 9 — 5 participants

Back to article view | Back to comp.lang.python


Contents

  IDLE lost from Windows menu ! Uncle Ben <ben@greenba.com> - 2011-04-28 09:28 -0700
    Re: IDLE lost from Windows menu ! Uncle Ben <ben@greenba.com> - 2011-04-28 12:11 -0700
      Re: IDLE lost from Windows menu ! MRAB <python@mrabarnett.plus.com> - 2011-04-28 20:29 +0100
        Re: IDLE lost from Windows menu ! Uncle Ben <ben@greenba.com> - 2011-04-28 13:21 -0700
      Re: IDLE lost from Windows menu ! Andrew Berg <bahamutzero8825@gmail.com> - 2011-04-28 16:17 -0500
        Re: IDLE lost from Windows menu ! Uncle Ben <ben@greenba.com> - 2011-04-28 18:26 -0700
      Re: IDLE lost from Windows menu ! Uncle Ben <ben@greenba.com> - 2011-04-28 18:21 -0700
    Re: IDLE lost from Windows menu ! Terry Reedy <tjreedy@udel.edu> - 2011-04-28 17:20 -0400
    Re: IDLE lost from Windows menu ! Alec Taylor <alec.taylor6@gmail.com> - 2011-04-29 03:01 +1000

#4236 — IDLE lost from Windows menu !

FromUncle Ben <ben@greenba.com>
Date2011-04-28 09:28 -0700
SubjectIDLE lost from Windows menu !
Message-ID<264d1536-864b-4cd5-9930-b4f5e69e8d46@h38g2000yqn.googlegroups.com>
I have lost the convenient feature that to edit a .py file I could
right-click on the file name and reach the menu item "Edit with IDLE".

The workaround is not hard, but it wouild be nice to get this feature
back.

It happened when I was mungeing around and downloaded Python 2.3.3 in
addition to Python 2.71, and got into trojuble uintil I discovered
that I was involuntarily RUNNING the older version.  So I cleaned it
out, but still I have this aftermath.

Is there a Windows guru out there who can tell be how to add to the
right-click menu clicking on myfile.py?

Uncle Ben

[toc] | [next] | [standalone]


#4251

FromUncle Ben <ben@greenba.com>
Date2011-04-28 12:11 -0700
Message-ID<19fe1f2d-c718-4844-8eac-685d8aeeede3@e21g2000yqe.googlegroups.com>
In reply to#4236
On Apr 28, 12:28 pm, Uncle Ben <b...@greenba.com> wrote:
> I have lost the convenient feature that to edit a .py file I could
> right-click on the file name and reach the menu item "Edit with IDLE".
>
> The workaround is not hard, but it wouild be nice to get this feature
> back.
>
> It happened when I was mungeing around and downloaded Python 2.3.3 in
> addition to Python 2.7.1, and got into trouble until I discovered
> that I was involuntarily RUNNING the older version.  So I cleaned it
> out, but still I have this aftermath.
>
> Is there a Windows guru out there who can tell be how to add to the
> right-click menu clicking on myfile.py?
>
> Uncle Ben

It was suggested to me privately that I search for
HKEY_CLASSES_ROOT\*\shell,
right_click on "shell",
create a new key called "EDIT with IDLE"
and another called "command python.exe %1"

Problem:
  Searching on the HKEY group as above yields no "shell".

Did I not do it right, or is there another way?

(I would think that that command would execute my file, not edit it.
But maybe I will be surprised.)

(I am running Windows 7, 64-bit.)

Uncle Ben

[toc] | [prev] | [next] | [standalone]


#4252

FromMRAB <python@mrabarnett.plus.com>
Date2011-04-28 20:29 +0100
Message-ID<mailman.954.1304018995.9059.python-list@python.org>
In reply to#4251
On 28/04/2011 20:11, Uncle Ben wrote:
> On Apr 28, 12:28 pm, Uncle Ben<b...@greenba.com>  wrote:
>> I have lost the convenient feature that to edit a .py file I could
>> right-click on the file name and reach the menu item "Edit with IDLE".
>>
>> The workaround is not hard, but it wouild be nice to get this feature
>> back.
>>
>> It happened when I was mungeing around and downloaded Python 2.3.3 in
>> addition to Python 2.7.1, and got into trouble until I discovered
>> that I was involuntarily RUNNING the older version.  So I cleaned it
>> out, but still I have this aftermath.
>>
>> Is there a Windows guru out there who can tell be how to add to the
>> right-click menu clicking on myfile.py?
>>
>> Uncle Ben
>
> It was suggested to me privately that I search for
> HKEY_CLASSES_ROOT\*\shell,
> right_click on "shell",
> create a new key called "EDIT with IDLE"
> and another called "command python.exe %1"
>
> Problem:
>    Searching on the HKEY group as above yields no "shell".
>
> Did I not do it right, or is there another way?
>
> (I would think that that command would execute my file, not edit it.
> But maybe I will be surprised.)
>
> (I am running Windows 7, 64-bit.)
>
Probably the simplest solution would be to install the appropriate
version of Python again.

[toc] | [prev] | [next] | [standalone]


#4260

FromUncle Ben <ben@greenba.com>
Date2011-04-28 13:21 -0700
Message-ID<97d61563-2397-4d1c-8167-7c8eb43fc0f3@s16g2000prf.googlegroups.com>
In reply to#4252
On Apr 28, 3:29 pm, MRAB <pyt...@mrabarnett.plus.com> wrote:
> On 28/04/2011 20:11, Uncle Ben wrote:
>
>
>
> > On Apr 28, 12:28 pm, Uncle Ben<b...@greenba.com>  wrote:
> >> I have lost the convenient feature that to edit a .py file I could
> >> right-click on the file name and reach the menu item "Edit with IDLE".
>
> >> The workaround is not hard, but it wouild be nice to get this feature
> >> back.
>
> >> It happened when I was mungeing around and downloaded Python 2.3.3 in
> >> addition to Python 2.7.1, and got into trouble until I discovered
> >> that I was involuntarily RUNNING the older version.  So I cleaned it
> >> out, but still I have this aftermath.
>
> >> Is there a Windows guru out there who can tell be how to add to the
> >> right-click menu clicking on myfile.py?
>
> >> Uncle Ben
>
> > It was suggested to me privately that I search for
> > HKEY_CLASSES_ROOT\*\shell,
> > right_click on "shell",
> > create a new key called "EDIT with IDLE"
> > and another called "command python.exe %1"
>
> > Problem:
> >    Searching on the HKEY group as above yields no "shell".
>
> > Did I not do it right, or is there another way?
>
> > (I would think that that command would execute my file, not edit it.
> > But maybe I will be surprised.)
>
> > (I am running Windows 7, 64-bit.)
>
> Probably the simplest solution would be to install the appropriate
> version of Python again.- Hide quoted text -
>
> - Show quoted text -

Tried that.  No change.  Strange things are happening!

[toc] | [prev] | [next] | [standalone]


#4266

FromAndrew Berg <bahamutzero8825@gmail.com>
Date2011-04-28 16:17 -0500
Message-ID<mailman.962.1304025444.9059.python-list@python.org>
In reply to#4251
On 2011.04.28 02:11 PM, Uncle Ben wrote:
> It was suggested to me privately that I search for
> HKEY_CLASSES_ROOT\*\shell,
> right_click on "shell",
> create a new key called "EDIT with IDLE"
> and another called "command python.exe %1"
The key you're looking for is HKCR\Python.File\shell. Add a subkey
called Edit with IDLE. Create a subkey in there called command. Inside
HKCR\Python.File\shell\Edit with IDLE\command, modify the default value
to "C:\Python32\pythonw.exe" "C:\Python32\Lib\idlelib\idle.pyw" -e "%1"
(changing the paths if necessary). Do the same with
HKCR\Python.NoConFile\shell to get the command for .pyw files.

[toc] | [prev] | [next] | [standalone]


#4282

FromUncle Ben <ben@greenba.com>
Date2011-04-28 18:26 -0700
Message-ID<928de841-3825-4663-8846-74aa9b8b771a@k5g2000yqj.googlegroups.com>
In reply to#4266
On Apr 28, 5:17 pm, Andrew Berg <bahamutzero8...@gmail.com> wrote:
> On 2011.04.28 02:11 PM, Uncle Ben wrote:> It was suggested to me privately that I search for
> > HKEY_CLASSES_ROOT\*\shell,
> > right_click on "shell",
> > create a new key called "EDIT with IDLE"
> > and another called "command python.exe %1"
>
> The key you're looking for is HKCR\Python.File\shell. Add a subkey
> called Edit with IDLE. Create a subkey in there called command. Inside
> HKCR\Python.File\shell\Edit with IDLE\command, modify the default value
> to "C:\Python32\pythonw.exe" "C:\Python32\Lib\idlelib\idle.pyw" -e "%1"
> (changing the paths if necessary). Do the same with
> HKCR\Python.NoConFile\shell to get the command for .pyw files.

Thanks to all for good help.  I finally got what I need by altering
the original advice (A.T.) slightly.

The key to edit was "HKCR/Applications/python.exe/shell",
the item is put into the menu in a sub-key labelled "Edit with IDLE",
and the command sub-sub-key that works for me is "idle.bat %1"

I will keep Andrew Berg's note and use it when I encounter .pyw
files.

Python's the ninth language I've had to learn. And I love it.

Uncle Ben

[toc] | [prev] | [next] | [standalone]


#4281

FromUncle Ben <ben@greenba.com>
Date2011-04-28 18:21 -0700
Message-ID<771f10cb-123d-4018-80da-559361d4d0b1@b9g2000yqd.googlegroups.com>
In reply to#4251
On Apr 28, 3:11 pm, Uncle Ben <b...@greenba.com> wrote:
> On Apr 28, 12:28 pm, Uncle Ben <b...@greenba.com> wrote:
>
> > I have lost the convenient feature that to edit a .py file I could
> > right-click on the file name and reach the menu item "Edit with IDLE".
>
> > The workaround is not hard, but it wouild be nice to get this feature
> > back.
>
> > It happened when I was mungeing around and downloaded Python 2.3.3 in
> > addition to Python 2.7.1, and got into trouble until I discovered
> > that I was involuntarily RUNNING the older version.  So I cleaned it
> > out, but still I have this aftermath.
>
> > Is there a Windows guru out there who can tell be how to add to the
> > right-click menu clicking on myfile.py?
>
> > Uncle Ben
>
> It was suggested to me privately that I search for
> HKEY_CLASSES_ROOT\*\shell,
> right_click on "shell",
> create a new key called "EDIT with IDLE"
> and another called "command python.exe %1"
>
> Problem:
>   Searching on the HKEY group as above yields no "shell".
>
> Did I not do it right, or is there another way?
>
> (I would think that that command would execute my file, not edit it.
> But maybe I will be surprised.)
>
> (I am running Windows 7, 64-bit.)
>
> Uncle Ben

Thanks to all for good help.  I finally got what I need by altering
the original advice (A.W.) slightly.

The key to edit was "HKCR/Applications/python.exe/shell",
the item is put into the menu in a sub-key labelled "Edit with IDLE",
and the command sub-sub-key that works for me is "idle.bat %1"

I will keep Andrew Berg's note and use it when I encounter .pyw files.

Python's the ninth language I've had to learn. And I love it.

Uncle Ben

[toc] | [prev] | [next] | [standalone]


#4269

FromTerry Reedy <tjreedy@udel.edu>
Date2011-04-28 17:20 -0400
Message-ID<mailman.964.1304025632.9059.python-list@python.org>
In reply to#4236
On 4/28/2011 12:28 PM, Uncle Ben wrote:
> I have lost the convenient feature that to edit a .py file I could
> right-click on the file name and reach the menu item "Edit with IDLE".
>
> The workaround is not hard, but it wouild be nice to get this feature
> back.
>
> It happened when I was mungeing around and downloaded Python 2.3.3 in
> addition to Python 2.71, and got into trojuble uintil I discovered
> that I was involuntarily RUNNING the older version.  So I cleaned it
> out, but still I have this aftermath.
>
> Is there a Windows guru out there who can tell be how to add to the
> right-click menu clicking on myfile.py?

In Window98, one could get from Explorer Window to a file-associations 
dialog/window/tool that would let you change/add 'open', 'open with x', 
'run', for a particular file type without using the registry editor, 
which is slightly dangerous. I have forgotten how to find it in xp, and 
no idea in w7. I would look in windows help and or control panel.

-- 
Terry Jan Reedy

[toc] | [prev] | [next] | [standalone]


#4286

FromAlec Taylor <alec.taylor6@gmail.com>
Date2011-04-29 03:01 +1000
Message-ID<mailman.977.1304043400.9059.python-list@python.org>
In reply to#4236
Search for the following key in regedit: HKEY_CLASSES_ROOT\*\shell

Right click on “shell”, choose create new key.

Name it “Edit with IDLE"

Create a new key below that one and call it “command.”

Now double click on the (Default) value that you will find in the
right hand pane, and type in the following: python.exe %1

(or if you don't have it in your PATH, then put in the absolute python
directory, ie: C:\Python27\bin\python.exe)

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web