
|
Server : Apache System : Linux 182.49.167.72.host.secureserver.net 4.18.0-553.92.1.el8_10.x86_64 #1 SMP Wed Jan 14 06:31:58 EST 2026 x86_64 User : kikai ( 1014) PHP Version : 8.3.30 Disable Function : NONE Directory : /lib64/python3.12/turtledemo/__pycache__/ |
Upload File : |
�
T��h � �` � d Z ddl� dd�Zdd�Zd� Zedk( r e� Z ee� e� yy) 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 �p � t � d rt � t � y t � t � y )N�pendown)�pen�end_fill�up�down�
begin_fill��x�ys �)/usr/lib64/python3.12/turtledemo/paint.py�switchupdownr s � �
�u�Y���
�
������ c �N � t dd t d d z a t t d � y )N� r )�colors�colorr s r �changecolorr s$ � �
�A�B�Z��r��
�
"�F� �&��)�r c � � t d� t d� t d� t d� g d�at t d � t
� t t d� t t d� t t d� y )
N�circle�userg �?� )�red�green�blue�yellowr r � � EVENTLOOP)
�shape�
resizemode� shapesize�widthr r r �
onscreenclick�gotor � r r �mainr'