???<!-- GIF89;a -->
123123123123
.....................................................................................................................................???<!-- GIF89;a -->
123123123123
.....................................................................................................................................ó
Afc           @   s_   d  Z  d d l Td d d „ Z d d d „ Z d „  Z e d k r[ e ƒ  Z e GHe ƒ  n  d S(	   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   *i    c         C   s0   t  ƒ  d r t ƒ  t ƒ  n t ƒ  t ƒ  d  S(   Nt   pendown(   t   pent   end_fillt   upt   downt
   begin_fill(   t   xt   y(    (    s/   /usr/lib64/python2.7/Demo/turtle/tdemo_paint.pyt   switchupdown   s
    
c         C   s$   t  d t  d  a  t t  d ƒ d  S(   Ni   i    (   t   colorst   color(   R   R   (    (    s/   /usr/lib64/python2.7/Demo/turtle/tdemo_paint.pyt   changecolor    s    c           C   sz   t  d ƒ t d ƒ t d ƒ t d ƒ d d d d g a t t d	 ƒ t ƒ  t t d
 ƒ t t	 d ƒ t t d ƒ d S(   Nt   circlet   userg      à?i   t   redt   greent   bluet   yellowi    i   i   t	   EVENTLOOP(
   t   shapet
   resizemodet	   shapesizet   widthR
   R   R	   t   onscreenclickt   gotoR   (    (    (    s/   /usr/lib64/python2.7/Demo/turtle/tdemo_paint.pyt   main%   s    



t   __main__N(   t   __doc__t   turtleR	   R   R   t   __name__t   msgt   mainloop(    (    (    s/   /usr/lib64/python2.7/Demo/turtle/tdemo_paint.pyt   <module>   s   
		