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.

Asked by: Max558 | Posted: 28-01-2022

Answer 1

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

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

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

Answered by: Dominik221 | Posted: 01-03-2022

Answer 2

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.

Answered by: Elise992 | Posted: 01-03-2022

Answer 3

Here's another path you can use. I'm not sure if this is part of the standard distribution or if the file is automatically created on first use of the IDLE.


Answered by: Rafael169 | Posted: 01-03-2022

Answer 4

If you just have a Python shell running, type:

import idlelib.PyShell

Answered by: Rubie425 | Posted: 01-03-2022

Answer 5

there is a .bat script to start it (python 2.7).


Answered by: David835 | Posted: 01-03-2022

Answer 6

Python installation folder > Lib > idlelib > idle.pyw

Double click on it and you're good to go.

Answered by: David431 | Posted: 01-03-2022

Answer 7

You can also assign hotkeys to Windows shortcuts directly (at least in Windows 95 you could, I haven't checked again since then, but I think the option should be still there ^_^).

Answered by: Justin985 | Posted: 01-03-2022

Answer 8

The idle shortcut is an "Advertised Shortcut" which breaks certain features like the "find target" button. Google for more info.

You can view the link with a hex editor or download LNK Parser to see where it points to.

In my case it runs:
..\..\..\..\..\Python27\pythonw.exe "C:\Python27\Lib\idlelib\idle.pyw"

Answered by: Leonardo693 | Posted: 01-03-2022

Answer 9

I setup a short cut (using windows) and set the target to

C:\Python36\pythonw.exe c:/python36/Lib/idlelib/

works great

Also found this works

with open('') as f:

Answered by: Kristian727 | Posted: 01-03-2022

Answer 10

Another option for Windows that will automatically use the most recent version of Python installed, and also doesn't make you look for the installation path:

Target: pyw -m idlelib
Start in: Wherever you want

Answered by: Edward836 | Posted: 01-03-2022

Answer 11

I got a shortcut for Idle (Python GUI).

  • Click on Window icon at the bottom left or use Window Key (only Python 2), you will see Idle (Python GUI) icon
  • Right click on the icon then more
  • Open File Location
  • A new window will appears, and you will see the shortcut of Idle (Python GUI)
  • Right click, hold down and pull out to desktop to create a shortcut of Python GUI on desktop.

Answered by: Miranda682 | Posted: 01-03-2022

Answer 12

Python installation folder > Lib > idlelib > idle.pyw

send a shortcut to desktop.

From the desktop shortcut you can add it to taskbar too for quickaccess.

Hope this helps.

Answered by: Chester517 | Posted: 01-03-2022

Answer 13

If it's installed on windows 10 without changing default location, it seem it is in "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1776.0x64__{BUNCHOFRANDOMSTRINGS}" and you won't be able to open it.

Good luck finding how open .py by default with idle.

Answered by: Ted722 | Posted: 01-03-2022

Similar questions

python - Grab Focus for Frame after Shortcut Pressed in wxPython on GNOME

I'm building an app that uses global shortcut keys (using python-keybinder), but there's a problem. The frame pops up and raises properly but doesn't have focus. I have to click on frame. After I press my keyboard shortcut my frame appears, but it is not focused. I can see that the frame I was focused on previously (e.g. my Firefox fra...

python - PyQt + shortcut to trigger a button

How do I configure keyboard shortcuts to click specific buttons in a PyQT app? Eg: Ctrl + 1 to click one button while Ctrl + 2 to click the other?

python - For Django models, is there a shortcut for seeing if a record exists?

Say I have a table People, is there a way to just quickly check if a People object exists with a name of 'Fred'? I know I can query People.objects.filter(Name='Fred') and then check the length of the returned result, but is there a way to do it in a more elegant way?

python - Shortcut to testing PHP code

Having a python interpreter is really useful as it lets you quickly type in few commands and verify output; making it easier to understand syntax. However, in PHP, every time I want to try something out I have to - create a PHP script, save it, run it in my browser. Is there a shortcut that I am missing out on for PHP that would make things simpler?

python - Create one keybord shortcut for 2 objects in PyQt

How can i create for "Ctrl+C" bindings for 2 objects: self.table, self.editor I have: shortcut = QtGui.QShortcut(QtGui.QKeySequence("Ctrl+C"), self.table, None, self.copyTable) shortcut2 = QtGui.QShortcut(QtGui.QKeySequence("Ctrl+C"), self.editor, None, self.copyText) This works, but is toogled. If i have focus on self.editor and for the first time i press "Ctrl+C it does self.copy...

windows - Create shortcut to .pyw file from within python

I was wondering how to create a shortcut in python to .pyw extensions and .exe's.

Shortcut to comment out multiple lines with Python Tools for Visual Studio

What is the shortcut to comment out multiple lines with Python Tools for Visual Studio?

Closing a file in python opened with a shortcut

I am just beginning with python with lpthw and had a specific question for closing a file. I can open a file with: input = open(from_file) indata = #Do something indata.close() However, if I try to simplify the code into a single line: indata = open(from_file).read() How do I close the file I opened, or is it already automatically cl...

python - Can't save a shortcut into startup folder in windows xp with an "access is denied" com error

I've written a Python program which uses comtypes/ctypes to create a shortcut and saves it in the Startup folder. In development mode, everything works great but when the program is built using py2exe and run, the following error occurs: (-2147024891, 'Access is denied.', (None, None, None, 0, None)) os is winxp sp3, the code goes like this: shellObj = CreateObject(ShellLink) shortcut = shel...

Python open a JAR shortcut

I have a JAR file saved on my desktop, is there a way that I ca get python to pen this up, as if I was just clicking on the link from my desk top, I am very new to python and know this is a dumb question, but would help me out alot.

Still can't find your answer? Check out these communities...

PySlackers | Full Stack Python | NHS Python | Pythonist Cafe | Hacker Earth | Discord Python