| Server IP : 68.178.172.28 / Your IP : 216.73.216.152 Web Server : Apache System : Linux 28.172.178.68.host.secureserver.net 4.18.0-553.94.1.el8_10.x86_64 #1 SMP Mon Jan 19 05:45:41 EST 2026 x86_64 User : kiskarnal ( 1003) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /opt/python38/lib/python3.8/turtledemo/__pycache__/ |
Upload File : |
U
�i�_` � @ s: d Z ddlmZmZmZ dd� Zedkr6e� e�� dS )z�turtledemo.two_canvases
Use TurtleScreen and RawTurtle to draw on two
distinct canvases in a separate windows. The
new window must be separately closed in
addition to pressing the STOP button.
� )�TurtleScreen� RawTurtle�TKc C sN t �� } t j| dddd�}t j| dddd�}|�� |�� t|�}|�ddd� t|�}|�ddd� t|�}t|�}|�dd � |�d
� |�dd� |�d
� ||fD ]}|� d
� |�
d� q�|�
d� ||fD ]}|�� q�td�D ]&}||fD ]}|�
d� |�
d� q�q�||fD ]*}|�� |�
d� |�� |�d� �qdS )Ni, �� z#ddffff)�widthZheight�bgz#ffeeee�333333�?� Zred)r r r � Zblue)r r r �turtle�$ � � �2 �H �6 Z EVENTLOOP)r ZTkZCanvas�packr Zbgcolorr Zcolorr �shape�ltZ
begin_fill�range�fdZend_fillZpuZbk) �rootZcv1Zcv2�s1�s2�p�q�t�i� r �6/opt/python38/lib/python3.8/turtledemo/two_canvases.py�main s>