| Server IP : 93.115.150.27 / Your IP : 216.73.216.221 Web Server : LiteSpeed System : Linux host2.azar.host 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64 User : dorfakkh ( 1797) PHP Version : 8.1.34 Disable Function : show_source, system, passthru, exec, popen, proc_open, mail MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /usr/lib64/python3.11/turtledemo/__pycache__/ |
Upload File : |
�
!A?h � �v � d Z ddlT dd�Zdd�Zd� Zedk r! e� � Z ee� � e� � dS dS ) 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 rt � � t � � d S t � � t � � d S )N�pendown)�pen�end_fill�up�down�
begin_fill��x�ys �)/usr/lib64/python3.11/turtledemo/paint.py�switchupdownr s? � �
�u�u�Y�� ��
�
�
�
���������������� c �x � t dd � t d d� z a t t d � � d S )N� r )�colors�colorr s r �changecolorr s4 � �
�A�B�B�Z��r��r�
�
"�F� �&��)�����r c �T � t d� � t d� � t d� � t d� � g d�at 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'