[Idle-dev] Unsolved problem.
Tal Einat
taleinat at gmail.com
Fri Aug 22 11:56:59 CEST 2008
Mark Fenton wrote:
> Hi,
>
> Does anyone know how to do the following:
>
> [snip]
>
> 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.
>
Hi Mark,
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
it manually.
Enjoy,
- Tal
More information about the IDLE-dev
mailing list