2 """ turtle-example-suite:
6 A simple eventdriven paint program
8 - use left mouse button to move turtle
9 - middle mouse button to change color
10 - right mouse button do turn filling on/off
11 -------------------------------------------
12 Play around by clicking into the canvas
13 using all three mouse buttons.
14 -------------------------------------------
15 To exit press STOP button
16 -------------------------------------------
20 def switchupdown(x
=0, y
=0):
28 def changecolor(x
=0, y
=0):
30 colors
= colors
[1:]+colors
[:1]
39 colors
=["red", "green", "blue", "yellow"]
43 onscreenclick(changecolor
,2)
44 onscreenclick(switchupdown
,3)
47 if __name__
== "__main__":