ó V Qc@srdZddlmZmZmZddlmZmZd„Zd„Z e dkrne ƒZ e GHeƒndS(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|ƒq‰Wq`WdS(Nig€v@g@gffffffæ?i(trangetclonetrttappendtabstpencolortfd(tptnetszt turtlelisttitqtctt((s3/usr/lib64/python2.7/Demo/turtle/tdemo_wikipedia.pytmn_ecks     cCs tƒ}|jdƒtƒ}|jdƒ|jƒ|jdƒ|jdƒ|jddƒtƒ}t |ddƒtƒ}||}t dƒtƒ}xPt g|j ƒD]}|j ƒ^q²ƒrñx|j ƒD]}|jƒqÚWq¢Wtƒ}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