Before reading my response below, let me note how things look on my XP laptop--for what it's worth.  I happen to be using 2.4 there.   When I look at a folder of py programs there, the icon is something like a lizard for each program. If I right-click on a py file, a list appears, and I'm asked if I want to Edit with IDLE, ..., ..., Edit with. All works fine.

In Win 7, each file has something like a small window icon next to it. When I right-click, the items at the top are Open, Open with jEdit (I just started using it yesterday), ... Open with, ..., blah, blah. Open with has four choices: idle.pyw, Notepad, python.exe, and Choose default program.

... continuing to what I observed at your request.
If you can open a command prompt and go to C:\Temp (or some other arbitrary folder), type "python", and get the Python prompt, then your search path is working properly. 
Well, that works.

In any case, click "Change program...", then "Browse" to the current proper locations, and click OK.  This should (finally) fix your problem...
Change Program?  Do you mean on the installed program list?

I meant exactly what I typed.  On the very screen we were just discussing - with the list of extensions (.py, .pyc, etc.) there is a button labeled "Change program..." 
Yes, in the upper right corner.

Highlight the line for ".py".  Click the button (yes, the one that says "Change program...").  You'll
Yes, did that.
get another dialog box, and in that one there will be a button labeled "Browse".  Click it.  This will open up an "Open with..." dialog box, which will default to the Program Files folder.  That's
Yes, did that.
probably NOT where your Python install is located - by default, Python 2.5 would be installed in C:\Python25 - but it's up to you to figure out where you installed it.  Once you've found it,
For py, I found \Python25\Lib\idlelib\idle.pyw.

I then opened just_fun.py program with idle.pyw, and got the usual error message.
highlight python.exe and click the "Open" button.  Click "OK" to get back to the list of extensions.  Repeat the process for ".pyc", ".pyo", and ".pyw".
 


The uninstall/install should have fixed this, but there are a lot of things that could interfere - perhaps you didn't run it as Administrator, perhaps it tripped over your previously-modified setting, perhaps the installer is buggy, perhaps gremlins are trying to mess with your head...?
On Win7, I think I'm always the administrator. Everything gets installed from my userid.
...
-- 
           Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

             (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
              Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet

             "My suspicion is that the universe is not only queerer 
              than we suppose, but queerer than we can suppose." --
              Physiologist and Geneticist J.B.S. Haldane 1860-1936

                    (Maybe not, Dr. Haldane. We have an 
                     amazing imagination)
        
                    Web Page: <www.speckledwithstars.net/>


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to