//usr/lib64/lib64//lib64/lib64//ó
V
Qc @ sr d Z d d l m Z m Z m Z d d l m Z m Z d „ Z d „ Z e
d k rn e ƒ Z e GHe ƒ n d S( 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ÿÿÿÿ( t Screent Turtlet mainloop( t clockt sleepc C sÐ | g } xG t d | ƒ D]6 } | j ƒ } | j d | ƒ | j | ƒ | } q Wxv t | ƒ D]h } t | d | ƒ | d } xC | D]; } | j d | ƒ | j d | d | ƒ | j | ƒ q‰ Wq` Wd S( Ni g €v@g @gffffffæ?i ( t ranget clonet rtt appendt abst pencolort fd( t pt net szt
turtlelistt it qt ct t( ( s3 /usr/lib64/python2.7/Demo/turtle/tdemo_wikipedia.pyt mn_eck s
c C s t ƒ } | j d ƒ t ƒ } | j d ƒ | j ƒ | j d ƒ | j d ƒ | j d d ƒ t ƒ } t | d d ƒ t ƒ } | | } t
d ƒ t ƒ } xP t g | j ƒ D] } | j
ƒ ^ q² ƒ rñ x | j ƒ D] } | j ƒ qÚ Wq¢ Wt ƒ } d | | | S( Nt blacki t redi i$ i i s Laufzeit: %.3f sec( R t bgcolorR t speedt
hideturtleR
t pensizet tracerR R R t anyt turtlest undobufferentriest undo( t sR t att ett z1R ( ( s3 /usr/lib64/python2.7/Demo/turtle/tdemo_wikipedia.pyt main$ s&