Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to start IDLE (Python editor) without using the shortcut on Windows Vista?

I'm trying to teach Komodo to fire up IDLE when I hit the right keystrokes. I can use the exact path of the shortcut in start menu in the Windows Explorer location bar to launch IDLE so I was hoping Komodo would be able to use it as well. But, giving this path to Komodo causes it to say that 1 is returned. This appears to be a failure as IDLE doesn't start up.

I thought I'd avoid the shortcut and just use the exact path. I go to the start menu, find the shortcut for IDLE, right click to look at the properties. The target is grayed out, but says "Python 2.5.2". The "Start in" is set to, "C:\Python25\". The "Open File Location" button is also grayed out.

How do I find out where this shortcut is really pointing? I have tried starting python.exe and pythonw.exe both in C:\Python25, but neither starts up IDLE.

like image 712
Jason Dagit Avatar asked Sep 22 '08 23:09

Jason Dagit


People also ask

How do I open Python IDLE editor?

To open Idle with an initial file to edit, select the Python file in an operating system window, right click (Windows) or control-click (Mac), to get a pop-up window to select how to open the file. On Windows, the line for Idle requires you to open a sub-menu. Select Idle for the latest version.

How do I run Python IDLE on Windows?

To execute a file in IDLE, simply press the F5 key on your keyboard. You can also select Run → Run Module from the menu bar. Either option will restart the Python interpreter and then run the code that you've written with a fresh interpreter.

What can I use instead of Python IDLE?

There are more than 25 alternatives to IDLE for a variety of platforms, including Windows, Linux, Mac, BSD and Android. The best alternative is Eclipse, which is both free and Open Source. Other great apps like IDLE are PyCharm, IPython, Light Table and NINJA-IDE.


2 Answers

There's a file called idle.py in your Python installation directory in Lib\idlelib\idle.py.

If you run that file with Python, then IDLE should start.

c:\Python25\pythonw.exe c:\Python25\Lib\idlelib\idle.py

like image 180
Florian Bösch Avatar answered Sep 21 '22 17:09

Florian Bösch


In Python 3.2.2, I found \Python32\Lib\idlelib\idle.bat which was useful because it would let me open python files supplied as args in IDLE.

like image 37
2rs2ts Avatar answered Sep 20 '22 17:09

2rs2ts