[Idle-dev] Unsolved problem.
taleinat at gmail.com
Fri Aug 22 11:56:59 CEST 2008
Mark Fenton wrote:
> Does anyone know how to do the following:
> Save the above as HiLo.py in site packages then put a shortcut onto desktop
> and when it's double - clicked it comes up NOT in a black dos window but as
> it would if one were to run it from the IDLE i.e., white background with
> blue characters.
This works for me, after having saved the code as C:\hilo.py :
I create a shortcut to hilo.py on the desktop, then enter the
shortcut's properties and enter this in the 'target' field:
C:\Python25\python.exe C:\Python25\Lib\idlelib\idle.py -r C:\hilo.py
(copy/paste and run this in the command line first to make sure that
it works right)
You could alternatively change the 'start in' field to
"C:\Python25\Lib\idlelib" (without the quotes), and the just have
"idle.bat -r C:\hilo.py" in the 'target' field.
Note that when doing this, the IDLE shell will not close once the code
is finished; it will become interactive and require the user the close
More information about the IDLE-dev