Your IP : 18.118.184.36
U
e5dd1 � O @ s2 d Z ddlZddlZddlZddlZddlZddlZddlm Z m
Z
mZ ddlm
Z
ddlmZ dddd d
ddd
dg Zdddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-gZd.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFdGdHdIdJdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYdZd[d\d]d^d_d`dadbdcdddedfdgdhdidjdkdldmdndodpdqdrdsdtdudvdwdxdydzd{d|gOZd}d~gZee e e dg Zdd/d2d?dLdPdTdZd\dadbdddedpdudxdygZd�d�d�d�ddd�d�d�d�d�d�d�d�d�d�d�d�d�d�d��Zd�d�� Zd�d�� Zzee� W n ek
�r ed�� Y nX G d�d� de�Zd�d�� Zd�d�� Zd�Zd�d�d��ZG d�d� dej �Z!ee!ej"d�� G d�d�� d�ej#�Z$ej"Z"G d�d�� d�e%�Z&G d�d� de�Z'G d�d�� d�e�Z(G d�d
� d
e%�Z)G d�d�� d�e%�Z*G d�d� de&�Z+G d�d�� d�e%�Z,G d�d�� d�e%�Z-G d�d�� d�e%�Z.G d�d � d e-e,�Z/e/Z0d�d� Z1G d�d�� d�e+�Z2G d�d
� d
e/�Z3e3Z4d�d�d}�Z5d�d�� Z6ed� Z7ze7d�k�rne6e7� W n@ e8k
�r� ed�e7� Y n" ek
�r� ed�e7 � Y nX d�d�� Z9d�d Z:d�dĄ Z;d�Z<d�dDŽ Z=e=ee2d�d�e;� e=ee3d�d�e:� e>Z?e@d�k�r.d�d΄ ZAd�dЄ ZBd�d҄ ZCeB� eC� eD� dS )�z-turtle 1.1b- - for Python 3.1 - 4. 5. 2009� N)�isfile�split�join)�deepcopy)�simpledialog�ScrolledCanvas�TurtleScreen�Screen� RawTurtle�Turtle�RawPen�Pen�Shape�Vec2D�addshape�bgcolor�bgpic�bye�clearscreen� colormode�delay�exitonclick� getcanvas� getshapes�listen�mainloop�mode�numinput�onkey�
onkeypress�onkeyrelease�
onscreenclick�ontimer�register_shape�resetscreen�
screensize�setup�setworldcoordinates� textinput�title�tracer�turtles�update�
window_height�window_width�back�backward�
begin_fill�
begin_poly�bk�circle�clear�
clearstamp�clearstamps�clone�color�degrees�distance�dot�down�end_fill�end_poly�fd� fillcolor�filling�forward�get_poly�getpen� getscreen�
get_shapepoly� getturtle�goto�heading�
hideturtle�home�ht�isdown� isvisible�left�lt�onclick�ondrag� onrelease�pd�pen�pencolor�pendown�pensize�penup�pos�position�pu�radians�right�reset�
resizemode�rt�seth�
setheading�setpos�setposition�settiltangle�
setundobuffer�setx�sety�shape� shapesize�shapetransform�shearfactor�
showturtle�speed�st�stamp�tilt� tiltangle�towards�
turtlesize�undo�undobufferentries�up�width�write�xcor�ycor�write_docstringdict�done�
Terminator� �?g �?i� i, �standard� �?�
i� �classic�black�noresizeTZenglish�turtle�screenzPython Turtle GraphicsF)rz �height� canvwidth�
canvheight� leftright� topbottomr r r �undobuffersizerk rW rA ra �visible�language�
exampleturtle�
examplescreenr) �
using_IDLEc C s� t | d��}|�� }W 5 Q R X i }|D ]�}|�� }|r&|�d�rBq&z|�d�\}}W n( tk
r| td| |f � Y q&Y nX |�� }|�� }|dkr�t|�}n4zd|kr�t|�}nt |�}W n tk
r� Y nX |||<