Your IP : 216.73.216.213
��Yf� � @ sz d Z d d l m Z m Z d d l m Z d d � Z d d � Z d d � Z e d
k rv e � Z
e e
� e � d S)a� turtle-example-suite:
tdemo_tree.py
Displays a 'breadth-first-tree' - in contrast
to the classical Logo tree drawing programs,
which use a depth-first-algorithm.
Uses:
(1) a tree-generator, where the drawing is
quasi the side-effect, whereas the generator
always yields None.
(2) Turtle-cloning: At each branching point
the current pen is cloned. So in the end
there are 1024 turtles.
� )�Turtle�mainloop)�clockc c s� | d k r� g } x[ | D]S } | j | � | j � } | j | � | j | � | j | � | j | � q Wx&