
-----------------------------------
ihsh
Sat May 26, 2012 3:47 pm

Problems with IDLE and NOTEPAD++
-----------------------------------
I just started learning python (version: 2.7.1), and I have tried using IDLE and NOTEPAD++. However, both have quite major issues.

IDLE:
Everything works perfectly if I right click on a .py file, and select "edit with IDLE." A python shell/IDLE window comes up, with the prewritten code inside.

However, it's extremely difficult for me to start up a  blank IDLE screen.

Whenever I click on the IDLE shortcut--found in the Python folder--a Windows installer window comes up, and starts "installing" Python 2.7.1. 
The same things occurs again and again no matters how many times the thing has been "installed."

And if I directly open IDLE (at C:\Python27\Lib\idlelib\idle.py), a black command line screen springs up, and the python shell window only appears after a few seconds.

Screenshot:
http://i292.photobucket.com/albums/mm22/ihsh/pproblem.pngNotepad++:
To run a python program in notepad++, I followed the instructions found [url=http://it-ride.blogspot.ca/2009/08/notepad-and-python.html]here.

Everything works well, except that the directories for file IO become messed up. Usually you can just specify a file name, and the file will be created/opened in the same directory as the python program. But with notepad++, I have had to specify the entire path of the file for fileIO to work. 

Does anyone know how to fix either of the above problems? 

Thanks.

-----------------------------------
Zren
Sun May 27, 2012 4:18 pm

RE:Problems with IDLE and NOTEPAD++
-----------------------------------
Use PyScripter.

-----------------------------------
ihsh
Mon May 28, 2012 8:01 pm

Re: RE:Problems with IDLE and NOTEPAD++
-----------------------------------
Use PyScripter.

Thanks, I will probably use this in the future. :)

But do you know why there are such problems with IDLE?

-----------------------------------
Zren
Mon May 28, 2012 8:08 pm

RE:Problems with IDLE and NOTEPAD++
-----------------------------------
Use the idle.pyw. That's what the idle.bat uses which is probably what the shortcut calls. The .pyw file extension will use pythonw.exe which suppresses the console window.

http://docs.python.org/using/windows.html#executing-scripts
