
    d                     v    d Z ddlT ddZddZd Zedk    r! e            Z ee            e             dS dS )	ap         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 toggles between 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
 -------------------------------------------
    )*c                     t                      d         rt                       t                       d S t                       t	                       d S )Npendown)penend_fillupdown
begin_fillxys     "  /croot/python-split_1694437901252/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/lib/python3.11/turtledemo/paint.pyswitchupdownr      s?    
uuY 



    c                 x    t           dd          t           d d         z   a t          t           d                    d S )N   r   )colorscolorr   s     r   changecolorr       s4    ABBZrr
"F	&)r   c                  T   t          d           t          d           t          d           t          d           g dat          t          d                    t                       t          t          d           t          t          d           t          t          d           d	S )
Ncircleuserg      ?   )redgreenblueyellowr   r      	EVENTLOOP)
shape
resizemode	shapesizewidthr   r   r   onscreenclickgotor    r   r   mainr'   %   s    	(OOOvbMMM	!HHH---F	&)NNN$q+a   ,q!!!;r   __main__N)r   r   )	__doc__turtler   r   r'   __name__msgprintmainloopr&   r   r   <module>r/      s    (          
   z
$&&C	E#JJJHJJJJJ r   