관리-도구
편집 파일: two_canvases.cpython-38.pyc
U e5d_ � @ 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 window. 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)�widthZheightZbgz#ffeeee�333333�?� Zred)r r r � Zblue)r r r �turtle�$ � � �2 �H �6 Z EVENTLOOP)r ZTkZCanvasZpackr Zbgcolorr Zcolorr �shape�ltZ begin_fill�range�fdZend_fillZpuZbk) �rootZcv1Zcv2�s1�s2�p�q�t�i� r �//usr/lib64/python3.8/turtledemo/two_canvases.py�main s>