[Tutor] how to write a turtle.py program

Michael Janssen Janssen@rz.uni-frankfurt.de
Tue Feb 11 13:55:02 2003


On Tue, 11 Feb 2003, Michael Janssen wrote:

> On Wed, 12 Feb 2003, reavey wrote:
> > I am having fun  using turtle.py thru the interpreter.
> > However, the turtle draws and the display box vanishes
>
> to keep it open keep the python programm open. Best way is to use -i
> Parameter:
> python -i turtle.py

Correction: python -i name_of_your_script.py (which is hopefully not
"turtle.py", because "import turtle" would import this script itself).

Michael
>
> ---> python executes the script and go into interactive mode. sys.exit()
> or ctrl-C terminates.
>
> Michael
>
> > with a test like:
> >
> > #!/usr/bin/python
> > import turtle
> > turtle.reset()
> > turtle.forward(100)
> >
> > thanks
> > re-v
> >
> >
> >
> >
> > _______________________________________________
> > Tutor maillist  -  Tutor@python.org
> > http://mail.python.org/mailman/listinfo/tutor
> >
>
>
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>