ó Afc@s_dZddlTddd„Zddd„Zd„Zedkr[eƒZeGHeƒndS( sp 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 toogles betweem 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 ------------------------------------------- iÿÿÿÿ(t*icCs0tƒdrtƒtƒntƒtƒdS(Ntpendown(tpentend_filltuptdownt begin_fill(txty((s//usr/lib64/python2.7/Demo/turtle/tdemo_paint.pyt switchupdowns   cCs$tdtd attdƒdS(Nii(tcolorstcolor(RR((s//usr/lib64/python2.7/Demo/turtle/tdemo_paint.pyt changecolor scCsztdƒtdƒtdƒtdƒddddgattd ƒtƒttd ƒtt d ƒttdƒd S( Ntcircletusergà?itredtgreentbluetyellowiiit EVENTLOOP( tshapet resizemodet shapesizetwidthR R R t onscreenclicktgotoR (((s//usr/lib64/python2.7/Demo/turtle/tdemo_paint.pytmain%s       t__main__N(t__doc__tturtleR R Rt__name__tmsgtmainloop(((s//usr/lib64/python2.7/Demo/turtle/tdemo_paint.pyts