F!vdZddlTddZddZdZedkr!eZeeedSdS) 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 ------------------------------------------- )*ctdrttdStt dS)Npendown)penend_fillupdown begin_fillxys 7/opt/alt/python311/lib64/python3.11/turtledemo/paint.py switchupdownrs? uuY    cxtddtddzattddS)Nr)colorscolorr s r changecolorr s4 ABBZrr "F &)rcTtdtdtdtdgdat tdt ttdttdtt dd S) Ncircleuserg?)redgreenblueyellowrr EVENTLOOP) shape resizemode shapesizewidthrrr onscreenclickgotorrrmainr'%s (OOOv bMMM !HHH - - -F &)NNN$q+a   ,q!!! ;r__main__N)rr) __doc__turtlerrr'__name__msgprintmainloopr&rrr/s(    z $&&C E#JJJ HJJJJJr