File: //lib64/python3.8/turtledemo/__pycache__/paint.cpython-38.pyc
U
e5d
ã @ sH d Z ddlT ddd„Zddd„Zdd„ Zed krDeƒ Zeeƒ eƒ 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 C s( t ƒ d rtƒ tƒ ntƒ tƒ d S )NZpendown)ZpenZend_fillZupZdownZ
begin_fill©ÚxÚy© r ú(/usr/lib64/python3.8/turtledemo/paint.pyÚswitchupdown s
r c C s( t dd … t d d… a tt d ƒ d S )Né r )ÚcolorsÚcolorr r r r Úchangecolor s r c C s` t dƒ tdƒ tdƒ tdƒ ddddgattd ƒ tƒ ttd
ƒ tt dƒ ttdƒ dS )
NZcircleÚuserg à?é ZredZgreenZblueZyellowr r é Z EVENTLOOP)
ÚshapeZ
resizemodeZ shapesizeÚwidthr
r r Z
onscreenclickZgotor r r r r Úmain% s
r Ú__main__N)r r )r r ) Ú__doc__Zturtler r r Ú__name__ÚmsgÚprintZmainloopr r r r Ú<module> s