V Qc@srdZddlmZmZmZddlmZmZdZdZ e dkrne Z e GHendS(sF turtle-example-suite: tdemo_wikipedia3.py This example is inspired by the Wikipedia article on turtle graphics. (See example wikipedia1 for URLs) First we create (ne-1) (i.e. 35 in this example) copies of our first turtle p. Then we let them perform their steps in parallel. Followed by a complete undo(). i(tScreentTurtletmainloop(tclocktsleepcCs|g}xGtd|D]6}|j}|jd||j||}qWxvt|D]h}t|d||d}xC|D];}|jd||jd|d||j|qWq`WdS(Nigv@g@gffffff?i(trangetclonetrttappendtabstpencolortfd(tptnetszt turtlelisttitqtctt((s3/usr/lib64/python2.7/Demo/turtle/tdemo_wikipedia.pytmn_ecks     cCs t}|jdt}|jd|j|jd|jd|jddt}t |ddt}||}t dt}xPt g|j D]}|j ^qrx|j D]}|jqWqWt}d|||S( Ntblackitredii$iisLaufzeit: %.3f sec(RtbgcolorRtspeedt hideturtleR tpensizettracerRRRtanytturtlestundobufferentriestundo(tsR tattettz1R((s3/usr/lib64/python2.7/Demo/turtle/tdemo_wikipedia.pytmain$s&            . t__main__N( t__doc__tturtleRRRttimeRRRR$t__name__tmsg(((s3/usr/lib64/python2.7/Demo/turtle/tdemo_wikipedia.pyts