Computer Science Canada Problems with IDLE and NOTEPAD++ |
Author: | ihsh [ Sat May 26, 2012 3:47 pm ] |
Post subject: | 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: ![]() Notepad++: To run a python program in notepad++, I followed the instructions found 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. |
Author: | Zren [ Sun May 27, 2012 4:18 pm ] |
Post subject: | RE:Problems with IDLE and NOTEPAD++ |
Use PyScripter. |
Author: | ihsh [ Mon May 28, 2012 8:01 pm ] |
Post subject: | Re: RE:Problems with IDLE and NOTEPAD++ |
Zren @ Sun May 27, 2012 4:18 pm wrote: Use PyScripter.
Thanks, I will probably use this in the future. ![]() But do you know why there are such problems with IDLE? |
Author: | Zren [ Mon May 28, 2012 8:08 pm ] |
Post subject: | 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 |