|
From: Matthew K. <mko...@ma...> - 2007-03-04 19:54:22
|
I'm not sure if this is a VPython issue or pure Python issue, but there is a minor annoyance with the way IDLE behaves. I'm using Python 2.5 and VPython 3.2.10 on Windows XP. Right click a .PY file, and you have the option to "Edit with IDLE". Do so, and you can happily edit the file, and run it, but when you close the VPython graphics window, it kills _everything_, including IDLE, forcing you to re-open the program. You can, of course, avoid this by starting IDLE first and opening the file from within IDLE. Still, it's a stupid and confusing behavior, and goes against how all other Windows application behave. Poking around in "Folder Options-->File Types" in the Control Panel, I found that the application association for the "Edit with IDLE" action is: "C:\Python25\pythonw.exe" "C:\Python25\Lib\idlelib\idle.pyw" -n -e "%1" I tried deleting the "-n" switch, making it: "C:\Python25\pythonw.exe" "C:\Python25\Lib\idlelib\idle.pyw" -e "%1" And now it works! With this application association, if you open a file using "Edit with IDLE", IDLE will stay open when you close the VPython window. Keep in mind I have no idea what "-n" or "-e" do, and I've been unsuccessful trying to find out. In any case, who do I lobby to have this changed to the default setting on installation? Can (or should) this be fixed at the level of the VPython installer? Matt |