
   J.J                   f    S r SSK7  SS jrSS jrS r\S:X  a  \" 5       r\" \5        \" 5         gg)	ai  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                 z    [        5       S   (       a  [        5         [        5         g [        5         [	        5         g )Npendown)penend_fillupdown
begin_fillxys     '/usr/lib/python3.13/turtledemo/paint.pyswitchupdownr      s     
uY

    c                 N    [         SS  [         S S -   q [        [         S   5        g )N   r   )colorscolorr   s     r   changecolorr       s$    ABZr
"F	&)r   c                      [        S5        [        S5        [        S5        [        S5        / SQq[        [        S   5        [        5         [        [        S5        [        [        S5        [        [        S5        g	)
Ncircleuserg      ?   )redgreenblueyellowr   r      	EVENTLOOP)
shape
resizemode	shapesizewidthr   r   r   onscreenclickgotor    r   r   mainr'   %   sV    	(OvbM	!H-F	&)N$q+a ,q!r   __main__N)r   r   )	__doc__turtler   r   r'   __name__msgprintmainloopr&   r   r   <module>r/      s@   ( 
 z
&C	#JJ r   