o ­=?hã@sLdZddlTd dd„Zd dd„Zdd„Zed kr$eƒZeeƒeƒd Sd S) ap turtle-example-suite: tdemo_paint.py A simple event-driven paint program - left mouse button moves turtle - middle mouse button changes color - right mouse button toggles between pen up (no line drawn when the turtle moves) and pen down (line is drawn). If pen up follows at least two pen-down moves, the polygon that includes the starting point is filled. ------------------------------------------- Play around by clicking into the canvas using all three mouse buttons. ------------------------------------------- To exit press STOP button ------------------------------------------- é)Ú*cCs*tƒdr tƒtƒdStƒtƒdS)NZpendown)ZpenZend_fillZupZdownZ begin_fill©ÚxÚy©rú7/opt/alt/python310/lib64/python3.10/turtledemo/paint.pyÚ switchupdowns   rcCs(tdd…tdd…attdƒdS)Nér)ÚcolorsÚcolorrrrrÚ changecolor sr cCs\tdƒtdƒtdƒtdƒgd¢attdƒtƒttdƒtt dƒttdƒd S) NZcircleÚusergà?é)ZredZgreenZblueZyellowrr éZ EVENTLOOP) ÚshapeZ resizemodeZ shapesizeÚwidthr r rZ onscreenclickZgotor rrrrÚmain%s    rÚ__main__N)rr) Ú__doc__Zturtlerr rÚ__name__ÚmsgÚprintZmainlooprrrrÚs   ý