| Server IP : 118.27.122.248 / Your IP : 216.73.216.17 Web Server : Apache System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64 User : c9415830 ( 11735) PHP Version : 8.4.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python36/lib64/python3.6/turtledemo/__pycache__/ |
Upload File : |
3
x2_ � @ 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 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
-------------------------------------------
� )�*c C s( t � d rt� t� nt� t� d S )NZpendown)ZpenZend_fillZupZdownZ
begin_fill)�x�y� r �5/opt/alt/python36/lib64/python3.6/turtledemo/paint.py�switchupdown s
r c C s( t dd � t d d� a tt d � d S )N� r )�colors�color)r r 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