glingl at aon.at
Sat Jun 24 16:24:50 CEST 2006
Hi all of you!
In a previous post I used
No reaction. Hmmm... (perhaps nobody clicked)
For those of you, who didn't have the opportunity to look
into the xturtle.py package, here is a typical untypical
example for the use of xturtle, 25 lines of code,
""" A tiny paint program.
After startup use mouse-buttons:
left - to move pen
right - to switch penstate from up to down and
vice versa. switching to up begins filling,
to down ends (and performs) filling
middle - to switch color (you may use different colors
for drawing lines and filling)
draw and have fun!
from xturtle import *
def switchupdown(x, y):
def changecolor(x, y):
colors=["red", "green", "blue", "yellow"]
mainloop() ## comment out if used from within IDLE with -n switch
### end of program
I think, this example shows, that fairly simple use
of fairly advanced concepts can lead to a fairly
Try it out.
Have a nice weekend.
More information about the Edu-sig