Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm new to Python. I use Python 2.7 and I am running Windows Vista (64-bit). How do I make it when I click on .py scripts... that it opens up in IDLE so I can edit it a snap? Ya know... without having to open IDLE by itself. Heh.

I got all the way to C:\Python27\Lib\idlelib but I don't see the IDLE application.

Then when I do right-click and "Default open with" and select the idle.bat file.. I get this: alt text

Thanks!

share|improve this question

migrated from stackoverflow.com Jan 17 '11 at 13:52

This question came from our site for professional and enthusiast programmers.

3 Answers 3

Delete theses keys from the registry and do repair-install from the MSI.

HKEY_CLASSES_ROOT\.PY

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.py

share|improve this answer

Go to folder options. Click File Types. Click New. Give the extension i.e py and click OK. Under opens with, click Change button. Click Browse and select the idle.bat from the location.

This will associate idle to open py files.

This link might be helpful for Vista.

http://www.tech-recipes.com/rx/2127/vista_associate_file_type_program/#

share|improve this answer
    
Where is IDLE located at? Also I am at Vista.. I do not see File Types in my Folder Options... –  naknode Jan 17 '11 at 4:30
    
I'm sorry. They have removed the File Types tab from folder options. The above link might be helpful. –  aNish Jan 17 '11 at 4:38
    
You can find it in Start/Default Programs. –  Fantasizer Jan 17 '11 at 4:38
    
I get: "Windows cannot find 'idle.pyw' –  naknode Jan 17 '11 at 7:17

Have you tried simply right clicking the script and selecting Edit with IDLE?

share|improve this answer
    
I do not have that. –  naknode Jan 17 '11 at 4:25
    
Ok, brainwave: try selecting pythonw.exe from the installed programs when the error window you posted pops up. –  Fantasizer Jan 17 '11 at 4:32
    
OK I did that... and nothing happened... it's like I never even selected even though I FOUND IT.. and pressed OK on pythonw.exe... Weird. –  naknode Jan 17 '11 at 4:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.