| Server IP : 121.121.20.254 / Your IP : 216.73.217.51 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python315/Lib/turtledemo/__pycache__/ |
Upload File : |
R
>lqj� c �n � Q s ] QH3 QQ ksQQ ksQ s\Q6X c \ 2 s\ \2 \ 2 P! P! )a� turtledemo/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.
-------------------------------------------
)�*c � � [ 2 Q * % c [ 2 [ 2 P! [ 2 [ 2 P! )�pendown)�pen�end_fill�up�down�
begin_fill��x�ys &&�%C:\Python315\\Lib\turtledemo\paint.py�switchupdownr
s# � �
�u�Y����
�
������ c �r � [ Q * [ Q* * r [ [ ] * 2 P! ):� NN:Nr N)�colors�colorr s &&r �changecolorr s � �
�B�Z��r�
�
"�F� �&��)�r c � � [ Q 2 [ Q2 [ Q2 [ ]2 , QNr[ [ ] * 2 [
2 [ [ ]2 [ [ ]2 [ [ ]2 Q! )�circle�userg �?� EVENTLOOP)�red�green�blue�yellow)
�shape�
resizemode� shapesize�widthr r r
�
onscreenclick�gotor � r r �mainr# sV � � �(�O��v��
�b�M� �!�H�-�F� �&��)���N��$�q���+�a� ��,�q�!�r �__main__)� r% ) �__doc__�turtler
r r# �__name__�msg�print�mainloopr"