Really dumb question!
Gerrit Holl
gerrit at nl.linux.org
Tue Feb 25 18:06:26 EST 2003
Mike Silva schreef op dinsdag 25 februari om 23:50:37 +0000:
> So, my son and I are playing around with Python, esp. the turtle
> module, and we can't figure out a way to stop the program! Ctrl-C (in
> any window) doesn't do it, and closing the Tk graphics window doesn't
> do it (just opens up again and continues drawing). This gets to be a
> problem when he decides to draw 10 lines and types in 100 by mistake!
>
> So, my really dumb question is -- how do we kill an executing program,
> in particular one doing (turtle) graphics?!
There are multiple ways:
* <Ctrl-D>
* raise SystemExit()
* import sys; sys.exit()
yours,
Gerrit.
--
Asperger Syndroom - een persoonlijke benadering:
http://people.nl.linux.org/~gerrit/
Het zijn tijden om je zelf met politiek te bemoeien:
http://www.sp.nl/
More information about the Python-list
mailing list