__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

*�_i�7���SrSSKrSSKrSSKrSSKrSSK	r	SSK
r
SSKJrJ
r
Jr SSKJr SSKJr /SQr/SQr/S	QrS
S/r\\-\-\-S/-r/S
Qr0SS_SS_SS_SS_SS_SS_SS_SS_SS_SS_S S!_S"S#_S$S#_S%S&_S'S(_S)S*_S+S,_S-S.S/S0.ErS1rS2r\"\5 "S4S5\5rS6rS7r S8r!ShS9jr""S:S;\RF5r$\""\$\RJS<5 "S=S>\RL5r'\RJr%"S?S@\(5r)"SAS\5r*"SBSC\5r+"SDSE\(5r,"SFSG\(5r-"SHSI\)5r."SJSK\(5r/"SLSM\(5r0"SNSO\(5r1"SPSQ\0\/5r2\2r3SRr4"SSST\.5r5"SUSV\25r6\6r7SiSWjr8SXr9\S)r:\:S*:wa\9"\:5 S[r;S\r<S]r=S^r>S_r?\?"\\5S`Sa\=5 \?"\\6SbSc\<5 \@rA\BSd:XaSerCSfrDSgrE\D"5 \E"5 \F"5 gg!\ar\"\"\5S-5eSrCff=f!\a \"S35 GN�f=f!\a \"SY\:5 N�\a \"SZ\:-5 N�f=f)ja�

Turtle graphics is a popular way for introducing programming to
kids. It was part of the original Logo programming language developed
by Wally Feurzig and Seymour Papert in 1966.

Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it
the command turtle.forward(15), and it moves (on-screen!) 15 pixels in
the direction it is facing, drawing a line as it moves. Give it the
command turtle.right(25), and it rotates in-place 25 degrees clockwise.

By combining together these and similar commands, intricate shapes and
pictures can easily be drawn.

----- turtle.py

This module is an extended reimplementation of turtle.py from the
Python standard distribution up to Python 2.5. (See: https://www.python.org)

It tries to keep the merits of turtle.py and to be (nearly) 100%
compatible with it. This means in the first place to enable the
learning programmer to use all the commands, classes and methods
interactively when using the module from within IDLE run with
the -n switch.

Roughly it has the following features added:

- Better animation of the turtle movements, especially of turning the
  turtle. So the turtles can more easily be used as a visual feedback
  instrument by the (beginning) programmer.

- Different turtle shapes, gif-images as turtle shapes, user defined
  and user controllable turtle shapes, among them compound
  (multicolored) shapes. Turtle shapes can be stretched and tilted, which
  makes turtles very versatile geometrical objects.

- Fine control over turtle movement and screen updates via delay(),
  and enhanced tracer() and speed() methods.

- Aliases for the most commonly used commands, like fd for forward etc.,
  following the early Logo traditions. This reduces the boring work of
  typing long sequences of commands, which often occur in a natural way
  when kids try to program fancy pictures on their first encounter with
  turtle graphics.

- Turtles now have an undo()-method with configurable undo-buffer.

- Some simple commands/methods for creating event driven programs
  (mouse-, key-, timer-events). Especially useful for programming games.

- A scrollable Canvas class. The default scrollable Canvas can be
  extended interactively as needed while playing around with the turtle(s).

- A TurtleScreen class with methods controlling background color or
  background image, window and canvas size and other properties of the
  TurtleScreen.

- There is a method, setworldcoordinates(), to install a user defined
  coordinate-system for the TurtleScreen.

- The implementation uses a 2-vector class named Vec2D, derived from tuple.
  This class is public, so it can be imported by the application programmer,
  which makes certain types of computations very natural and compact.

- Appearance of the TurtleScreen and the Turtles at startup/import can be
  configured by means of a turtle.cfg configuration file.
  The default configuration mimics the appearance of the old turtle module.

- If configured appropriately the module reads in docstrings from a docstring
  dictionary in some different language, supplied separately  and replaces
  the English ones by those read in. There is a utility function
  write_docstringdict() to write a dictionary with the original (English)
  docstrings to disc, so it can serve as a template for translations.

Behind the scenes there are some features included with possible
extensions in mind. These will be commented and documented elsewhere.
�Nz', please install the python3-tk package)�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)O�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�
setundobuffer�setx�sety�shape�	shapesize�shapetransform�shearfactor�
showturtle�speed�st�stamp�teleport�tilt�	tiltangle�towards�
turtlesize�undo�undobufferentries�up�width�write�xcor�ycor�write_docstringdict�done�
Terminator)rr1r4rArNrRrVr\r^rcrdrfrgrqrwrzr{r{��?�heightg�?�	canvwidthi��
canvheighti,�	leftright�	topbottomr�standardr��?r�
�undobuffersizei�rk�classicrX�blackrBrb�noresize�visibleT�language�english�
exampleturtle�turtle�screenzPython Turtle GraphicsF)�
examplescreenr*�
using_IDLEc� �[US5nUR5nSSS5 0nWH�nUR5nU(aURS5(aM2UR	S5upVUR5nUR5nUS;a[U5nOSU;a[U5nO[U5nXcU'M� U$!,(df   N�=f![
a [
SU<SU<35 M�f=f![
a NKf=f)	z/Convert content of config-file into dictionary.�rN�#�=zBad line in config-file z:
)�True�False�Nonez''z""�.)
�open�	readlines�strip�
startswithr�
ValueError�print�eval�float�int)�filename�f�cfglines�cfgdict�line�key�values       �/usr/lib/python3.13/turtle.py�config_dictr��s���	
�h��	���;�;�=��
��G����z�z�|���t���s�+�+��	����C��J�C��i�i�k�����
���9�9���K�E�
��%�<�!�%�L�E���J�E����+�,�N�3
�	���	��x��E�F��	���
��
�s5�C�C�#D�5D�
C�C=�<C=�
D
�D
c�J�Sn0n0n[U5(a[U5nSU;aSUS-n[[5upE[	XA5n[U5(a[U5n[RU5 [RU5 g![
a SnNTf=f)aRead config-files, change configuration-dict accordingly.

If there is a turtle.cfg file in the current working directory,
read it from there. If this contains an importconfig-value,
say 'myway', construct filename turtle_mayway.cfg else use
turtle.cfg and read it from the import-directory, where
turtle.py is located.
Update configuration dictionary first according to config-file,
in the import directory, then according to config-file in the
current working directory.
If no config-file is found, the default configuration is used.
z
turtle.cfg�importconfigz
turtle_%s.cfg�N)rr�r�__file__r�	Exception�_CFGr-)r��default_cfg�cfgdict1�cfgdict2�head�tail�	cfg_file2s       r��
readconfigr��s����K��H��H�
�k����{�+����!�%���(@�@����8�_�
����+�	��i����y�)���K�K����K�K�������	��s�B�B"�!B"z"No configfile read, reason unknownc�T�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
SrS
rg)r��a�A 2 dimensional vector class, used as a helper class
for implementing turtle graphics.
May be useful for turtle graphics programs also.
Derived from tuple, so a vector is a tuple!

Provides (for a, b vectors, k number):
   a+b vector addition
   a-b vector subtraction
   a*b inner product
   k*a and a*k multiplication with scalar
   |a| absolute value of a
   a.rotate(angle) rotation
c�0�[RXU45$�N)�tuple�__new__)�cls�x�ys   r�r��
Vec2D.__new__�s���}�}�S�a�&�)�)�c�>�[USUS-USUS-5$�Nr��r��self�others  r��__add__�
Vec2D.__add__��)���T�!�W�U�1�X�%�t�A�w�u�Q�x�'7�8�8r�c��[U[5(aUSUS-USUS--$[USU-USU-5$r�)�
isinstancerr�s  r��__mul__�
Vec2D.__mul__�sQ���e�U�#�#���7�5��8�#�D��G�E�!�H�$4�4�4��T�!�W�U�]�D��G�E�M�2�2r�c��[U[5(d[U[5(a[USU-USU-5$[$r�)r�r�r�r�NotImplementedr�s  r��__rmul__�Vec2D.__rmul__�s>���e�S�!�!�Z��u�%=�%=���a�����Q���
�6�6��r�c�>�[USUS-
USUS-
5$r�r�r�s  r��__sub__�
Vec2D.__sub__r�r�c�*�[US*US*5$r�r��r�s r��__neg__�
Vec2D.__neg__s���d�1�g�X��Q��x�(�(r�c�(�[R"U6$r�)�math�hypotr�s r��__abs__�
Vec2D.__abs__s���z�z�4� � r�c��[US*US5n[R"U5n[R"U5[R"U5pC[USU-USU--USU-USU--5$)z.rotate self counterclockwise by angle
        r�r)rr�r_�cos�sin)r��angle�perp�c�ss     r��rotate�Vec2D.rotate	sv���d�1�g�X�t�A�w�'�����U�#���x�x��������1��T�!�W�Q�Y�t�A�w�q�y�(�$�q�'�!�)�D��G�A�I�*=�>�>r�c��USUS4$r��r�s r��__getnewargs__�Vec2D.__getnewargs__s���Q���a��!�!r�c��SU-$)Nz(%.2f,%.2f)r�r�s r��__repr__�Vec2D.__repr__s
���t�#�#r�r�N)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r�r�r�r�r�r�r�r�r�r��__static_attributes__r�r�r�rr�s9���*�9�3��9�)�!�?�"�$r�rc��[UR5nUR5 UHn[X15 M URR5H(upE[
U5[R:XdM$XQU'M* g)�#helper function for Scrolled CanvasN)	�list�	__bases__�reverse�__methodDict�__dict__�items�type�types�FunctionType)r��_dict�baseList�_superr�r�s      r�rrs`���C�M�M�"�H��������V�#���l�l�(�(�*�
����;�%�,�,�,��#�J�+r�c�<�0n[X5 UR5$)r�)r�keys)r�rs  r��	__methodsr
(s���E�����:�:�<�r�zTdef %(method)s(self, *args, **kw): return self.%(attribute)s.%(method)s(*args, **kw)c�\�0n[X5 0n[U5nUR5H'nUSSS:XdUSSS:Xd
Xs;dXv;aM!XGXW'M) UR5HCup�X�S.n
[	U[
5(a[X�S.-n[WU
5 [XX�5 ME g)Nr��_���)�method�func)r�	attribute)	rr
rrr��str�__stringBody�exec�setattr)�	fromClass�toClass�toPart�exclude�_dict_1r�mfc�exrr�d�
execStrings            r��__forwardmethodsr!2s����G���"��E�
�I�
�C��l�l�n��
�b�q�6�S�=�B�r�s�G�s�N�b�m�r�y����E�I�	����
����,���f�c�"�"��6�H�H�
��Z����	�1�9�-�
&r�c�`�\rSrSrSrSSjrSSjrSrSrSr	S	r
S
rSrSr
S
rSrg)riGz�Modeled after the scrolled canvas class from Grayons's Tkinter book.

Used as the default canvas, which pops up automatically when
using turtle graphics functions or the Turtle class.
c���[RRXX#S9 UR5UlX#sUlUlXEsUlUlSUl	[R"XUUR[RSS9Ul[R"XRR[RS9Ul[R"XRR"S9UlURR'UR R(UR$R(S9 UR+SS	SS
9 UR-SS	SS
9 URR/S	US	SSS	S	SS9 UR$R/S	US	SS	S	S	SS9 UR R/S	US	S	SS	S	SS9 UR15 URR3S
UR45 g)N)r{r��white�)r{r��bg�relief�borderwidth)�command�orient)r))�xscrollcommand�yscrollcommandrr�)�weight�minsize�news��padx�in_�pady�row�column�rowspan�
columnspan�stickyz<Configure>)�TK�Frame�__init__�winfo_toplevel�_rootwindowr{r�r�r�r&�Canvas�SUNKEN�_canvas�	Scrollbar�xview�
HORIZONTAL�hscroll�yview�vscroll�	configure�set�rowconfigure�columnconfigure�gridra�bind�onResize)r��masterr{r�r�r�s      r�r;�ScrolledCanvas.__init__Ms���
�����$�e��C��.�.�0���"'���
�D�K�*3�'���������y�y��V�$(�G�G�B�I�I�1�N����|�|�F�L�L�4F�4F�+-�=�=�:����|�|�F�L�L�4F�4F�G��������d�l�l�.>�.>�.2�l�l�.>�.>�	�	@����!�A�q��1����Q�q�!��4������q��1�!��!��&�	�	B������q��1�!��!��&�	�	B������q��1�!��!��&�	�	B��
�
�������m�T�]�]�;r�Nc�.�U(aXlU(aX lU(aX0lURR	UUR*S-UR*S-URS-URS-4S9 URRSURUR-
S--UR-5 URRSURUR-
S--UR-5 UR5 g)z<Adjust canvas and scrollbars according to given canvas size.r%)r&�scrollregionr��N)
r�r�r&r@�config�xview_movetor{�yview_movetor��
adjustScrolls�r�r�r�r&s    r�ra�ScrolledCanvas.resetfs����&�N��(�O�
��G������r�'+�~�~�o�q�&8�4�?�?�:J�A�:M�'+�~�~�q�'8�$�/�/�1�:L�&N�	�	O�	
���!�!�#�t�~�~��
�
�'B�R�'G�"H�?C�~�~�#N�	O����!�!�#�t������'C�b�'H�"I�>B�o�o�#N�	O����r�c�r�URR5nURR5nURRSURU-
-UR-5 URRSURU-
-UR-5 XR:dX R:aAURRSUSSSSSSS9 URRSUSSSSSSS9 gURR5 URR5 g)z@Adjust scrollbars according to window- and canvas-size.
        r�r�rr/r0N)r@�winfo_width�winfo_heightrTr�rUr�rDrKrF�grid_forget)r��cwidth�cheights   r�rV�ScrolledCanvas.adjustScrollsxs�����)�)�+���,�,�+�+�-�����!�!�#�t�~�~�f�'<�"=�d�n�n�"L�M����!�!�#�t���w�'>�"?����"O�P��N�N�"�g���&?��L�L���1�D�q�a�%&��a��
�
P��L�L���1�D�q�a�%&��a��
�
P�
�L�L�$�$�&��L�L�$�$�&r�c�$�UR5 g)zself-explanatoryN)rV)r��events  r�rM�ScrolledCanvas.onResize�s�����r�c�4�URR"U6$��?'forward' method, which canvas itself has inherited...
        )r@�bbox�r��argss  r�rf�ScrolledCanvas.bbox�s���|�|� � �$�'�'r�c�:�URR"U0UD6$rd)r@�cget�r�rh�kwargss   r�rk�ScrolledCanvas.cget�s���|�|� � �$�1�&�1�1r�c�<�URR"U0UD6 g�reN)r@rSrls   r�rS�ScrolledCanvas.config����	
�����T�,�V�,r�c�<�URR"U0UD6 grp)r@rLrls   r�rL�ScrolledCanvas.bind�s��	
�����4�*�6�*r�c�<�URR"U0UD6 grp)r@�unbindrls   r�rv�ScrolledCanvas.unbind�rrr�c�8�URR5 grp)r@�focus_forcer�s r�ry�ScrolledCanvas.focus_force�s��	
��� � �"r�)	r@r=r&r�r�r�rDrFr{)��i^iXr{�NNN)r�r�r�r�r�r;rarVrMrfrkrSrLrvryr�r�r�r�rrGsA���
25�DG�<�2�$'� �(�
2�
-�
+�
-�
#r�rr@c�B�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rg)�_Rooti�z'Root class for Screen based on Tkinter.c�B�[RRU5 gr�)r9�Tkr;r�s r�r;�_Root.__init__�s��
�����t�r�c�\�[XX#U5UlURRSSS9 g)Nr��both)�expand�fill)rr@�pack)r�r{r�r]r^s     r��setupcanvas�_Root.setupcanvas�s)��%�d�6�7�K�����������0r�c��UR$r��r@r�s r��
_getcanvas�_Root._getcanvas�s���|�|�r�c�0�URSXX44-5 g)Nz%dx%d%+d%+d)�geometry)r�r{r��startx�startys     r��set_geometry�_Root.set_geometry�s���
�
�m�U�F�$C�C�Dr�c�(�URSU5 g)N�WM_DELETE_WINDOW)�wm_protocol)r��destroys  r��	ondestroy�_Root.ondestroy�s�����+�W�5r�c�"�UR5$r�)�winfo_screenwidthr�s r��	win_width�_Root.win_width�s���%�%�'�'r�c�"�UR5$r�)�winfo_screenheightr�s r��
win_height�_Root.win_height�s���&�&�(�(r�r�N)
r�r�r�r�r�r;r�r�r�r�r�r�r�r�r�r�r~r~�s)��1��1��E�6�(�)r�r~c��\rSrSrSrSrSrSrSrS&Sjr	S	r
S&S
jrSrSr
S
rSrS'SjrSrS(SjrS(SjrS(SjrS(SjrSrS'SjrSrSrSrSrSrSrSrSrSr S)S jr!S!r"S"r#S#r$S)S$jr%S%r&g)*�TurtleScreenBasei�z�Provide the basic graphics functionality.
Interface between Tkinter and turtle.py.

To port turtle.py to some different graphics toolkit
a corresponding TurtleScreenBase class has to be implemented.
c�f�[R"SSURS9nUR5 U$)z$return a blank image object
        r�)r{r�rN)r9�
PhotoImage�cv�blank)r��imgs  r��_blankimage�TurtleScreenBase._blankimage�s(���m�m�!�A�d�g�g�>���	�	���
r�c�>�[R"XRS9$)zPreturn an image object containing the
imagedata from a gif-file named filename.
)�filerN)r9r�r�)r�r�s  r��_image�TurtleScreenBase._image�s���}�}�(�7�7�;�;r�c��Xl[U[5(a-URRnURRnOs[URR
S55n[URR
S55nURRU*S-U*S-US-US-4S9 X lX0lS=UlUl	g)Nr{r�r%�rQr�)
r�r�rr�r�r�rkrS�xscale�yscale)r�r��w�hs    r�r;�TurtleScreenBase.__init__�s������b�.�)�)����!�!�A����"�"�A��D�G�G�L�L��)�*�A��D�G�G�L�L��*�+�A��G�G�N�N�A�2�q�5�1�"�a�%��A��q�!�t�*E�N�F�����$'�'���d�kr�c�8�URRSSSS9$)z<Create an invisible polygon item on canvas self.cv)
        )rrrrrrr��r��outline)r��create_polygonr�s r��_createpoly�TurtleScreenBase._createpoly�s!���w�w�%�%�&8�r�2�%�N�Nr�Nc��/nUHAup�URX�R-5 URU	*UR-5 MC URR"U/UQ76 UbURRXS9 UbURRXS9 UbURRXS9 U(aURR
U5 gg)a Configure polygonitem polyitem according to provided
arguments:
coordlist is sequence of coordinates
fill is filling color
outline is outline color
top is a boolean value, which specifies if polyitem
will be put on top of the canvas' displaylist so it
will not be covered by other items.
N�r�)r��r{��appendr�r�r��coords�
itemconfigure�	tag_raise)
r��polyitem�	coordlistr�r�r{�top�clr�r�s
          r��	_drawpoly�TurtleScreenBase._drawpoly�s������D�A��I�I�a�+�+�o�&��I�I�q�b�4�;�;�&�'��	
�����x�%�"�%����G�G�!�!�(�!�6����G�G�!�!�(�!�<����G�G�!�!�(�!�8���G�G���h�'�r�c
�\�URRSSSSSS[RS9$)z9Create an invisible line item on canvas self.cv)
        rr�r%)r�r{�capstyle)r��create_liner9�ROUNDr�s r��_createline�TurtleScreenBase._createlines3���w�w�"�"�1�a��A�B�a�.0�h�h�#�8�	8r�c��Ubf/nUHAupxURXpR-5 URU*UR-5 MC URR"U/UQ76 UbURRXS9 UbURRXS9 U(aURR
U5 gg)aConfigure lineitem according to provided arguments:
coordlist is sequence of coordinates
fill is drawing color
width is width of drawn line.
top is a boolean value, which specifies if polyitem
will be put on top of the canvas' displaylist so it
will not be covered by other items.
Nr�r�r�)	r��lineitemr�r�r{r�r�r�r�s	         r��	_drawline�TurtleScreenBase._drawlines���� ��B�!����	�	�!�k�k�/�*��	�	�1�"�t�{�{�*�+�"�
�G�G�N�N�8�)�b�)����G�G�!�!�(�!�6����G�G�!�!�(�!�8���G�G���h�'�r�c�:�URRU5 g)zMDelete graphics item from canvas.
If item is"all" delete all graphics items.
N)r��delete�r��items  r��_delete�TurtleScreenBase._delete%s��	
�����t�r�c�8�URR5 g)z(Redraw graphics items on canvas
        N)r�r-r�s r��_update�TurtleScreenBase._update+s��	
�����r�c�:�URRU5 g)z-Delay subsequent canvas actions for delay ms.N)r��after�r�rs  r��_delay�TurtleScreenBase._delay0s�����
�
�e�r�c�|�URRU5nSnU$![Ra SnU$f=f)zCCheck if the string color is a legal Tkinter color string.
        TF)r��	winfo_rgbr9�TclError)r�r:�rgb�oks    r��_iscolorstring�TurtleScreenBase._iscolorstring4sF��	��'�'�#�#�E�*�C��B��	���{�{�	��B��	�	�s�!�;�;c��Ub*URRUS9 UR5 gURRS5$)zNSet canvas' backgroundcolor if color is not None,
else return backgroundcolor.N)r&r&)r�rSr�rk)r�r:s  r��_bgcolor�TurtleScreenBase._bgcolor>s8�����G�G�N�N��N�&��L�L�N��7�7�<�<��%�%r�c	���UupgX`R-nXpR-nSSSS.nURRUS-
U*X(UXTS9n	URR	U	5up�p�X�S-
4$)z�Write txt at pos in canvas with specified font
and color.
Return text item and x-coord of right bottom corner
of text's bounding box.�swr��se)rQ�centerr`r�)�text�anchorr��font)r�r�r��create_textrf)r�r\�txt�alignr�rXr�r�r�r��x0�y0�x1�y1s              r��_write�TurtleScreenBase._writeGs|��
���
���O��
���O����T�;���w�w�"�"�1�Q�3���3���/7�#�F�������d�+������T�z�r�c�^^�Tc TRRUSU-5 gUU4SjnTRRUSU-XT5 g)z�Bind fun to mouse-click event on turtle.
fun must be a function with two arguments, the coordinates
of the clicked point on the canvas.
num, the number of the mouse-button defaults to 1
N�<Button-%s>c��>�TRRUR5TR-TRR	UR
5*TR-p!T"X5 gr��r��canvasxr�r��canvasyr�r��rar�r��funr�s   ��r��eventfun�+TurtleScreenBase._onclick.<locals>.eventfun^�L�����������0����<���������1�1�$�+�+�=���A�	r��r��
tag_unbind�tag_bind�r�r�r�num�addrs` `   r��_onclick�TurtleScreenBase._onclickUsE����;��G�G���t�]�S�%8�9�
�
�G�G���T�=�3�#6��Fr�c�^^�Tc TRRUSU-5 gUU4SjnTRRUSU-XT5 g)a7Bind fun to mouse-button-release event on turtle.
fun must be a function with two arguments, the coordinates
of the point on the canvas where mouse button is released.
num, the number of the mouse-button defaults to 1

If a turtle is clicked, first _onclick-event will be performed,
then _onscreensclick-event.
Nz<Button%s-ButtonRelease>c��>�TRRUR5TR-TRR	UR
5*TR-p!T"X5 gr�r�rs   ��r�r�-TurtleScreenBase._onrelease.<locals>.eventfunprr�rr	s` `   r��
_onrelease�TurtleScreenBase._onreleasedsJ����;��G�G���t�%?�#�%E�F�
�
�G�G���T�#=��#C�%�
,r�c�^^�Tc TRRUSU-5 gUU4SjnTRRUSU-XT5 g)aABind fun to mouse-move-event (with pressed mouse button) on turtle.
fun must be a function with two arguments, the coordinates of the
actual mouse position on the canvas.
num, the number of the mouse-button defaults to 1

Every sequence of mouse-move-events on a turtle is preceded by a
mouse-click event on that turtle.
Nz<Button%s-Motion>c�>�TRRUR5TR-TRR	UR
5*TR-p!T"X5 g![a gf=fr�)r�r�r�r�rr�r�r�rs   ��r�r�*TurtleScreenBase._ondrag.<locals>.eventfun�sc���� �G�G�O�O�E�G�G�4�T�[�[�@� �G�G�O�O�E�G�G�4�4�T�[�[�@����I�� ����s�A,A0�0
A=�<A=rr	s` `   r��_ondrag�TurtleScreenBase._ondragwsG����;��G�G���t�%8�3�%>�?�
�
�G�G���T�#6��#<�h�Lr�c�^^�TcTRRSU-5 gUU4SjnTRRSU-XC5 g)aBind fun to mouse-click event on canvas.
fun must be a function with two arguments, the coordinates
of the clicked point on the canvas.
num, the number of the mouse-button defaults to 1

If a turtle is clicked, first _onclick-event will be performed,
then _onscreensclick-event.
Nr�c��>�TRRUR5TR-TRR	UR
5*TR-p!T"X5 gr�r�rs   ��r�r�1TurtleScreenBase._onscreenclick.<locals>.eventfun�rr��r�rvrL)r�rr
rrs``   r��_onscreenclick�TurtleScreenBase._onscreenclick�s=����;��G�G�N�N�=�3�.�/�
�
�G�G�L�L���,�h�<r�c�^�Tc URRSU-S5 gU4SjnURRSU-U5 g)zPBind fun to key-release event of key.
Canvas must have focus. See method listen
Nz<KeyRelease-%s>c�>�T"5 gr�r��rars �r�r�0TurtleScreenBase._onkeyrelease.<locals>.eventfun������r�r�r�rr�rs `  r��
_onkeyrelease�TurtleScreenBase._onkeyrelease�s?����;��G�G�N�N�,�s�2�D�9�
��G�G�L�L�*�S�0�(�;r�c�^�Tc@UcURRSS5 gURRSU-S5 gU4SjnUcURRSU5 gURRSU-U5 g)z�If key is given, bind fun to key-press event of key.
Otherwise bind fun to any key-press.
Canvas must have focus. See method listen.
Nz
<KeyPress>z
<KeyPress-%s>c�>�T"5 gr�r�r s �r�r�.TurtleScreenBase._onkeypress.<locals>.eventfun�r"r�rr#s `  r��_onkeypress�TurtleScreenBase._onkeypress�sk���
�;��{������|�T�2��������4�d�;�
��{������\�8�4������_�s�2�H�=r�c�8�URR5 g)z=Set focus on canvas (in order to collect key-events)
        N)r�ryr�s r��_listen�TurtleScreenBase._listen�s��	
�����r�c�~�US:XaURRU5 gURRX!5 g)z?Install a timer, which calls fun after t milliseconds.
        rN)r��
after_idler��r�r�ts   r��_ontimer�TurtleScreenBase._ontimer�s-��
��6��G�G���s�#��G�G�M�M�!�!r�c�8�URRSSUS9$)z0Create and return image item on canvas.
        r��image)r��create_image)r�r6s  r��_createimage�TurtleScreenBase._createimage�s ���w�w�#�#�A�q��#�6�6r�c��UupEURRXUR-U*UR-45 URR	XS9 g)zJConfigure image item as to draw image object
at position (x,y) on canvas)
r5N)r�r�r�r��
itemconfig)r�r�r\r6r�r�s      r��
_drawimage�TurtleScreenBase._drawimage�sH����������t�$�+�+�o��r�D�K�K�/?�@�A������4��-r�c�l�URRXS9 URRU5 g)z�Configure image item as to draw image object
at center of canvas. Set item to the first item
in the displaylist, so it will be drawn below
any other item .r5N)r�r;�	tag_lower)r�r�r6s   r��	_setbgpic�TurtleScreenBase._setbgpic�s+��
	
�����4��-������$�r�c�8�URRU5$)zAReturn 'line' or 'polygon' or 'image' depending on
type of item.
)r�rr�s  r��_type�TurtleScreenBase._type�s���w�w�|�|�D�!�!r�c��URRU5n[S[U5S5Vs/sHo2UX#S-*4PM nnU$s snf)z�returns list of coordinate-pairs of points of item
Example (for insiders):
>>> from turtle import *
>>> getscreen()._pointlist(getturtle().turtle._item)
[(0.0, 9.9999999999999982), (0.0, -9.9999999999999982),
(9.9999999999999982, 0.0)]
>>> rr%r�)r�r��range�len)r�r�r��i�pls     r��
_pointlist�TurtleScreenBase._pointlist�sR���W�W�^�^�D�
!��).�q�#�b�'�1�)=�
>�)=�A�!�u�r�A�#�w�h��)=��
>��
��?s�Ac�:�URRXX44S9 g)Nr�)r�rS)r��srx1�sry1�srx2�sry2s     r��_setscrollregion�!TurtleScreenBase._setscrollregion�s�������T��$<��=r�c�T�URR5nUH�n[URRU55n/nU(a;USSupxUR	Xq-5 UR	X�-5 USSnU(aM;URR"U/UQ76 M� g)Nr%)r��find_allr�r�r�)	r��xscalefactor�yscalefactorrr��coordinates�newcoordlistr�r�s	         r��_rescale�TurtleScreenBase._rescale�s������ � �"���D��t�w�w�~�~�d�3�4�K��L��"�2�A�����#�#�A�$4�5��#�#�A�$4�5�)�!�"�o��	�+�

�G�G�N�N�4�/�,�/�r�c�H�[UR[5(dURUR4$Xs=La	Us=Lac/O O,URRURR4$UbXlUbX lURRXU5 g)zQResize the canvas the turtles are drawing on. Does
not alter the drawing window.
N)r�r�rr�r�rarWs    r��_resize�TurtleScreenBase._resize�s}��
�$�'�'�>�2�2��>�>�4�?�?�2�2��0�b�0�0��7�7�$�$�d�g�g�&8�&8�8�8�� �&�N��!�(�O����
�
�i�R�0r�c���URR5nUS::aURSnURR5nUS::aURSnX4$)z:Return the width and height of the turtle window.
        r�r{r�)r�rZr[)r�r{r�s   r��_window_size�TurtleScreenBase._window_size
sZ�����#�#�%���A�:��G�G�G�$�E����%�%�'���Q�;��W�W�X�&�F��}�r�c�L�URRR5 g)aCStarts event loop - calling Tkinter's mainloop function.

No argument.

Must be last statement in a turtle graphics program.
Must NOT be used if a script is run from within IDLE in -n mode
(No subprocess) - for interactive use of turtle graphics.

Example (for a TurtleScreen instance named screen):
>>> screen.mainloop()

N)r��tkrr�s r�r�TurtleScreenBase.mainloops��	
���
�
���r�c�@�[R"XURS9$)aMPop up a dialog window for input of a string.

Arguments: title is the title of the dialog window,
prompt is a text mostly describing what information to input.

Return the string input
If the dialog is canceled, return None.

Example (for a TurtleScreen instance named screen):
>>> screen.textinput("NIM", "Name of first player:")

)�parent)r�	askstringr�)r�r*�prompts   r�r)�TurtleScreenBase.textinput's���%�%�e�D�G�G�D�Dr�c	�D�[R"XUXEURS9$)aWPop up a dialog window for input of a number.

Arguments: title is the title of the dialog window,
prompt is a text mostly describing what numerical information to input.
default: default value
minval: minimum value for input
maxval: maximum value for input

The number input must be in the range minval .. maxval if these are
given. If not, a hint is issued and the dialog remains open for
correction. Return the number input.
If the dialog is canceled,  return None.

Example (for a TurtleScreen instance named screen):
>>> screen.numinput("Poker", "Your stakes:", 1000, minval=10, maxval=10000)

)�initialvalue�minvalue�maxvaluere)r�askfloatr�)r�r*rg�default�minval�maxvals      r�r�TurtleScreenBase.numinput6s%��$�$�$�U��.4�,0�G�G�5�	5r�)r�r�r�r�r�)NNNFr��r�Nr|)'r�r�r�r�r�r�r�r;r�r�r�r�r�r�r�r�r�r�rrrrr$r)r,r2r8r<r@rCrJrQrYr\r_rr)rr�r�r�r�r�r��s�����<�(�O�
37�05�(�28�-1�-2�(�.��
��&��
G�,�&M�*=�$	<�>�$�
"�7�
.� �"�
�>�
0�
1�	�
�
E�5r�r�c��\rSrSrSrSrg)r�iRz�Will be raised in TurtleScreen.update, if _RUNNING becomes False.

This stops execution of a turtle graphics script.
Main purpose: use in the Demo-Viewer turtle.Demo.py.
r�N�r�r�r�r�r�r�r�r�r�r�r�Rs���
	r�c��\rSrSrSrSrg)�TurtleGraphicsErrori[zSome TurtleGraphics Error
    r�Nrtr�r�r�rvrv[s��r�rvc�,�\rSrSrSrSSjrSSjrSrg)ri`z�Data structure modeling shapes.

attribute _type is one of "polygon", "image", "compound"
attribute _data is - depending on _type a poygon-tuple,
an image or a list constructed using the addcomponent method.
Nc�b�XlUS:Xa![U[5(a[U5nO|US:Xa_[U[5(aIUR5R
S5(a%[U5(a[RU5nOUS:Xa/nO[SU-5eX lg)N�polygonr6�.gif�compoundzThere is no shape type %s)rCr�r�r�r�lower�endswithrr	r�rv�_data)r��type_�datas   r�r;�Shape.__init__gs����
��I���$��%�%��T�{���
�g�
��$��$�$��:�:�<�(�(��0�0�V�D�\�\�'�.�.�t�4�D��
�j�
 ��D�%�&A�E�&I�J�J��
r�c��URS:wa[SUR-5eUcUnURRXU/5 g)a�Add component to a shape of type compound.

Arguments: poly is a polygon, i. e. a tuple of number pairs.
fill is the fillcolor of the component,
outline is the outline color of the component.

call (for a Shapeobject namend s):
--   s.addcomponent(((0,0), (10,10), (-10,10)), "red", "blue")

Example:
>>> poly = ((0,0),(10,-5),(0,10),(-10,-5))
>>> s = Shape("compound")
>>> s.addcomponent(poly, "red", "blue")
>>> # .. add more components and then use register_shape()
r{z Cannot add component to %s ShapeN)rCrvr~r�)r��polyr�r�s    r��addcomponent�Shape.addcomponentwsP�� �:�:��#�%�&H�BF�*�*�'M�N�
N��?��G��
�
���4�w�/�0r�)r~rCr�)r�r�r�r�r�r;r�r�r�r�r�rr`s���� 1r�rc�D�\rSrSrSrSSjrSSjrSrSrSr	S	r
S
rg)
�Tbufferi�z5Ring buffer used as undobuffer for RawTurtle objects.c�D�XlS//U-UlSUlSUlg)NrF)�bufsize�buffer�ptr�cumulate)r�r�s  r�r;�Tbuffer.__init__�s%�����v�h��(��������
r�Nc��Uc-[UR5HnS/URU'M OXlS//U-UlSUlg)Nr)rFr�r�r�)r�r�rHs   r�ra�
Tbuffer.reset�sG���?��4�<�<�(��"&�����A��)�#�L� �6�(�W�,�D�K���r�c��URS:�atUR(d:URS-UR-UlXRUR'gURURR	U5 ggr�)r�r�r�r�r�r�s  r��push�Tbuffer.push�s]���<�<�!���=�=� �H�H�q�L�D�L�L�8���(,���D�H�H�%����D�H�H�%�,�,�T�2�r�c���URS:�aZURURnUcgS/URUR'URS-
UR-UlU$gr�)r�r�r�r�s  r��pop�Tbuffer.pop�s^���<�<�!���;�;�t�x�x�(�D��|��)-�����D�H�H�%� �H�H�q�L�D�L�L�8����
�r�c�T�URURRS/5-
$r�)r�r��countr�s r��nr_of_items�Tbuffer.nr_of_items�s"���|�|�d�k�k�/�/���7�7�7r�c�^�[UR5S-[UR5-$)N� )rr�r�r�s r�r��Tbuffer.__repr__�s#���4�;�;��#�%��D�H�H�
�5�5r�)r�r�r�r�)r�r�)r�r�r�r�r�r;rar�r�r�r�r�r�r�r�r�r��s#��?��
�3��8�6r�r�c��\rSrSrSrSr\S\S\S4SjrSrS#S
jr	Sr
S#SjrS
rSr
S#SjrSrSrSrS$SjrS#SjrSrSrSrSrSrSrS%SjrSrS#SjrS$SjrS&SjrS#S jrS'S!jr \r!\r"\r#\r$\r%S"r&g	)(r	i�z�Provides screen oriented methods like bgcolor etc.

Only relies upon the methods of TurtleScreenBase and NOT
upon components of the underlying graphics toolkit -
which is Tkinter in this case.
Trrrc��[RX5 [SS5[SS5[SS5[SS5[SS5[SS5[SUR55S	.UlS
S0UlX lX@l[SUl	/Ul
UR5 [RS
:Xa;UR5nURSSSSS5 URSSSSS5 gg)Nry)����r�r�r�rr�))r�)����)rr�)����)����	)����)����)r�r�)������)���r�)r�r�)r�r��rr�)�r�)�r�)r�r�)r�r�)r�r�)r�r�)r�r�)r�r�)r�r�)r�r�)r%r�)r�)��Q�#@���Q�@)�G�z. @��Q��@)r�r�)r�r�r�)���Q��r�)��Q���r�)�G�z. �r�)��Q�#�r�r�)r�r�)r�r�)r�r�)r�r�)g�g$�)r�r�)r�r�)r�r�)r�r�))r�r�)r�r�)r�r�)r�r�))r���G�z�)rg�����'@)r�r�)�rr)r�r�r�)r�r�r6)�arrowr�r5�square�triangler�r��nopicr�r�darwin�wm�
attributesr�z-topmost�1�0)r�r;rr��_shapes�_bgpics�_mode�_delayvaluer��
_colormode�_keysr6�sys�platformr<�call)r�r�rrr�
rootwindows      r�r;�TurtleScreen.__init__�s���!�!�$�+�#�9�.G�H�"�9�/&�'�
#�9�/H�I�#�9�/)�*�"�9�/+�,�"�9�.K�L�"�7�D�,<�,<�,>�?�%���* �"�~����
� ���{�+�����
��
�
���<�<�8�#��*�*�,�J��O�O�D�,��Z��E��O�O�D�,��Z��E�
$r�c���[SUl[SUlURS5 UR	S5UlSUlSUlSUl/Ul	URS5 S	HnURS
U5 M URS
5 URS
S
H'nURS
U5 URS
U5 M) S
[lg
)a9Delete all drawings and all turtles from the TurtleScreen.

No argument.

Reset empty TurtleScreen to its initial state: white background,
no backgroundimage, no eventbindings and tracing on.

Example (for a TurtleScreen instance named screen):
>>> screen.clear()

Note: this method is not available as function.
rr�allr�r�r�rr$)r�r%�N)r�r�r�r�r8�_bgpic�
_bgpicname�_tracing�_updatecounter�_turtlesrrSr r�rr�_pen)r��btnr�s   r�r6�TurtleScreen.clear�s��� ��=����{�+������U���'�'��+���!�����
������
����W���C��L�L��s�#��������:�:�a�=�C��J�J�t�S�!��O�O�D�#�&�!���r�Nc�R�UcUR$UR5nUS;a[SU-5eXlUS;aXURUR*S-UR
*S-URS-UR
S-5 S=UlUlUR5 g)a�Set turtle-mode ('standard', 'logo' or 'world') and perform reset.

Optional argument:
mode -- one of the strings 'standard', 'logo' or 'world'

Mode 'standard' is compatible with turtle.py.
Mode 'logo' is compatible with most Logo-Turtle-Graphics.
Mode 'world' uses userdefined 'worldcoordinates'. *Attention*: in
this mode angles appear distorted if x/y unit-ratio doesn't equal 1.
If mode is not given, return the current mode.

     Mode      Initial turtle heading     positive angles
 ------------|-------------------------|-------------------
  'standard'    to the right (east)       counterclockwise
    'logo'        upward    (north)         clockwise

Examples:
>>> mode('logo')   # resets turtle heading to north
>>> mode()
'logo'
N�r��logo�worldzNo turtle-graphics-mode %s)r�r�r%r�)	r�r|rvrQr�r�r�r�ra�r�rs  r�r�TurtleScreen.modes���,�<��:�:���z�z�|���4�4�%�&B�T�&I�J�J��
��'�'��!�!�4�>�>�/�1�"4�t���6F��6I�'+�~�~�q�'8�$�/�/�1�:L�
N�(+�+�D�K�$�+��
�
�r�c�h�UR5S:waURS5 [X1-
5n[XB-
5nUR5upxURUS-
US-
5 URUR
p�URU-UlURU-UlXR-nU*UR
-nURU-n
URU-nURX�X�5 URURU	-UR
U
-5 UR5 g)a�Set up a user defined coordinate-system.

Arguments:
llx -- a number, x-coordinate of lower left corner of canvas
lly -- a number, y-coordinate of lower left corner of canvas
urx -- a number, x-coordinate of upper right corner of canvas
ury -- a number, y-coordinate of upper right corner of canvas

Set up user coodinat-system and switch to mode 'world' if necessary.
This performs a screen.reset. If mode 'world' is already active,
all drawings are redrawn according to the new coordinates.

But ATTENTION: in user-defined coordinatesystems angles may appear
distorted. (see Screen.mode())

Example (for a TurtleScreen instance named screen):
>>> screen.setworldcoordinates(-10,-0.5,50,1.5)
>>> for _ in range(36):
...     left(10)
...     forward(0.5)
r��N)rr�r_r&r�r�r�r�rQrYr-)r��llx�lly�urx�ury�xspan�yspan�wx�wy�	oldxscale�	oldyscalerMrNrOrPs               r�r(� TurtleScreen.setworldcoordinates&s���,�9�9�;�'�!��I�I�g���c�i� ���c�i� ���"�"�$�������2��r�"�u�%�#�{�{�D�K�K�9��n�n�u�,����o�o��-����[�[� ���t�d�k�k�!���~�~��$������%�����d�$�5��
�
�d�k�k�)�+�T�[�[��-B�C����
r�c��UcKUR5RS5(a[SURU55nO,[	S5e[U[5(a[SU5nX RU'g)aAdds a turtle shape to TurtleScreen's shapelist.

Arguments:
(1) name is the name of a gif-file and shape is None.
    Installs the corresponding image shape.
    !! Image-shapes DO NOT rotate when turning the turtle,
    !! so they do not display the heading of the turtle!
(2) name is an arbitrary string and shape is a tuple
    of pairs of coordinates. Installs the corresponding
    polygon shape
(3) name is an arbitrary string and shape is a
    (compound) Shape object. Installs the corresponding
    compound shape.
To use a shape, you have to issue the command shape(shapename).

call: register_shape("turtle.gif")
--or: register_shape("tri", ((0,0), (10,10), (-10,10)))

Example (for a TurtleScreen instance named screen):
>>> screen.register_shape("triangle", ((5,-3),(0,5),(-5,-3)))

Nrzr6z;Bad arguments for register_shape.
Use  help(register_shape)ry)r|r}rr�rvr�r�r�)r��namerks   r�r$�TurtleScreen.register_shapeMso��.�=��z�z�|�$�$�V�,�,��g�t�{�{�4�'8�9��)�+H�J�J�
��u�
%�
%��)�U�+�E�"���T�r�c�,�[U5S:XaUSn[U[5(a5URU5(dUS:XaU$[	S[U5-5eUup#nURS:Xa$X#U4Vs/sHn[SU-5PM snup#nSUs=::aS::a"O OSUs=::aS::aO OSUs=::aS::dO [	S	[U5-5eS
X#U4-$![
[4a [	S[U5-5ef=fs snf)z�Return color string corresponding to args.

Argument may be a string or a tuple of three
numbers corresponding to actual colormode,
i.e. in the range 0<=n<=colormode.

If the argument doesn't represent a color,
an error is raised.
r�rr�zbad color string: %s�bad color arguments: %sr���o@��bad color sequence: %s�
#%02x%02x%02x)	rGr�rr�rv�	TypeErrorr�r��round)r�r:r��g�br�s      r��	_colorstr�TurtleScreen._colorstrps���u�:��?��!�H�E��e�S�!�!��"�"�5�)�)�U�b�[���)�*@�3�u�:�*M�N�N�	N��G�A�!��?�?�c�!�01�a�y�9�y�!�u�U�1�W�~�y�9�G�A�!��a��3��Q�!�]�s�]��a��3��%�&>��U��&K�L�L��!���*�*��
�:�&�	N�%�&?�#�e�*�&L�M�M�	N��:s� C&�;D�&(Dc	�X^�URS5(dU$[U5S:Xa"SVs/sHn[XUS-S5PM nnOB[U5S:Xa%USSVs/sHnS[XS5-PM nnO[SU-5e[	U4S	jU55$s snfs snf)
Nr�r�)r�r�r�r%r�r�r�zbad colorstring: %sc3�F># �UHoTR-S-v� M g7f)r�N)r�)�.0r�r�s  �r��	<genexpr>�&TurtleScreen._color.<locals>.<genexpr>�s����9�b�����(��,�b�s�!)r�rGr�rvr�)r��cstrrHr�r�s`    r��_color�TurtleScreen._color�s�������s�#�#��K��t�9��>�09�:�	�1�#�d�Q�q�S�k�2�&�	�B�:�B�
��Y�!�^�/3�A�B�x�8�x�!�"�S���"�%�%�x�B�8�B�%�&;�d�&B�C�C��9�b�9�9�9��;��8s�B"�!B'c�~�UcUR$US:Xa[U5UlgUS:Xa[U5Ulgg)a)Return the colormode or set it to 1.0 or 255.

Optional argument:
cmode -- one of the values 1.0 or 255

r, g, b values of colortriples have to be in range 0..cmode.

Example (for a TurtleScreen instance named screen):
>>> screen.colormode()
1.0
>>> screen.colormode(255)
>>> pencolor(240,160,80)
Nr�r�)r�r�r�)r��cmodes  r�r�TurtleScreen.colormode�s<���=��?�?�"��C�<�#�E�l�D�O�
�c�\�!�%�j�D�O�r�c��URH.nURUR5 UR5 M0 g)z�Reset all Turtles on the Screen to their initial state.

No argument.

Example (for a TurtleScreen instance named screen):
>>> screen.reset()
N)r��_setmoder�ra)r�r�s  r�ra�TurtleScreen.reset�s+���m�m�F��O�O�D�J�J�'��L�L�N�$r�c��UR$)z�Return the list of turtles on the screen.

Example (for a TurtleScreen instance named screen):
>>> screen.turtles()
[<turtle.Turtle object at 0x00E11FB0>]
)r�r�s r�r,�TurtleScreen.turtles�s���}�}�r�c��U(aURU5nOSnURU5nUbURU5nU$)aOSet or return backgroundcolor of the TurtleScreen.

Arguments (if given): a color string or three numbers
in the range 0..colormode or a 3-tuple of such numbers.

Example (for a TurtleScreen instance named screen):
>>> screen.bgcolor("orange")
>>> screen.bgcolor()
'orange'
>>> screen.bgcolor(0.5,0,0.5)
>>> screen.bgcolor()
'#800080'
N)r�r�r�r�rhr:s   r�r�TurtleScreen.bgcolor�sA����N�N�4�(�E��E��
�
�e�$�����K�K��&�E��r�c��UcUR$[U5UlSUlUb[U5UlUR(aUR	5 gg)a�Turns turtle animation on/off and set delay for update drawings.

Optional arguments:
n -- nonnegative  integer
delay -- nonnegative  integer

If n is given, only each n-th regular screen update is really performed.
(Can be used to accelerate the drawing of complex graphics.)
Second arguments sets delay value (see RawTurtle.delay())

Example (for a TurtleScreen instance named screen):
>>> screen.tracer(8, 25)
>>> dist = 2
>>> for i in range(200):
...     fd(dist)
...     rt(90)
...     dist += 2
Nr)r�r�r�r�r-)r��nrs   r�r+�TurtleScreen.tracer�sM��&
�9��=�=� ��A���
������"�5�z�D���=�=��K�K�M�r�c�B�UcUR$[U5Ulg)z�Return or set the drawing delay in milliseconds.

Optional argument:
delay -- positive integer

Example (for a TurtleScreen instance named screen):
>>> screen.delay(15)
>>> screen.delay()
15
N)r�r�r�s  r�r�TurtleScreen.delay�s!���=��#�#�#��u�:��r�c���[R(dS[l[eURS:�a5U=RS-
slU=RUR-slgg)zIncrement update counter.Trr�N)r	�_RUNNINGr�r�r�r�s r��
_incrementudc�TurtleScreen._incrementudcsP���$�$�$(�L�!����=�=�1�����1�$�����4�=�=�0��r�c���URnSUlUR5H#nUR5 UR5 M% XlUR	5 g)z'Perform a TurtleScreen update.
        TN)r�r,�_update_data�_drawturtler�)r��tracingr1s   r�r-�TurtleScreen.updatesG���-�-����
�����A�
�N�N��
�M�M�O� � �
����r�c�(�UR5S$)zzReturn the width of the turtle window.

Example (for a TurtleScreen instance named screen):
>>> screen.window_width()
640
r�r_r�s r�r/�TurtleScreen.window_width���� � �"�1�%�%r�c�(�UR5S$)z|Return the height of the turtle window.

Example (for a TurtleScreen instance named screen):
>>> screen.window_height()
480
r�r!r�s r�r.�TurtleScreen.window_heightr#r�c��UR$)z�Return the Canvas of this TurtleScreen.

No argument.

Example (for a Screen instance named screen):
>>> cv = screen.getcanvas()
>>> cv
<turtle.ScrolledCanvas instance at 0x010742D8>
)r�r�s r�r�TurtleScreen.getcanvas(s
���w�w�r�c�H�[URR55$)z�Return a list of names of all currently available turtle shapes.

No argument.

Example (for a TurtleScreen instance named screen):
>>> screen.getshapes()
['arrow', 'blank', 'circle', ... , 'turtle']
)�sortedr�rr�s r�r�TurtleScreen.getshapes4s���d�l�l�'�'�)�*�*r�c�(�URXU5 g)a�Bind fun to mouse-click event on canvas.

Arguments:
fun -- a function with two arguments, the coordinates of the
       clicked point on the canvas.
btn -- the number of the mouse-button, defaults to 1

Example (for a TurtleScreen instance named screen)

>>> screen.onclick(goto)
>>> # Subsequently clicking into the TurtleScreen will
>>> # make the turtle move to the clicked point.
>>> screen.onclick(None)
N)r�r�rr�rs    r�rS�TurtleScreen.onclick?s��	
���C�c�*r�c���Uc+X R;aURRU5 O*X R;aURRU5 URX5 g)a�Bind fun to key-release event of key.

Arguments:
fun -- a function with no arguments
key -- a string: key (e.g. "a") or key-symbol (e.g. "space")

In order to be able to register key-events, TurtleScreen
must have focus. (See method listen.)

Example (for a TurtleScreen instance named screen):

>>> def f():
...     fd(50)
...     lt(60)
...
>>> screen.onkey(f, "Up")
>>> screen.listen()

Subsequently the turtle can be moved by repeatedly pressing
the up-arrow key, consequently drawing a hexagon

N)r��remover�r$�r�rr�s   r�r�TurtleScreen.onkeyPsP��.�;��j�j� ��
�
�!�!�#�&��
�
�
�
"��J�J���c�"����3�$r�c���Uc+X R;aURRU5 O-Ub*X R;aURRU5 URX5 g)a�Bind fun to key-press event of key if key is given,
or to any key-press-event if no key is given.

Arguments:
fun -- a function with no arguments
key -- a string: key (e.g. "a") or key-symbol (e.g. "space")

In order to be able to register key-events, TurtleScreen
must have focus. (See method listen.)

Example (for a TurtleScreen instance named screen
and a Turtle instance named turtle):

>>> def f():
...     fd(50)
...     lt(60)
...
>>> screen.onkeypress(f, "Up")
>>> screen.listen()

Subsequently the turtle can be moved by repeatedly pressing
the up-arrow key, or by keeping pressed the up-arrow key.
consequently drawing a hexagon.
N)r�r/r�r)r0s   r�r �TurtleScreen.onkeypressnsT��2�;��j�j� ��
�
�!�!�#�&��
�_��J�J�!6��J�J���c�"�����"r�c�$�UR5 g)z�Set focus on TurtleScreen (in order to collect key-events)

No arguments.
Dummy arguments are provided in order
to be able to pass listen to the onclick method.

Example (for a TurtleScreen instance named screen):
>>> screen.listen()
N)r,)r��xdummy�ydummys   r�r�TurtleScreen.listen�s
��	
���r�c�&�URX5 g)aInstall a timer, which calls fun after t milliseconds.

Arguments:
fun -- a function with no arguments.
t -- a number >= 0

Example (for a TurtleScreen instance named screen):

>>> running = True
>>> def f():
...     if running:
...             fd(50)
...             lt(60)
...             screen.ontimer(f, 250)
...
>>> f()   # makes the turtle marching around
>>> running = False
N)r2r0s   r�r#�TurtleScreen.ontimer�s��&	
�
�
�c�r�c���UcUR$XR;aURU5URU'URURURU5 Xlg)a�Set background image or return name of current backgroundimage.

Optional argument:
picname -- a string, name of a gif-file or "nopic".

If picname is a filename, set the corresponding image as background.
If picname is "nopic", delete backgroundimage, if present.
If picname is None, return the filename of the current backgroundimage.

Example (for a TurtleScreen instance named screen):
>>> screen.bgpic()
'nopic'
>>> screen.bgpic("landscape.gif")
>>> screen.bgpic()
'landscape.gif'
N)r�r�r�r@r�)r��picnames  r�r�TurtleScreen.bgpic�sT��"�?��?�?�"��,�,�&�$(�K�K��$8�D�L�L��!����t�{�{�D�L�L��$9�:�!�r�c�&�URXU5$)avResize the canvas the turtles are drawing on.

Optional arguments:
canvwidth -- positive integer, new width of canvas in pixels
canvheight --  positive integer, new height of canvas in pixels
bg -- colorstring or color-tuple, new backgroundcolor
If no arguments are given, return current (canvaswidth, canvasheight)

Do not alter the drawing window. To observe hidden parts of
the canvas use the scrollbars. (Can make visible those parts
of a drawing, which were outside the canvas before!)

Example (for a Turtle instance named turtle):
>>> turtle.screensize(2000,1500)
>>> # e.g. to search for an erroneously escaped turtle ;-)
)r\rWs    r�r&�TurtleScreen.screensize�s��"�|�|�I�2�6�6r�)
r�r�r�r�r�r�r�r�r�r�r�r�r�r��NNrr�rr|)'r�r�r�r�r�rr�r;r6rr(r$r�rrrar,rr+rrr-r/r.rrrSrr rr#rr&r"r%rrr!r�r�r�r�r	r	�s�����H� $�V����,�D��M�&F�P�< �D%�N!#�F+�6	:�)�*
���.�8
&�1�	�&�&�
�	+�+�"%�<#�@
��*"�07�&�M��K��K��H��Lr�r	c�n�\rSrSrSr\"SS5\"SS5\"SS5S.rSrSrSr	\4S	jr
S
rS,SjrS
r
S-SjrSrSrSrSrS.SS.S\SS4SjjjrSrSrSrSrSrSrSrS,SjrS rS!rS"rS,S#jr S,S$jr!S%r"S&r#S.S'jr$S/S(jr%S.S)jr&S,S*jr'\r(\r)\r*\r+\r,\r-\r.\r/\#r0S+r1g)0�
TNavigatori�zJNavigation part of the RawTurtle.
Implements methods for turtle movement.
r��)r�r�r�r�rr�c���URUlURUlXlSUlUR
5 SUlURU5 [RU5 gr�)
�DEFAULT_ANGLEOFFSET�_angleOffset�DEFAULT_ANGLEORIENT�_angleOrientr��
undobufferr;rrBrar�s  r�r;�TNavigator.__init__�sT�� �4�4��� �4�4����
����������
��
�
�d������r�c�j�[SS5Ul[RURUlg)zHreset turtle to its initial values

Will be overwritten by parent class
rCN)r�	_positionrB�START_ORIENTATIONr��_orientr�s r�ra�TNavigator.reset�s'��
�s�C����"�4�4�T�Z�Z�@��r�Nc��UcUR$US;agXlUS;aSUlSUlgURS-UlSUlg)z:Set turtle-mode to 'standard', 'world' or 'logo'.
        Nr�)r�r�rr��@r)r�rFrH�_fullcircler�s  r�r�TNavigator._setmode�sX���<��:�:���4�4���
��(�(� !�D�� !�D�� $� 0� 0�� 3�D�� "�D�r�c�h�XlSU-UlURS:XaSUlgUS-Ulg)z+Helper function for degrees() and radians()ihr�rrQN)rR�
_degreesPerAUr�rF�r��
fullcircles  r��_setDegreesPerAU�TNavigator._setDegreesPerAU
s4��%�� ��^����:�:��#� !�D�� *�2�
�D�r�c�&�URU5 g)a�Set angle measurement units to degrees.

Optional argument:
fullcircle -  a number

Set angle measurement units, i. e. set number
of 'degrees' for a full circle. Default value is
360 degrees.

Example (for a Turtle instance named turtle):
>>> turtle.left(90)
>>> turtle.heading()
90

Change angle measurement unit to grad (also known as gon,
grade, or gradian and equals 1/100-th of the right angle.)
>>> turtle.degrees(400.0)
>>> turtle.heading()
100

N)rXrVs  r�r;�TNavigator.degreess��,	
���j�)r�c�B�UR[R5 g)z�Set the angle measurement units to radians.

No arguments.

Example (for a Turtle instance named turtle):
>>> turtle.heading()
90
>>> turtle.radians()
>>> turtle.heading()
1.5707963267948966
N)rXr��taur�s r�r_�TNavigator.radians.s��	
���d�h�h�'r�c�^�URURU--nURU5 g)z)move turtle forward by specified distanceN)rLrN�_goto)r�r<�endes   r��_go�TNavigator._go<s%���~�~����x� 7�7���
�
�4�r�c�`�XR-nURRU5Ulg)z=Turn turtle counterclockwise by specified angle if angle > 0.N)rUrNr��r�r�s  r��_rotate�TNavigator._rotateAs&��
�#�#�#���|�|�*�*�5�1��r�c��Xlg)zmove turtle to position end.N�rL)r��ends  r�r`�TNavigator._gotoFs���r�F��fill_gaprm�returnc�t�UbUOURSnUbUOURSn[XE5Ulg)zHTo be overwritten by child class RawTurtle.
Includes no TPen references.Nrr�)rLr)r�r�r�rm�new_x�new_ys      r�rs�TNavigator.teleportJs8���]�����q�(9���]�����q�(9���u�,��r�c�&�URU5 g)a�Move the turtle forward by the specified distance.

Aliases: forward | fd

Argument:
distance -- a number (integer or float)

Move the turtle forward by the specified distance, in the direction
the turtle is headed.

Example (for a Turtle instance named turtle):
>>> turtle.position()
(0.00, 0.00)
>>> turtle.forward(25)
>>> turtle.position()
(25.00,0.00)
>>> turtle.forward(-75)
>>> turtle.position()
(-50.00,0.00)
N�rb�r�r<s  r�rD�TNavigator.forwardQs��*	
����r�c�(�URU*5 g)aoMove the turtle backward by distance.

Aliases: back | backward | bk

Argument:
distance -- a number

Move the turtle backward by distance, opposite to the direction the
turtle is headed. Do not change the turtle's heading.

Example (for a Turtle instance named turtle):
>>> turtle.position()
(0.00, 0.00)
>>> turtle.backward(30)
>>> turtle.position()
(-30.00, 0.00)
Nrtrus  r�r0�TNavigator.backhs��$	
���(��r�c�(�URU*5 g)a�Turn turtle right by angle units.

Aliases: right | rt

Argument:
angle -- a number (integer or float)

Turn turtle right by angle units. (Units are by default degrees,
but can be set via the degrees() and radians() functions.)
Angle orientation depends on mode. (See this.)

Example (for a Turtle instance named turtle):
>>> turtle.heading()
22.0
>>> turtle.right(45)
>>> turtle.heading()
337.0
N�rfres  r�r`�TNavigator.right|s��&	
���e�V�r�c�&�URU5 g)a�Turn turtle left by angle units.

Aliases: left | lt

Argument:
angle -- a number (integer or float)

Turn turtle left by angle units. (Units are by default degrees,
but can be set via the degrees() and radians() functions.)
Angle orientation depends on mode. (See this.)

Example (for a Turtle instance named turtle):
>>> turtle.heading()
22.0
>>> turtle.left(45)
>>> turtle.heading()
67.0
Nrzres  r�rQ�TNavigator.left�s��&	
���U�r�c��UR$)z�Return the turtle's current location (x,y), as a Vec2D-vector.

Aliases: pos | position

No arguments.

Example (for a Turtle instance named turtle):
>>> turtle.pos()
(0.00, 240.00)
rir�s r�r\�TNavigator.pos�s���~�~�r�c� �URS$)z�Return the turtle's x coordinate.

No arguments.

Example (for a Turtle instance named turtle):
>>> reset()
>>> turtle.left(60)
>>> turtle.forward(100)
>>> print(turtle.xcor())
50.0
rrir�s r�r}�TNavigator.xcor�����~�~�a� � r�c� �URS$)z�Return the turtle's y coordinate
---
No arguments.

Example (for a Turtle instance named turtle):
>>> reset()
>>> turtle.left(60)
>>> turtle.forward(100)
>>> print(turtle.ycor())
86.6025403784
r�rir�s r�r~�TNavigator.ycor�r�r�c�n�UcUR[U65 gUR[X55 g)a�Move turtle to an absolute position.

Aliases: setpos | setposition | goto:

Arguments:
x -- a number      or     a pair/vector of numbers
y -- a number             None

call: goto(x, y)         # two coordinates
--or: goto((x, y))       # a pair (tuple) of coordinates
--or: goto(vec)          # e.g. as returned by pos()

Move turtle to an absolute position. If the pen is down,
a line will be drawn. The turtle's orientation does not change.

Example (for a Turtle instance named turtle):
>>> tp = turtle.pos()
>>> tp
(0.00, 0.00)
>>> turtle.setpos(60,30)
>>> turtle.pos()
(60.00,30.00)
>>> turtle.setpos((20,80))
>>> turtle.pos()
(20.00,80.00)
>>> turtle.setpos(tp)
>>> turtle.pos()
(0.00,0.00)
N)r`r)r�r�r�s   r�rJ�TNavigator.goto�s)��<
�9��J�J�u�a�y�!��J�J�u�Q�{�#r�c�J�URSS5 URS5 g)z�Move turtle to the origin - coordinates (0,0).

No arguments.

Move turtle to the origin - coordinates (0,0) and set its
heading to its start-orientation (which depends on mode).

Example (for a Turtle instance named turtle):
>>> turtle.home()
rN)rJrer�s r�rM�TNavigator.home�s��	
�	�	�!�Q������r�c�R�UR[XRS55 g)a-Set the turtle's first coordinate to x

Argument:
x -- a number (integer or float)

Set the turtle's first coordinate to x, leave second coordinate
unchanged.

Example (for a Turtle instance named turtle):
>>> turtle.position()
(0.00, 240.00)
>>> turtle.setx(10)
>>> turtle.position()
(10.00, 240.00)
r�N�r`rrL)r�r�s  r�ri�TNavigator.setxs�� 	
�
�
�5��N�N�1�-�.�/r�c�T�UR[URSU55 g)a/Set the turtle's second coordinate to y

Argument:
y -- a number (integer or float)

Set the turtle's first coordinate to x, second coordinate remains
unchanged.

Example (for a Turtle instance named turtle):
>>> turtle.position()
(0.00, 40.00)
>>> turtle.sety(-10)
>>> turtle.position()
(0.00, -10.00)
rNr�)r�r�s  r�rj�TNavigator.setys �� 	
�
�
�5�����*�A�.�/r�c��Ub[X5n[U[5(aUnO?[U[5(a	[U6nO![U[5(aURn[WUR-
5$)acReturn the distance from the turtle to (x,y) in turtle step units.

Arguments:
x -- a number   or  a pair/vector of numbers   or   a turtle instance
y -- a number       None                            None

call: distance(x, y)         # two coordinates
--or: distance((x, y))       # a pair (tuple) of coordinates
--or: distance(vec)          # e.g. as returned by pos()
--or: distance(mypen)        # where mypen is another turtle

Example (for a Turtle instance named turtle):
>>> turtle.pos()
(0.00, 0.00)
>>> turtle.distance(30,40)
50.0
>>> pen = Turtle()
>>> pen.forward(77)
>>> turtle.distance(pen)
77.0
)rr�r�rBrL�abs)r�r�r�r\s    r�r<�TNavigator.distance%sd��,
�=���+�C��a�����C�
��5�
!�
!���)�C�
��:�
&�
&��+�+�C��3����'�(�(r�c���Ub[X5n[U[5(aUnO?[U[5(a	[U6nO![U[5(aURnWUR-
up[[R"[R"X!55S5S-nX@R-nURURU--UR-$)a�Return the angle of the line from the turtle's position to (x, y).

Arguments:
x -- a number   or  a pair/vector of numbers   or   a turtle instance
y -- a number       None                            None

call: distance(x, y)         # two coordinates
--or: distance((x, y))       # a pair (tuple) of coordinates
--or: distance(vec)          # e.g. as returned by pos()
--or: distance(mypen)        # where mypen is another turtle

Return the angle, between the line from turtle-position to position
specified by x, y and the turtle's start orientation. (Depends on
modes - "standard" or "logo")

Example (for a Turtle instance named turtle):
>>> turtle.pos()
(10.00, 10.00)
>>> turtle.towards(0,0)
225.0
r���v@)
rr�r�rBrLr�r�r;�atan2rUrFrHrR)r�r�r�r\�results     r�rv�TNavigator.towardsEs���,
�=���+�C��a�����C�
��5�
!�
!���)�C�
��:�
&�
&��+�+�C��T�^�^�#����t�|�|�D�J�J�q�$4�5�r�:�U�B���$�$�$���!�!�D�$5�$5�f�$<�<��@P�@P�P�Pr�c��URup[[R"[R"X!55S5S-nX0R
-nURURU--UR-$)z�Return the turtle's current heading.

No arguments.

Example (for a Turtle instance named turtle):
>>> turtle.left(67)
>>> turtle.heading()
67.0
r�r�)	rNr�r�r;r�rUrFrHrR)r�r�r�r�s    r�rK�TNavigator.headinghsg���|�|����t�|�|�D�J�J�q�$4�5�r�:�U�B���$�$�$���!�!�D�$5�$5�f�$<�<��@P�@P�P�Pr�c��XR5-
UR-nURnX#S--U-US--
nURU5 g)aSet the orientation of the turtle to to_angle.

Aliases:  setheading | seth

Argument:
to_angle -- a number (integer or float)

Set the orientation of the turtle to to_angle.
Here are some common directions in degrees:

 standard - mode:          logo-mode:
-------------------|--------------------
   0 - east                0 - north
  90 - north              90 - east
 180 - west              180 - south
 270 - south             270 - west

Example (for a Turtle instance named turtle):
>>> turtle.setheading(90)
>>> turtle.heading()
90
�@N)rKrHrRrf)r��to_angler��fulls    r�re�TNavigator.setheadingwsM��.�L�L�N�*�D�,=�,=�=�������B�w���$�t�B�w�.�����U�r�c	��UR(a-URRS/5 SURlUR5nUcURnUcB[U5UR-nS[
[S[U5S--S5U-5-nSU-U-nS	U-nS
U-[R"[R"U5UR-5-nUS:aU*U*U*pvnUR5n	UR5n
US:XaURSS5 OURS5 URU5 [U5HGnURU5 UR!U5 URS5 URU5 MI URU*5 US:XaURX�5 URU5 UR(aSURlgg)
a2Draw a circle with given radius.

Arguments:
radius -- a number
extent (optional) -- a number
steps (optional) -- an integer

Draw a circle with given radius. The center is radius units left
of the turtle; extent - an angle - determines which part of the
circle is drawn. If extent is not given, draw the entire circle.
If extent is not a full circle, one endpoint of the arc is the
current pen position. Draw the arc in counterclockwise direction
if radius is positive, otherwise in clockwise direction. Finally
the direction of the turtle is changed by the amount of extent.

As the circle is approximated by an inscribed regular polygon,
steps determines the number of steps to use. If not given,
it will be calculated automatically. Maybe used to draw regular
polygons.

call: circle(radius)                  # full circle
--or: circle(radius, extent)          # arc
--or: circle(radius, extent, steps)
--or: circle(radius, steps=6)         # 6-sided polygon

Example (for a Turtle instance named turtle):
>>> turtle.circle(50)
>>> turtle.circle(120, 180)  # semicircle
�seqTNr��g@g�M@r�r�r�rF)rIr�r�rprRr�r��minr�r�r_rU�_tracerr�rfrFrb)r��radius�extent�stepsrp�fracr��w2�l�tr�dlrHs            r�r5�TNavigator.circle�s���<�?�?��O�O� � �%��)�'+�D�O�O�$��
�
����>��%�%�F��=��v�;�t�/�/�/�D��c�#�b��V��S��0�$�7��<�=�=�E��&�L�5� ��
�1�W���&�L�4�8�8�D�L�L��$4�T�5G�5G�$G�H�H���A�:��r�A�2��s�"�A�
�\�\�^��
�[�[�]���A�:��L�L��A���J�J�q�M����R���u��A��J�J�u���H�H�Q�K��J�J�q�M��L�L��O�	�
	
���b�S���A�:��L�L�� ��
�
�5���?�?�',�D�O�O�$�r�c��g�z/dummy method - to be overwritten by child classNr�)r�r�s  r�rp�TNavigator.speed���r�c��gr�r�)r��ar�s   r�r��TNavigator._tracer�r�r�c��gr�r�)r�rs  r�r��TNavigator._delay�r�r�)rFrHrUrRr�rNrLrIr�)r�r?r@)2r�r�r�r�r�rrM�DEFAULT_MODErErGr;rarrXr;r_rbrfr`�boolrsrDr0r`rQr\r}r~rJrMrirjr<rvrKrer5rpr�r�rAr4r1rcrRr]rfrgrdr�r�r�r�rBrB�s����#�s�O��#�s�O��#�s�O�'���L�����(��A�
#�.�*�0(��
2�
�-�5�-�D�-�T�-��.�(�*�*�!�!�!$�F�0�$0�$)�@!Q�F
Q��8=-�B>�>�>�
�B�	
�B��H�	�B�	
�B��H�
�F��K��Dr�rBc��\rSrSrSr\S4Sjr\S\S4SjrS S	jrS S
jr	Sr
SrS
rS Sjr
SrSrSrS!SS.S\SS4SjjjrSrSrSrS SjrS"SjrS#SjrSrSr\	r\
r\
r\r\r\r \r!Sr"g)$�TPeni�z>Drawing part of the RawTurtle.
Implements drawing properties.
rbc�H�XlSUl[RU5 gr�)�_resizemoderIr��_reset)r�rbs  r�r;�
TPen.__init__�s��%��������D�r�rXrBc��SUlSUlXlX lSUlSUlSUlSUlSUlSUl	SUl
g)Nr�Tr�)r�r�rC)r�rCrCr�)�_pensize�_shown�	_pencolor�
_fillcolor�_drawing�_speed�_stretchfactor�_shearfactor�_tilt�_shapetrafo�
_outlinewidth)r�rXrBs   r�r��TPen._reset�sO����
����!��#����
����&��������
�+�����r�Nc�n�UcUR$UR5nUS;aURUS9 gg)a�Set resizemode to one of the values: "auto", "user", "noresize".

(Optional) Argument:
rmode -- one of the strings "auto", "user", "noresize"

Different resizemodes have the following effects:
  - "auto" adapts the appearance of the turtle
           corresponding to the value of pensize.
  - "user" adapts the appearance of the turtle according to the
           values of stretchfactor and outlinewidth (outline),
           which are set by shapesize()
  - "noresize" no adaption of the turtle's appearance takes place.
If no argument is given, return current resizemode.
resizemode("user") is called by a call of shapesize with arguments.


Examples (for a Turtle instance named turtle):
>>> turtle.resizemode("noresize")
>>> turtle.resizemode()
'noresize'
N)�auto�userr��rb)r�r|rW)r��rmodes  r�rb�TPen.resizemode�s<��,�=��#�#�#����
���0�0��H�H��H�&�1r�c�@�UcUR$URUS9 g)a�Set or return the line thickness.

Aliases:  pensize | width

Argument:
width -- positive number

Set the line thickness to width or return it. If resizemode is set
to "auto" and turtleshape is a polygon, that polygon is drawn with
the same line thickness. If no argument is given, current pensize
is returned.

Example (for a Turtle instance named turtle):
>>> turtle.pensize()
1
>>> turtle.pensize(10)   # from here on lines of width 10 are drawn
N)rZ)r�rW)r�r{s  r�rZ�TPen.pensizes!��$�=��=�=� ������r�c�F�UR(dgURSS9 g)z�Pull the pen up -- no drawing when moving.

Aliases: penup | pu | up

No argument

Example (for a Turtle instance named turtle):
>>> turtle.penup()
NF�rY�r�rWr�s r�r[�
TPen.penup0s���}�}�������r�c�F�UR(agURSS9 g)z�Pull the pen down -- drawing when moving.

Aliases: pendown | pd | down

No argument.

Example (for a Turtle instance named turtle):
>>> turtle.pendown()
NTr�r�r�s r�rY�TPen.pendown>s���=�=�������r�c��UR$)z�Return True if pen is down, False if it's up.

No argument.

Example (for a Turtle instance named turtle):
>>> turtle.penup()
>>> turtle.isdown()
False
>>> turtle.pendown()
>>> turtle.isdown()
True
)r�r�s r�rO�TPen.isdownLs���}�}�r�c��SSSSSS.nUcUR$X;aX!nO'SUs=:aS	:aO O[[U55nOSnURUS
9 g)aReturn or set the turtle's speed.

Optional argument:
speed -- an integer in the range 0..10 or a speedstring (see below)

Set the turtle's speed to an integer value in the range 0 .. 10.
If no argument is given: return current speed.

If input is a number greater than 10 or smaller than 0.5,
speed is set to 0.
Speedstrings  are mapped to speedvalues in the following way:
    'fastest' :  0
    'fast'    :  10
    'normal'  :  6
    'slow'    :  3
    'slowest' :  1
speeds from 1 to 10 enforce increasingly faster animation of
line drawing and turtle turning.

Attention:
speed = 0 : *no* animation takes place. forward/back makes turtle jump
and likewise left/right make the turtle turn instantly.

Example (for a Turtle instance named turtle):
>>> turtle.speed(3)
rr�r�r�r�)�fastest�fast�normal�slow�slowestNr�g%@)rp)r�r�r�rW)r�rp�speedss   r�rp�
TPen.speed[s]��6�b�1�Q�!�M���=��;�;���?��M�E�
�5�
�4�
���e��%�E��E����u��r�c�8�U(a^[U5nUS:XaUS=p4OUS:XaUup4O	US:XaU=p4URW5nURW5nURX4S9 gURUR5URUR
54$)a�Return or set the pencolor and fillcolor.

Arguments:
Several input formats are allowed.
They use 0, 1, 2, or 3 arguments as follows:

color()
    Return the current pencolor and the current fillcolor
    as a pair of color specification strings as are returned
    by pencolor and fillcolor.
color(colorstring), color((r,g,b)), color(r,g,b)
    inputs as in pencolor, set both, fillcolor and pencolor,
    to the given value.
color(colorstring1, colorstring2),
color((r1,g1,b1), (r2,g2,b2))
    equivalent to pencolor(colorstring1) and fillcolor(colorstring2)
    and analogously, if the other input format is used.

If turtleshape is a polygon, outline and interior of that polygon
is drawn with the newly set colors.
For more info see: pencolor, fillcolor

Example (for a Turtle instance named turtle):
>>> turtle.color('red', 'green')
>>> turtle.color()
('red', 'green')
>>> colormode(255)
>>> color((40, 80, 120), (160, 200, 240))
>>> color()
('#285078', '#a0c8f0')
r�rr%r�)rXrBN)rGr�rWrr�r�)r�rhr��pcolor�fcolors     r�r:�
TPen.color�s���@��D�	�A��A�v�"&�q�'�)����a��!%�����a��"&�&���^�^�F�+�F��^�^�F�+�F��H�H�f�H�7��;�;�t�~�~�.����D�O�O�0L�L�Lr�c��U(a1URU5nX R:XagURUS9 gURUR5$)a�Return or set the pencolor.

Arguments:
Four input formats are allowed:
  - pencolor()
    Return the current pencolor as color specification string,
    possibly in hex-number format (see example).
    May be used as input to another color/pencolor/fillcolor call.
  - pencolor(colorstring)
    s is a Tk color specification string, such as "red" or "yellow"
  - pencolor((r, g, b))
    *a tuple* of r, g, and b, which represent, an RGB color,
    and each of r, g, and b are in the range 0..colormode,
    where colormode is either 1.0 or 255
  - pencolor(r, g, b)
    r, g, and b represent an RGB color, and each of r, g, and b
    are in the range 0..colormode

If turtleshape is a polygon, the outline of that polygon is drawn
with the newly set pencolor.

Example (for a Turtle instance named turtle):
>>> turtle.pencolor('brown')
>>> tup = (0.2, 0.8, 0.55)
>>> turtle.pencolor(tup)
>>> turtle.pencolor()
'#33cc8c'
N)rX)r�r�rWrrs   r�rX�
TPen.pencolor�sC��:��N�N�4�(�E����&���H�H�e�H�$��;�;�t�~�~�.�.r�c��U(a1URU5nX R:XagURUS9 gURUR5$)a�Return or set the fillcolor.

Arguments:
Four input formats are allowed:
  - fillcolor()
    Return the current fillcolor as color specification string,
    possibly in hex-number format (see example).
    May be used as input to another color/pencolor/fillcolor call.
  - fillcolor(colorstring)
    s is a Tk color specification string, such as "red" or "yellow"
  - fillcolor((r, g, b))
    *a tuple* of r, g, and b, which represent, an RGB color,
    and each of r, g, and b are in the range 0..colormode,
    where colormode is either 1.0 or 255
  - fillcolor(r, g, b)
    r, g, and b represent an RGB color, and each of r, g, and b
    are in the range 0..colormode

If turtleshape is a polygon, the interior of that polygon is drawn
with the newly set fillcolor.

Example (for a Turtle instance named turtle):
>>> turtle.fillcolor('violet')
>>> col = turtle.pencolor()
>>> turtle.fillcolor(col)
>>> turtle.fillcolor(0, .5, 0)
N)rB)r�r�rWrrs   r�rB�TPen.fillcolor�sC��8��N�N�4�(�E����'���H�H�u�H�%��;�;�t���/�/r�Frlrmrnc�n�UR5nU(aURSS9 URUS9 g)zOTo be overwritten by child class RawTurtle.
Includes no TNavigator references.
Fr�N)rOrW)r�r�r�rmrYs     r�rs�
TPen.teleport�s.���+�+�-����H�H�U�H�#������!r�c�"�URSS9 g)z�Makes the turtle visible.

Aliases: showturtle | st

No argument.

Example (for a Turtle instance named turtle):
>>> turtle.hideturtle()
>>> turtle.showturtle()
T��shownN�rWr�s r�ro�TPen.showturtle	s��	
���t��r�c�"�URSS9 g)aMakes the turtle invisible.

Aliases: hideturtle | ht

No argument.

It's a good idea to do this while you're in the
middle of a complicated drawing, because hiding
the turtle speeds up the drawing observably.

Example (for a Turtle instance named turtle):
>>> turtle.hideturtle()
Fr�Nr�r�s r�rL�TPen.hideturtle	s��	
���u��r�c��UR$)z�Return True if the Turtle is shown, False if it's hidden.

No argument.

Example (for a Turtle instance named turtle):
>>> turtle.hideturtle()
>>> print(turtle.isvisible())
False
)r�r�s r�rP�TPen.isvisible	s���{�{�r�c�X�URURURURURUR
URURURURURS.nU(d	U(dU$[U[5(aUnO0nURU5 0nUH	nX6XV'M UR(aURRSU45 SnSU;aURUS:waSnSU;aE[US[ 5(aUR#US45US'URUS:waSnSU;aURUS:waSnU(aUR%5 SU;a
USUlSU;a
USUlSU;a
USUlSU;a:[US[ 5(aUR#US45US'USUlS	U;a
US	UlS
U;a
US
UlSU;a)USn[U[&[(45(aX�4nX�lSU;a
USUlS
U;a
US
Ul	SU;a
USUlSU;a
USUl
SU;dSU;dSU;ayURup�URn[*R,"UR5[*R."UR5p�X�-X�U
-U--U	*U-X�X�--
-4UlUR35 g)aReturn or set the pen's attributes.

Arguments:
    pen -- a dictionary with some or all of the below listed keys.
    **pendict -- one or more keyword-arguments with the below
                 listed keys as keywords.

Return or set the pen's attributes in a 'pen-dictionary'
with the following key/value pairs:
   "shown"      :   True/False
   "pendown"    :   True/False
   "pencolor"   :   color-string or color-tuple
   "fillcolor"  :   color-string or color-tuple
   "pensize"    :   positive number
   "speed"      :   number in range 0..10
   "resizemode" :   "auto" or "user" or "noresize"
   "stretchfactor": (positive number, positive number)
   "shearfactor":   number
   "outline"    :   positive number
   "tilt"       :   number

This dictionary can be used as argument for a subsequent
pen()-call to restore the former pen-state. Moreover one
or more of these attributes can be provided as keyword-arguments.
This can be used to set several pen attributes in one statement.


Examples (for a Turtle instance named turtle):
>>> turtle.pen(fillcolor="black", pencolor="red", pensize=10)
>>> turtle.pen()
{'pensize': 10, 'shown': True, 'resizemode': 'auto', 'outline': 1,
'pencolor': 'red', 'pendown': True, 'fillcolor': 'black',
'stretchfactor': (1,1), 'speed': 3, 'shearfactor': 0.0}
>>> penstate=turtle.pen()
>>> turtle.color("yellow","")
>>> turtle.penup()
>>> turtle.pen()
{'pensize': 10, 'shown': True, 'resizemode': 'auto', 'outline': 1,
'pencolor': 'yellow', 'pendown': False, 'fillcolor': '',
'stretchfactor': (1,1), 'speed': 3, 'shearfactor': 0.0}
>>> p.pen(penstate, fillcolor="green")
>>> p.pen()
{'pensize': 10, 'shown': True, 'resizemode': 'auto', 'outline': 1,
'pencolor': 'red', 'pendown': True, 'fillcolor': 'green',
'stretchfactor': (1,1), 'speed': 3, 'shearfactor': 0.0}
)r�rYrXrBrZrprb�
stretchfactorrnr�rtrWFrYTrXrZrBrprbr�rnr�r�rtN)r�r�r�r�r�r�r�r�r�r�r�r��dictr-rIr�r�r��_newLiner�r�r�r�r�r�r�)r�rW�pendict�_pd�p�_p_bufr��newLine�sf�scx�scy�shf�sa�cas              r�rW�TPen.pen*	s���^#'�+�+�"&�-�-�"&�.�.�"&�/�/�"&�-�-�"&�+�+�"&�"2�"2�"&�"5�"5�"&�"3�"3�"&�"4�"4�"&�*�*����w��J��c�4� � ��A��A�	��������C��(�F�K���?�?��O�O� � �%���1�����>��}�}��)��,�����?��!�J�-��/�/� $����*�
�/?� @��*�
��~�~��:��.�����>��}�}��)��,�����M�M�O���>��i�L�D�M���?��z�]�D�N���>��i�L�D�M��!���!�K�.�%�0�0�!%����;��0A�!B��+����n�D�O��a�<��G�*�D�K��1�� ���D���a���?�#�B��"�s�E�l�+�+��X��"$���A�� !�-� 0�D����>�!"�9��D���a�<��G�*�D�K��Q�;��6��D�J��a��6�Q�;�-�1�2D��*�*�H�C��#�#�C��X�X�d�j�j�)�4�8�8�D�J�J�+?��!$���"�f�r�k�):�!$��R���3�6�k�):� <�D�����r�c��gr�r��r��usePoss  r�r��
TPen._newLine�	r�r�c��gr�r�)r�r��forceds   r�r��TPen._update�	r�r�c��gr�r�rgs  r�r�TPen._color�	r�r�c��gr�r�rgs  r�r��TPen._colorstr�	r�r�)
r�r�r�r�r�r�r�r�r�r�r�r�rIr�r?�T)TF)#r�r�r�r�r�r�r;r�rbrZr[rYrOrpr:rXrBr�rsrorLrPrWr�r�rr�r{rzr^rVr>rqrNr�r�r�r�r�r��s����#'�|�"4��
#�:�.�#�K�0��'�8 �. ��
�$�L,M�\#/�J"0�H"�5�"�D�"�T�"��� 
�{�~>�>�>�>�
�E�	�B�	�B�	�B��D�	�B�	�Br�r�c�$�\rSrSrSrSrSrSrg)�_TurtleImagei�	z6Helper class: Datatype to store Turtle attributes
    c�@�XlSUlURU5 gr�)r�rC�	_setshape)r�r��
shapeIndexs   r�r;�_TurtleImage.__init__�	s������
����z�"r�c�T�URnXlURSs=:XaURUR:Xag URSs=:XaURUR:Xag URS;aUR	UR
5 O4URS:Xa$UR
HnUR	U5 M URURUlURS:XaUR
5UlgURS:Xa.URURSR5UlgURS:Xa=URURVs/sHo2R
5PM snUlggs snf)Nryr6)r6ryr{r�)	r�rrCr�r��_itemr�r8r~)r�rr�r�s    r�r�_TurtleImage._setshape�	sR������$���:�:��F�f�n�n�Z�&@�&F�&F�F��G��:�:��D�F�N�N�:�$>�$D�$D�D��E��:�:�-�-��N�N�4�:�:�&�
�Z�Z�:�
%��
�
�����t�$�#��^�^�J�/�5�5��
��:�:��"��+�+�-�D�J�
�Z�Z�7�
"��,�,�V�^�^�G�-D�-J�-J�K�D�J�
�Z�Z�:�
%�*0�.�.��*D�*J�*J�L�*J�48�,�,�.�*J�L�D�J�&��Ls�F%)rrCr�rN)r�r�r�r�r�r;rr�r�r�r�rr�	s���#�
Lr�rc��\rSrSrSr/rS\S\S\S4SjrSrS	r	S
r
SrSrS
r
SrS=SjrSrSrSrS=SS.S\SS4SjjjrSrS>SjrS?SjrS>SjrS>SjrSrS@SjrSrS rSAS!jrS"rS#r S$r!S%r"S>S&jr#S'r$S(r%S)r&SBS*jr'S+r(S,r)S-r*S>S.jr+S/r,SCS0jr-S1r.S2r/S3r0S4r1S5r2\2r3S>S6jr4SDS7jr5SDS8jr6SDS9jr7S:r8S;r9\r:S<r;g)Eri�	zjAnimation part of the RawTurtle.
Puts RawTurtle upon a TurtleScreen and provides tools for
its animation.
Nrkr�r�c�$�[U[5(aXlO�[U[5(a:U[R
;a[R
R
U5 XlO�[U[[45(ai[R
HnURU:XdMXPl OJ [U5Ul[R
R
UR5 O[SU-5eURn[RXR55 [RU5 URR
U5 UR!5Ul[%XR5UlSUlSUlS=UlUlX@lSUlUR!5UlUR6/UlUR4/Ul/UlX0l[AU5Ul!URE5 g)Nzbad canvas argument %sF)#r��_Screenr�r	r�screensr�rr>r�rvrBr;rr�r�r��drawingLineItemrr��_poly�
_creatingPoly�	_fillitem�	_fillpathr��_hidden_from_screen�currentLineItemrL�currentLiner�
stampItems�_undobuffersizer�rIr�)r��canvasrkr�r�r�s      r�r;�RawTurtle.__init__�	s����f�g�&�&� �K�
���
-�
-��Y�.�.�.��!�!�(�(��0� �K�
���� 8�
9�
9�#�+�+���9�9��&�"(�K��,�
+�6�2����!�!�(�(����5�%�&>��&G�H�H��������D�+�+�-�0��
�
�d�������t�$�%�1�1�3���"�6�1�����
�"���*.�.�������#(�� �%�1�1�3��� �N�N�+����*�*�+��
����-��!�.�1������r�c��[RU5 [RU5 UR	5 UR5 UR
5 g)atDelete the turtle's drawings and restore its default values.

No argument.

Delete the turtle's drawings from the screen, re-center the turtle
and set variables to the default values.

Example (for a Turtle instance named turtle):
>>> turtle.position()
(0.00,-22.00)
>>> turtle.heading()
100.0
>>> turtle.reset()
>>> turtle.position()
(0.00,0.00)
>>> turtle.heading()
0.0
N)rBrar�r��_clearrr�r�s r�ra�RawTurtle.reset	
s<��&	��������D�����
��������r�c�F�UbUS::aSUlg[U5Ulg)aZSet or disable undobuffer.

Argument:
size -- an integer or None

If size is an integer an empty undobuffer of given size is installed.
Size gives the maximum number of turtle-actions that can be undone
by the undo() function.
If size is None, no undobuffer is present.

Example (for a Turtle instance named turtle):
>>> turtle.setundobuffer(42)
Nr)rIr�)r��sizes  r�rh�RawTurtle.setundobuffer"
s!���<�4�1�9�"�D�O�%�d�m�D�Or�c�R�URcgURR5$)z�Return count of entries in the undobuffer.

No argument.

Example (for a Turtle instance named turtle):
>>> while undobufferentries():
...     undo()
r)rIr�r�s r�ry�RawTurtle.undobufferentries5
s$���?�?�"�����*�*�,�,r�c��S=UlUlURHnURR	U5 M  URR5Ul/UlUR(a%URRUR5 UR/UlUR5 URUR5 g)zDelete all of pen's drawingsN)r r!rr�r�r�r#r$r�r�rLr8rhr&r�s  r�r*�RawTurtle._clearB
s���*.�.������J�J�D��K�K����%��#�{�{�6�6�8�������=�=����#�#�D�N�N�3��*�*�+��
��������4�/�/�0r�c�D�UR5 UR5 g)a/Delete the turtle's drawings from the screen. Do not move turtle.

No arguments.

Delete the turtle's drawings from the screen. Do not move turtle.
State and position of the turtle as well as drawings of other
turtles are not affected.

Examples (for a Turtle instance named turtle):
>>> turtle.clear()
N)r*r�r�s r�r6�RawTurtle.clearP
s��	
���
����r�c�.�URR5 URRS:wag[UR5S:�aGURRURURURUR5 ggr�)	r�rr�rGr$r�r#r�r�r�s r�r�RawTurtle._update_data_
so�����!�!�#��;�;�%�%��*���t��� ��"��K�K�!�!�$�"6�"6��8H�8H�"&�.�.�$�-�-�
A�#r�c��URnURS:XagURS:XaLUR5 UR5 UR	5 URUR5 gUR5 URS:Xa8UR5HnUR5 M UR	5 gg)z&Perform a Turtle-data update.
        rNr�)	r�r�rrr�r�r�r�r,)r�r�r1s   r�r��RawTurtle._updateg
s��������?�?�a���
�_�_��
!����������N�N���M�M�&�,�,�-������$�$��)����)�A��M�M�O�*���� �*r�c�8�URRX5$)a�Turns turtle animation on/off and set delay for update drawings.

Optional arguments:
n -- nonnegative  integer
delay -- nonnegative  integer

If n is given, only each n-th regular screen update is really performed.
(Can be used to accelerate the drawing of complex graphics.)
Second arguments sets delay value (see RawTurtle.delay())

Example (for a Turtle instance named turtle):
>>> turtle.tracer(8, 25)
>>> dist = 2
>>> for i in range(200):
...     turtle.fd(dist)
...     turtle.rt(90)
...     dist += 2
)r�r+)r��flagrs   r�r��RawTurtle._tracery
s��&�{�{�!�!�$�.�.r�c�8�URRU5$r�)r�rrgs  r�r�RawTurtle._color�
s���{�{�!�!�$�'�'r�c�8�URRU5$r�)r�r�rgs  r�r��RawTurtle._colorstr�
s���{�{�$�$�T�*�*r�c��[U[5(aU$Uup#nUR
RS:Xa$X#U4Vs/sHn[SU-5PM snup#nSUs=::aS::a"O OSUs=::aS::aO OSUs=::aS::dO [	S[U5-5eSX#U4-$![[4a [	S[U5-5ef=fs snf)z,Convert colortriples to hexstrings.
        r�r�r�rr�r�r�)r�rr�r�rvr�r�r�)r�rhr�r�r�r�s      r��_cc�
RawTurtle._cc�
s����d�C� � ��K�	M��G�A�!��;�;�!�!�S�(�01�a�y�9�y�!�u�U�1�W�~�y�9�G�A�!��a��3��Q�!�]�s�]��a��3��%�&>��T��&J�K�K��!���*�*��
�:�&�	M�%�&?�#�d�)�&K�L�L�	M��:s�B)�C�)(CFrlrmrnc�z�UR5nUR5nU(aURSS9 U(aU(dUR5 UbUOURSnUbUOURSn[Xg5UlURUS9 U(aU(dUR
5 ggg)arInstantly move turtle to an absolute position.

Arguments:
x -- a number      or     None
y -- a number             None
fill_gap -- a boolean     This argument must be specified by name.

call: teleport(x, y)         # two coordinates
--or: teleport(x)            # teleport to x position, keeping y as is
--or: teleport(y=y)          # teleport to y position, keeping x as is
--or: teleport(x, y, fill_gap=True)
                             # teleport but fill the gap in between

Move turtle to an absolute position. Unlike goto(x, y), a line will not
be drawn. The turtle's orientation does not change. If currently
filling, the polygon(s) teleported from will be filled after leaving,
and filling will begin again after teleporting. This can be disabled
with fill_gap=True, which makes the imaginary line traveled during
teleporting act as a fill barrier like in goto(x, y).

Example (for a Turtle instance named turtle):
>>> tp = turtle.pos()
>>> tp
(0.00,0.00)
>>> turtle.teleport(60)
>>> turtle.pos()
(60.00,0.00)
>>> turtle.teleport(y=10)
>>> turtle.pos()
(60.00,10.00)
>>> turtle.teleport(20, 30)
>>> turtle.pos()
(20.00,30.00)
Fr�Nrr�)rOrCrWr?rLrr2)r�r�r�rmrY�was_fillingrprqs        r�rs�RawTurtle.teleport�
s���F�+�+�-���l�l�n����H�H�U�H�#��x��M�M�O��]�����q�(9���]�����q�(9���u�,��������!��x��O�O�� (�;r�c�v�URnURUR5 URnSUlSUl[	U5nXlX lXl[XRR5UlURRU5 URURRRnUS:Xa UR5URlO�US:Xa8URURSR5URlO`US:XaZURURRRVs/sHoQR5PM snURlUR5UlUR#5 U$s snf)z�Create and return a clone of the turtle.

No argument.

Create and return a clone of the turtle with same position, heading
and turtle properties.

Example (for a Turtle instance named mick):
mick = Turtle()
joe = mick.clone()
Nryr6r�r{)r�r�r�r�rrrr�r�r�rCr�rr8r~r�r#r�)r�r�r��q�ttyper�s      r�r9�RawTurtle.clone�
sM�������
�
�d�m�m�$������������T�N������������(>�(>�?��������q�!����t�{�{�5�5�6�<�<���I��#�/�/�1�A�H�H�N�
�g�
�#�0�0�����1H�1N�1N�O�A�H�H�N�
�j�
 �$�n�n�T�[�[�-C�-C�D�J�J�L�J�8<�0�0�2�J�L�A�H�H�N�"�.�.�0���	�	�	�����	Ls�$F6c���UcURR$XRR5;a[	SU-5eURRU5 UR
5 g)agSet turtle shape to shape with given name / return current shapename.

Optional argument:
name -- a string, which is a valid shapename

Set turtle shape to shape with given name or, if name is not given,
return name of current shape.
Shape with name must exist in the TurtleScreen's shape dictionary.
Initially there are the following polygon shapes:
'arrow', 'turtle', 'circle', 'square', 'triangle', 'classic'.
To learn about how to deal with shapes see Screen-method register_shape.

Example (for a Turtle instance named turtle):
>>> turtle.shape()
'arrow'
>>> turtle.shape("turtle")
>>> turtle.shape()
'turtle'
NzThere is no shape named %s)r�rr�rrvrr�)r�r�s  r�rk�RawTurtle.shape�
sX��(�<��;�;�)�)�)��{�{�,�,�.�.�%�&B�T�&I�J�J������d�#����r�c�(�Xs=La	Us=LacO OURupXUR4$US:XdUS:Xa[S5eUbUcX4nO%X4nO!UbURSU4nOURnUcURnURSXCS9 g)a�Set/return turtle's stretchfactors/outline. Set resizemode to "user".

Optional arguments:
   stretch_wid : positive number
   stretch_len : positive number
   outline  : positive number

Return or set the pen's attributes x/y-stretchfactors and/or outline.
Set resizemode to "user".
If and only if resizemode is set to "user", the turtle will be displayed
stretched according to its stretchfactors:
stretch_wid is stretchfactor perpendicular to orientation
stretch_len is stretchfactor in direction of turtles orientation.
outline determines the width of the shapes's outline.

Examples (for a Turtle instance named turtle):
>>> turtle.resizemode("user")
>>> turtle.shapesize(5, 5, 12)
>>> turtle.shapesize(outline=8)
Nrz(stretch_wid/stretch_len must not be zeror�)rbr�r�)r�r�rvrW)r��stretch_wid�stretch_lenr�r�s     r�rl�RawTurtle.shapesizes���*�8��8�8�'+�':�':�$�K��T�-?�-?�?�?��!��{�a�/�%�&P�Q�Q��"��"� +� 8�
� +� 8�
�
�
$� �/�/��2�K�?�M� �/�/�M��?��(�(�G����F�,�	�	?r�c�B�UcUR$URSUS9 g)aNSet or return the current shearfactor.

Optional argument: shear -- number, tangent of the shear angle

Shear the turtleshape according to the given shearfactor shear,
which is the tangent of the shear angle. DO NOT change the
turtle's heading (direction of movement).
If shear is not given: return the current shearfactor, i. e. the
tangent of the shear angle, by which lines parallel to the
heading of the turtle are sheared.

Examples (for a Turtle instance named turtle):
>>> turtle.shape("circle")
>>> turtle.shapesize(5,2)
>>> turtle.shearfactor(0.5)
>>> turtle.shearfactor()
>>> 0.5
Nr�)rbrn)r�rW)r��shears  r�rn�RawTurtle.shearfactor>s%��&�=��$�$�$����F���6r�c�D�UcI[R"UR5*UR-nX R-UR
-$U*UR-UR-n[R"U5[R-nURSUS9 g)a�Set or return the current tilt-angle.

Optional argument: angle -- number

Rotate the turtleshape to point in the direction specified by angle,
regardless of its current tilt-angle. DO NOT change the turtle's
heading (direction of movement).
If angle is not given: return the current tilt-angle, i. e. the angle
between the orientation of the turtleshape and the heading of the
turtle (its direction of movement).

Examples (for a Turtle instance named turtle):
>>> turtle.shape("circle")
>>> turtle.shapesize(5, 2)
>>> turtle.tiltangle()
0.0
>>> turtle.tiltangle(45)
>>> turtle.tiltangle()
45.0
>>> turtle.stamp()
>>> turtle.fd(50)
>>> turtle.tiltangle(-45)
>>> turtle.tiltangle()
315.0
>>> turtle.stamp()
>>> turtle.fd(50)
Nr�)rbrt)	r�r;r�rHrUrRr_r]rW)r�r�rts   r�ru�RawTurtle.tiltangleUs���8�=��L�L����,�,�t�/@�/@�@�D��-�-�-��1A�1A�A�A��6�D�.�.�.��1B�1B�B�D��<�<��%����0�D��H�H��T�H�2r�c�F�URXR5-5 g)alRotate the turtleshape by angle.

Argument:
angle - a number

Rotate the turtleshape by angle from its current tilt-angle,
but do NOT change the turtle's heading (direction of movement).

Examples (for a Turtle instance named turtle):
>>> turtle.shape("circle")
>>> turtle.shapesize(5,2)
>>> turtle.tilt(30)
>>> turtle.fd(50)
>>> turtle.tilt(30)
>>> turtle.fd(50)
N)rures  r�rt�RawTurtle.tiltys��"	
���u�~�~�/�/�0r�c��Xs=LaUs=LaUs=LacUR$ URupVpxUbUnUbUnUbUnUbUnX-X#--
S:Xa[S5eXVXx4Ul[R"U*U5[R-n	[R
"U	5[R"U	5p�X�-X�--
X�-X�--
X�-X�--X�-X�--4up�p�X�4UlX�-UlX�l	URSS9 g)aZSet or return the current transformation matrix of the turtle shape.

Optional arguments: t11, t12, t21, t22 -- numbers.

If none of the matrix elements are given, return the transformation
matrix.
Otherwise set the given elements and transform the turtleshape
according to the matrix consisting of first row t11, t12 and
second row t21, 22.
Modify stretchfactor, shearfactor and tiltangle according to the
given matrix.

Examples (for a Turtle instance named turtle):
>>> turtle.shape("square")
>>> turtle.shapesize(4,2)
>>> turtle.shearfactor(-0.5)
>>> turtle.shapetransform()
(4.0, -1.0, -0.0, 2.0)
Nrz0Bad shape transform matrix: must not be singularr�r�)r�rvr�r�r]r�r�r�r�r�rW)r��t11�t12�t21�t22�m11�m12�m21�m22�alfarr�a11�a12�a21�a22s                r�rm�RawTurtle.shapetransform�s��(�+��+��+��#�#�#�,�!�-�-���#��?�#�C��?�#�C��?�#�C��?�#�C��9�s�y� �A�%�%�&X�Y�Y��c�/����z�z�3�$��$�t�x�x�/�����$�����$��B� �f�r�v�o�r�v���� �f�r�v�o�r�v����@���#�!�h����G����
����F��#r�c	�^�URnURup4URupV[XVUR-UR
-5nS[
U5-U-upVUVV	s/sH8up�X6U-XY--UR
--XE*U-Xi--UR--4PM: sn	n$s sn	nf)z\Computes transformed polygon shapes from a shape
according to current position and heading.
r�)r�rLrNrr�r�r�)
r�r�r��p0�p1�e0�e1�er�r�s
          r��
_polytrafo�RawTurtle._polytrafo�s������������������"�6�=�=�(�6�=�=�8�9����A��,�!�#���IM�O�IM�v����T�"�$�Y��
�
�-�-�r�3�q�5���:�v�}�}�2L�/L�M�IM�O�	O��Os�&?B)c���URRURRnURS:Xa)URURURS:H5$g)aReturn the current shape polygon as tuple of coordinate pairs.

No argument.

Examples (for a Turtle instance named turtle):
>>> turtle.shape("square")
>>> turtle.shapetransform(4, -1, 0, 2)
>>> turtle.get_shapepoly()
((50, -20), (30, 20), (-50, 20), (-30, -20))

ryr{N)r�r�r�rrC�
_getshapepolyr~)r�rks  r�rH�RawTurtle.get_shapepoly�sS�����#�#�D�K�K�$:�$:�;���;�;�)�#��%�%�e�k�k�5�;�;�*�3L�M�M�$r�c�^^^^�URS:XdU(aURummmmOGURS:Xa%[SURS-5nUSSU4ummmmOURS:XaU$[	UUUU4SjU55$)zPCalculate transformed shape polygon according to resizemode
and shapetransform.
r�r�r�g@rr�c3�T># �UHupTU-TU--TU-TU--4v� M g7fr�r�)rr�r�rXrYrZr[s   ����r�r�*RawTurtle._getshapepoly.<locals>.<genexpr>�s0����J�'���c�!�e�c�!�e�m�S��U�S��U�]�3�'�s�%()r�r��maxr�r�)r�ryr{r�rXrYrZr[s    @@@@r�ro�RawTurtle._getshapepoly�s�������v�%��!%�!1�!1��C��c�3�
�
�
��
'��A�t�}�}�S�(�)�A�!"�A�q�!���C��c�3�
�
�
��
+��N��J�'�J�J�Jr�c
��URnURURRnURnURR
nUR(Ga`URS:XGaOURS:�Ga>SUl	URnUS:Xa�URS:XaSnO)URS:Xa
URnOURnURURU55nUR UR"p�UR%XBXxUSS9 gUS	:XaUR'X@R(U5 gUS
:Xau[+XE5Heun	up�nURURU
S55n
UR%X�UR-U5UR-U5URSS9 Mg ggUR(agUS:XaUR%USS
S
5 O]US	:Xa4UR'X@R(URSR5 O#US
:XaUHn	UR%U	SS
S
5 M SUl	g)zhManages the correct rendering of the turtle with respect to
its shape, resizemode, stretch and tilt etc.rFryr�r�r�T�r�r�r{r�r6r{N�r�r�r�r�r�)r�r�r�rrCrr�r�r�r"r~r�r�r�rlror�r�r�r<rL�ziprA)r�r�rkrH�titem�tshaper��fc�ocr�r�s           r�r�RawTurtle._drawturtle�s
���������t�{�{�5�5�6���������!�!���;�;�;�6�0�0�A�5�&�/�/�A�:M�',�D�$��[�[�F��	�!��#�#�z�1�q�1��%�%��/�T�]�]���+�+�a�����(:�(:�6�(B�C�����$�.�.�B�� � ��B�<=�4�!�I��'�!��!�!�%����@��*�$�,/��,>�(�D�.�4�R��?�?�4�+=�+=�d�D�+I�J�D��$�$�T�d�h�h�r�l�-1�X�X�b�\��AS�AS�Y]�%�_�-?�%��'�'���	�!�� � ��(@�"�b�I��'�!��!�!�%���*0�.�.��*A�*G�*G�I��*�$�!�D��$�$�T�+C�R��L�"�'+�D�$r�c
��URnURURRnURnUR
nUS:Xa�UR
5nURS:XaSnO)URS:Xa
URnOURnURURU55nURURp�URXRXxUSS9 O�US:Xa.URS5nUR!XPR"U5 O�US	:Xa�/nUH$n	UR
5n
UR%U
5 M& ['U5n[)XT5Heun
up�nURURUS55nURX�UR+U5UR+U5URSS9 Mg UR,R%W5 UR.R1S
U45 U$)auStamp a copy of the turtleshape onto the canvas and return its id.

No argument.

Stamp a copy of the turtle shape onto the canvas at the current
turtle position. Return a stamp_id for that stamp, which can be
used to delete it by calling clearstamp(stamp_id).

Example (for a Turtle instance named turtle):
>>> turtle.color("blue")
>>> turtle.stamp()
13
>>> turtle.fd(50)
ryr�r�r�Trwr6r�r{rr)r�r�r�rrCr~r�r�r�r�rlror�r�r�r8r<rLr�r�ryrAr%rIr�)r�r�rkrHr{�stitemr�r|r}�elementr�r�s            r�rr�RawTurtle.stamps����������t�{�{�5�5�6�����������I���'�'�)�F����:�-�1�q��!�!�V�+����Q��'�'�!��O�O�D�$6�$6�v�$>�?�E��_�_�d�n�n�����V��89�t�
�
E�
�g�
��(�(��,�F����f�n�n�f�=�
�j�
 ��F�!���)�)�+���
�
�d�#�"��6�]�F�(+�F�(;�$��n�t�����t�'9�'9�$��'E�F��� � ��$�(�(�2�,�)-���"��T�=O�=O�UY�!�[�)<�	
�����v�&������g�v�.�/��
r�c�|�XR;ap[U[5(a%UHnURR	U5 M  OURR	U5 URRU5 SU4nURnX4R;agURRU5nURRU5 XTR::a!URS-
UR-Ul	URRURS-UR-S/5 g)z9does the work for clearstamp() and clearstamps()
        rrNr�)r%r�r�r�r�r/rIr��indexr�r��insert)r��stampid�subitemr��bufr�s      r��_clearstamp�RawTurtle._clearstamp3s����o�o�%��'�5�)�)�&�G��K�K�'�'��0� '����#�#�G�,��O�O�"�"�7�+���!���o�o���z�z�!���
�
� � ��&���
�
���$���G�G���w�w��{�c�k�k�1�C�G��
�
���3�7�7�1�9�c�k�k�1�D�6�:r�c�F�URU5 UR5 g)aDelete stamp with given stampid

Argument:
stampid - an integer, must be return value of previous stamp() call.

Example (for a Turtle instance named turtle):
>>> turtle.color("blue")
>>> astamp = turtle.stamp()
>>> turtle.fd(50)
>>> turtle.clearstamp(astamp)
N)r�r�)r�r�s  r�r7�RawTurtle.clearstampIs��	
����!����r�c���UcURSSnO%US:�aURSUnOURUSnUHnURU5 M UR5 g)a�Delete all or first/last n of turtle's stamps.

Optional argument:
n -- an integer

If n is None, delete all of pen's stamps,
else if n > 0 delete first n stamps
else if n < 0 delete last n stamps.

Example (for a Turtle instance named turtle):
>>> for i in range(8):
...     turtle.stamp(); turtle.fd(30)
...
>>> turtle.clearstamps(2)
>>> turtle.clearstamps(-2)
>>> turtle.clearstamps()
Nr)r%r�r�)r�r�toDeleter�s    r�r8�RawTurtle.clearstampsXs_��$
�9����q�)�H�
�!�V����r��*�H����q�r�*�H��D����T�"�����r�c
���URURUR[UR[
54nURnSURXURURSSURUR5URSS44nUR(aURRU5 URnUR(Ga9URS:XGa(X-
nUSUR -S-USUR"-S--nS[%US-SSUR--UR--5-nUS	U--n	['SU5Hyn
U
S:XaS
nOSnXYU
--UlUR(a>UR)UR*XPR4URURU5 UR-5 M{ UR(a&UR)UR*SS
URS9 UR(aURR/U5 [UR[
5(aURR/U5 XlUR0(aUR2R/U5 [5UR5S:�aUR75 UR-5 g)z�Move the pen to the point end, thereby drawing a line
if pen is down. All other methods for turtle movement depend
on this one.
�goNr�rr%r�r�皙�����?r�TF�r�r�r��r�r{�*)r�r�r�r�r!r�r�rLr#r$rJrrIr�r�r�r�r�r�rFr�rr�r�rrrGr�)r�rj�go_modesr��
undo_entry�start�diff�diffsq�nhops�deltarr�s            r�r`�RawTurtle._gototsW���]�]��^�^��]�]������5�7�������D�N�N�C��+�+��&�&�q�)��'�'��(<�(<�=��j�j��m�%��
��?�?��O�O� � ��,������;�;�;�6�?�?�a�/��I�D��1�g�f�m�m�+�a�/�4��7�6�=�=�3H�1�2L�L�F��c�6�3�;��C����,<�)=�d�k�k�)I�J�K�K�E��C��I�&�E��1�e�_����6��C��C�!&���!2����=�=��$�$�T�%9�%9�&+�^�^�%<�%)�^�^�T�]�]�C�I�����%��}�}�� � ��!5�!5�7G�46�d�m�m�!�M��=�=����#�#�C�(��d�n�n�d�+�+��N�N�!�!�#�&�������J�J���c�"��t��� �2�%��M�M�O����r�c��Uup#pEUupgp�Uup�p�URn[URU-
5S:�a[S5 X�lX�lUSS/:XaSnOUnUR
X�X�S9 URVs/sH$nUU
;dMURU5S:XdM"UPM& nnUH/nURU5 URRU5 M1 UnUR(GaURS:Xa�X#-
nUSUR-S	-USUR-S	--nS[US-S
SUR--UR--5-nUSU--n[!SU5H\nUS:XaS
nOSnUUU--UlU(a*UR
UR"UUR4XxU5 UR%5 M^ U(aUR
UR"SSUS9 X lUR&(aQ[)UR*5S:�aUR*R-5 UR*/:XaSUlSUlU	(aJUR./:XaSUl[S5 O'UR.bUR.R-5 UR%5 gs snf)z)Reverse a _goto. Used for undo()
        r�z$undogoto: HALLO-DA-STIMMT-WAS-NICHT!r�r�r�r�r�rr%r�r�r�TFr�NzUnwahrscheinlich in _undogoto!)r�r�rLr�r#r$r�rrCr�r/r�r�r�r�r�rFrr�rrGrr�r!)r��entry�old�newr��coodata�drawing�pc�psrC�cLI�cLrIrr��usepcrH�todeleter�r�r�r�r�rr�s                         r��	_undogoto�RawTurtle._undogoto�s���',�#��(�#+� ��R�$���������t�~�~��#�$�s�*��9�:�"����
�&�&�!�!��E��E�����u��7�#�z�z�D�z�!�a�u�n�A�(.���Q��6�(A��z��D��A��N�N�1���J�J���a� �����;�;�;�6�?�?�a�/��9�D��1�g�f�m�m�+�a�/�4��7�6�=�=�3H�1�2L�L�F��c�6�3�;��C����,<�)=�d�k�k�)I�J�K�K�E��C��I�&�E��1�e�_����6��C��C�!$�u�q�y������$�$�T�%9�%9�&+�T�^�^�%<�%'�S�2�����%��� � ��!5�!5�7G�46�b�!�B���
����4�:�:���"��
�
��� ��z�z�R��%*��"�!��
���~�~��#�!%����6�7����+����"�"�$������YDs�:
K�K�Kc�0�UR(a'URRSXR45 XR-nURR	U5nUR
RnUS:Xa�URS:�asSUR-nS[[U5U-5-nSU-U-n[U5H3nURR	U5UlUR5 M5 X lUR5 g)z&Turns pen clockwise by angle.
        �rotr�rg@r�N)rIr�rUrNr�r�r�r�r�r�rFr�)r�r��	neworientr�anglevelr�r�rs        r�rf�RawTurtle._rotate�s����?�?��O�O� � �%��0B�0B�!C�D�
�#�#�#���L�L�'�'��.�	��+�+�&�&���a�<�D�K�K�!�O��T�[�[�(�H���C��J�x�/�0�0�E���I�e�O�E��5�\��#�|�|�2�2�5�9�������"�!�����r�c���[UR5S:�a�URRURURUR
UR5 URR5UlURRUR5 O$URRURSS9 /UlU(aUR/Ulgg)z�Closes current line item and starts a new one.
Remark: if current line became too long, animation
performance (via _drawline) slowed down considerably.
r�T)r�N)rGr$r�r�r#r�r�r�rr�rLrs  r�r��RawTurtle._newLine�s���
�t��� �1�$��K�K�!�!�$�"6�"6��8H�8H�&*�n�n�d�m�m�
E�#'�;�;�#:�#:�#<�D� ��J�J���d�2�2�3��K�K�!�!�$�"6�"6�D�!�A����� $���/�D��r�c�6�[UR[5$)z�Return fillstate (True if filling, False else).

No argument.

Example (for a Turtle instance named turtle):
>>> turtle.begin_fill()
>>> if turtle.filling():
...     turtle.pensize(5)
... else:
...     turtle.pensize(3)
)r�r!r�r�s r�rC�RawTurtle.filling
s���$�.�.�$�/�/r�c��UR5(dDURR5UlURRUR5 UR/UlUR5 UR(a'URRSUR45 UR5 g)z�Called just before drawing a shape to be filled.

No argument.

Example (for a Turtle instance named turtle):
>>> turtle.color("black", "red")
>>> turtle.begin_fill()
>>> turtle.circle(60)
>>> turtle.end_fill()
�	beginfillN)rCr�r�r rr�rLr!r�rIr�r�r�s r�r2�RawTurtle.begin_fill
s{���|�|�~�~�!�[�[�4�4�6�D�N��J�J���d�n�n�-��.�.�)����
�
���?�?��O�O� � �+�t�~�~�!>�?����r�c��UR5(a�[UR5S:�aqURR	UR
URURS9 UR(a'URRSUR
45 S=UlUlUR5 gg)z�Fill the shape drawn after the call begin_fill().

No argument.

Example (for a Turtle instance named turtle):
>>> turtle.color("black", "red")
>>> turtle.begin_fill()
>>> turtle.circle(60)
>>> turtle.end_fill()
r%r��dofillN)
rCrGr!r�r�r r�rIr�r�r�s r�r?�RawTurtle.end_fill/
s����<�<�>�>��4�>�>�"�Q�&����%�%�d�n�n�d�n�n�+/�?�?�&�<��?�?��O�O�(�(�(�D�N�N�)C�D�.2�2�D�N�T�^��L�L�N�r�c��U(d�[U[[45(a5URU5nUR[URS5-nOnURnU(d#UR[URS5-nO7Uc#UR[URS5-nURU5nUR5nUR(a-URRS/5 SURl
UR5S:XaUR5 UR5 URU5 URU5 UR!S5 URU5 UR(aSURl
gg!URU5 f=f)a�Draw a dot with diameter size, using color.

Optional arguments:
size -- an integer >= 1 (if given)
color -- a colorstring or a numeric color tuple

Draw a circular dot with diameter size, using color.
If size is not given, the maximum of pensize+4 and 2*pensize is used.

Example (for a Turtle instance named turtle):
>>> turtle.dot()
>>> turtle.fd(50); turtle.dot(20, "blue"); turtle.fd(50)
r�Nr�Tr�rF)r�rr�r�r�rtr�rWrIr�r�rbrNrYrZrXrD)r�r-r:rWs    r�r=�
RawTurtle.dotC
s>����$��e��-�-����t�,���}�}�s�4�=�=�!�'<�<��������=�=�3�t�}�}�a�+@�@�D���|��}�}�s�4�=�=�!�'<�<���N�N�5�)�E��h�h�j���?�?��O�O� � �%��)�'+�D�O�O�$�	���� �F�*����	��L�L�N��L�L����M�M�%� ��L�L��O��H�H�S�M��?�?�',�D�O�O�$���
�H�H�S�M�s
�A'F1�1Gc� �URRURXUUR5upEUR	5 UR
R
U5 UR(aURRSU45 U$)z)Performs the writing for write()
        �wri)	r�r�rLr�r�rr�rIr�)r�r�r�r�r�rjs      r�r��RawTurtle._writen
si���K�K�&�&�t�~�~�s�4�:>�.�.�J�	�������
�
���$���?�?��O�O� � �%���/��
r�c�n�UR(a-URRS/5 SURlUR[	U5UR5U5nU(a#UR
5upgURXW5 UR(aSURlgg)a�Write text at the current turtle position.

Arguments:
arg -- info, which is to be written to the TurtleScreen
move (optional) -- True/False
align (optional) -- one of the strings "left", "center" or right"
font (optional) -- a triple (fontname, fontsize, fonttype)

Write text - the string representation of arg - at the current
turtle position according to align ("left", "center" or right")
and with the given font.
If move is True, the pen is moved to the bottom-right corner
of the text. By default, move is False.

Example (for a Turtle instance named turtle):
>>> turtle.write('Home = ', True, align="center")
>>> turtle.write((0,0), True)
r�TFN)rIr�r�r�rr|r\rf)r��arg�mover�r�rjr�r�s        r�r|�RawTurtle.writey
s{��&�?�?��O�O� � �%��)�'+�D�O�O�$��k�k�#�c�(�E�K�K�M�4�8����8�8�:�D�A��K�K����?�?�',�D�O�O�$�r�c�6�UR/UlSUlg)z�Start recording the vertices of a polygon.

No argument.

Start recording the vertices of a polygon. Current turtle position
is first point of polygon.

Example (for a Turtle instance named turtle):
>>> turtle.begin_poly()
TN)rLrrr�s r�r3�RawTurtle.begin_poly�
s���n�n�%��
�!��r�c��SUlg)aStop recording the vertices of a polygon.

No argument.

Stop recording the vertices of a polygon. Current turtle position is
last point of polygon. This will be connected with the first point.

Example (for a Turtle instance named turtle):
>>> turtle.end_poly()
FN)rr�s r�r@�RawTurtle.end_poly�
s��#��r�c�H�URb[UR5$g)z�Return the lastly recorded polygon.

No argument.

Example (for a Turtle instance named turtle):
>>> p = turtle.get_poly()
>>> turtle.register_shape("myFavouriteShape", p)
N)rr�r�s r�rE�RawTurtle.get_poly�
s"���:�:�!�����$�$�"r�c��UR$)aPReturn the TurtleScreen object, the turtle is drawing  on.

No argument.

Return the TurtleScreen object, the turtle is drawing  on.
So TurtleScreen-methods can be called for that object.

Example (for a Turtle instance named turtle):
>>> ts = turtle.getscreen()
>>> ts
<turtle.TurtleScreen object at 0x0106B770>
>>> ts.bgcolor("pink")
)r�r�s r�rG�RawTurtle.getscreen�
s���{�{�r�c��U$)aReturn the Turtleobject itself.

No argument.

Only reasonable use: as a function to return the 'anonymous turtle':

Example:
>>> pet = getturtle()
>>> pet.fd(50)
>>> pet
<turtle.Turtle object at 0x0187D810>
>>> turtles()
[<turtle.Turtle object at 0x0187D810>]
r�r�s r�rI�RawTurtle.getturtle�
s	���r�c�8�URRU5$)zDSet delay value which determines speed of turtle animation.
        )r�rr�s  r�r��RawTurtle._delay�
s���{�{� � ��'�'r�c��URRURRXU5 UR	5 g)aQBind fun to mouse-click event on this turtle on canvas.

Arguments:
fun --  a function with two arguments, to which will be assigned
        the coordinates of the clicked point on the canvas.
btn --  number of the mouse-button defaults to 1 (left mouse button).
add --  True or False. If True, new binding will be added, otherwise
        it will replace a former binding.

Example for the anonymous turtle, i. e. the procedural way:

>>> def turn(x, y):
...     left(360)
...
>>> onclick(turn)  # Now clicking into the turtle will turn it.
>>> onclick(None)  # event-binding will be removed
N)r�rr�rr�r,s    r�rS�RawTurtle.onclick�
s-��$	
�����T�[�[�.�.��#�>����r�c��URRURRXU5 UR	5 g)awBind fun to mouse-button-release event on this turtle on canvas.

Arguments:
fun -- a function with two arguments, to which will be assigned
        the coordinates of the clicked point on the canvas.
btn --  number of the mouse-button defaults to 1 (left mouse button).

Example (for a MyTurtle instance named joe):
>>> class MyTurtle(Turtle):
...     def glow(self,x,y):
...             self.fillcolor("red")
...     def unglow(self,x,y):
...             self.fillcolor("")
...
>>> joe = MyTurtle()
>>> joe.onclick(joe.glow)
>>> joe.onrelease(joe.unglow)

Clicking on joe turns fillcolor red, unclicking turns it to
transparent.
N)r�rr�rr�r,s    r�rU�RawTurtle.onreleases-��,	
�����t�{�{�0�0�#�C�@����r�c�f�URRURRXU5 g)a2Bind fun to mouse-move event on this turtle on canvas.

Arguments:
fun -- a function with two arguments, to which will be assigned
       the coordinates of the clicked point on the canvas.
btn -- number of the mouse-button defaults to 1 (left mouse button).

Every sequence of mouse-move-events on a turtle is preceded by a
mouse-click event on that turtle.

Example (for a Turtle instance named turtle):
>>> turtle.ondrag(turtle.goto)

Subsequently clicking and dragging a Turtle will move it
across the screen thereby producing handdrawings (if pen is
down).
N)r�rr�rr,s    r�rT�RawTurtle.ondrags$��$	
�����D�K�K�-�-�s��=r�c��URcgUS:XaAUup4URU*U-UR-5 URR5ngUS:XaUSnUR	U5 gUS:XaURU5 gUS;a<USnURRU5 URRU5 gUS:Xa"USnURRUSS	S	S
9 gUS:XaZUSnS=UlUlXpR;a7URRU5 URRU5 ggUS:Xa3[RXS5 URR5 gg)
z2Does the main part of the work for undo()
        Nr�rrrr�)r�r=r�rxr�r�r�rW)rIrfrUr�r7r�r�r�rr/r�r r!r�rW)r��actionr�r��degPAU�dummyr�r�s        r��_undo�RawTurtle._undo.se���?�?�"���U�?� �M�E��L�L�%����t�'9�'9�9�:��O�O�'�'�)�E�
�w�
��!�W�F��O�O�F�#�
�t�^��N�N�4� �
�~�
%���7�D��K�K����%��J�J���d�#�
�x�
���7�D��K�K�!�!�$�(>�')�2�
"�
7�
�{�
"���7�D�.2�2�D�N�T�^��z�z�!����#�#�D�)��
�
�!�!�$�'�"��u�_��H�H�T��7�#��O�O���!�r�c�
�URcgURR5nUSnUSSnUS:Xa:U(a2UR5nURUSUSS5 U(aM1ggURX#5 g)aQundo (repeatedly) the last turtle action.

No argument.

undo (repeatedly) the last turtle action.
Number of available undo actions is determined by the size of
the undobuffer.

Example (for a Turtle instance named turtle):
>>> for i in range(4):
...     turtle.fd(50); turtle.lt(80)
...
>>> for i in range(8):
...     turtle.undo()
...
Nrr�r�)rIr�r�)r�r�r�r�s    r�rx�RawTurtle.undoNsy��"�?�?�"�����"�"�$���a����A�B�x���U�?���x�x�z���
�
�4��7�D���H�-��$�
�J�J�v�$r�)rr r!r"rNrrLr�r�r�r�r�r&r$r#rrr�r%r�rIr?r�r|)NNNN)Fr)FrQ)�Arialr�r�rr)<r�r�r�r�r�rr�r;rarhryr*r6rr�r�rr�rAr�rsr9rkrlrnrurtrmrlrHrorrrr�r7r8r`r�rfr�rCr2r?r=r�r|r3r@rErGrIrFr�rSrUrTr�rxrwr�r�r�r�rr�	sP����G�"��G�}� $�%5� 6��i��&�P�2,�&-�1�
�A�!�$/�*(�+�
+�.�5�.�D�.�T�.�`&�P�6&?�P7�."3�H1�&%$�P
O�N�"K�$,�P+�Z;�,
��83�j?�B�$0� 0��*�()-�V	�-�:"�#�%�� �"�F�(�
�*�2>�*"�@%�:�Jr�rc�j�[Rc[5[l[R$)zReturn the singleton screen object.
If none exists at the moment, create a new one and return it,
else return the existing one.)r�_screenrr�r�r�r
r
qs!���~�~�� �����>�>�r�c�n�\rSrSrSrSr\SrSr\S\S\S\S4S	jr	S
r
SrSrS
r
Srg)riyNr*c�p�[Rch[5=[lUlURR[R5 URRUR5 [Rc�[Sn[Sn[Sn[Sn[Sn[SnURRXX45 URR5[l[RU[R5 URXXV5 gg)Nr{r�r�r�r�r�)r�_rootr~r*�_titler��_destroyr@r�r�r�r	r;r')r�r{r�r�r�r�r�s       r�r;�_Screen.__init__s����=�=� �).��0�G�M�D�J��J�J���W�^�^�,��J�J� � ����/��?�?�"���M�E��(�^�F��[�)�I��l�+�J��[�)�I��[�)�I��J�J�"�"�5�)�H�"�j�j�3�3�5�G�O��!�!�$����8��J�J�u�i�;�#r�r{r�r�r�c���[URS5(dgURR5nURR5n[	U[
5(aSUs=::aS::aO OXQ-nUcXQ-
S-n[	U[
5(aSUs=::aS::aO OXb-nUcXb-
S-nURR
XX45 UR5 g)a�Set the size and position of the main window.

Arguments:
width: as integer a size in pixels, as float a fraction of the screen.
  Default is 50% of screen.
height: as integer the height in pixels, as float a fraction of the
  screen. Default is 75% of screen.
startx: if positive, starting position in pixels from the left
  edge of the screen, if negative from the right edge
  Default, startx=None is to center window horizontally.
starty: if positive, starting position in pixels from the top
  edge of the screen, if negative from the bottom edge
  Default, starty=None is to center window vertically.

Examples (for a Screen instance named screen):
>>> screen.setup (width=200, height=200, startx=0, starty=0)

sets window to 200x200 pixels, in upper left of screen

>>> screen.setup(width=.75, height=0.5, startx=None, starty=None)

sets window to 75% of screen by 50% of screen and centers
r�Nrr�r%)�hasattrr�r�r�r�r�r�r-)r�r{r�r�r�r��shs       r�r'�
_Screen.setup�s���2�t�z�z�>�2�2��
�Z�Z�
!�
!�
#��
�Z�Z�
"�
"�
$���e�U�#�#��U��a���H�E��>��j�A�%�F��f�e�$�$��f�)9��)9��Y�F��>��k�Q�&�F��
�
����v�>����
r�c�z�[Rb[RRU5 U[lg)a1Set title of turtle-window

Argument:
titlestring -- a string, to appear in the titlebar of the
               turtle graphics window.

This is a method of Screen-class. Not available for TurtleScreen-
objects.

Example (for a Screen instance named screen):
>>> screen.title("Welcome to the turtle-zoo!")
N)rr�r*r�)r��titlestrings  r�r*�
_Screen.title�s'���=�=�$��M�M����,�$��r�c���URnU[RLa,S[lS[lS[lS[lS[lUR5 g)NF)	r�rrr�r�r@r	rr�)r��roots  r�r��_Screen._destroy�sD���z�z���7�=�=� ��F�K�!�F�N� �G�M�"�G�O� %������r�c�$�UR5 g)zfShut the turtlegraphics window.

Example (for a TurtleScreen instance named screen):
>>> screen.bye()
N)r�r�s r�r�_Screen.bye�s
��	
�
�
�r�c�^�U4SjnTRU5 [S(ag[5 g![a [	S5 gf=f)aGo into mainloop until the mouse is clicked.

No arguments.

Bind bye() method to mouseclick on TurtleScreen.
If "using_IDLE" - value in configuration dictionary is False
(default value), enter mainloop.
If IDLE with -n switch (no subprocess) is used, this value should be
set to True in turtle.cfg. In this case IDLE's mainloop
is active also for the client script.

This is a method of the Screen-class and not available for
TurtleScreen instances.

Example (for a Screen instance named screen):
>>> screen.exitonclick()

c�&>�TR5 g)z&Screen.bye() with two dummy-parametersN)r)r�r�r�s  �r��exitGracefully�+_Screen.exitonclick.<locals>.exitGracefully�s����H�H�Jr�r�Nr)rSr�r�AttributeError�exit)r�r�s` r�r�_Screen.exitonclick�sA���&	�	
���^�$�����	��J���	���G�	�s�
4�A�A)r�)r�r�r�r�r�r@r�r�r;r'r*r�rrr�r�r�r�rrysR���E��G�
�'�]�F�<�"�w�-��X���+�&�t�K�/@�&�P%�"��r�rc�B�\rSrSrSrSrSr\S\S\S4SjrSr	g)	ri�z�RawTurtle auto-creating (scrolled) canvas.

When a Turtle object is created or a function derived from some
Turtle method is called a TurtleScreen object is automatically created.
Nrkr�r�c��[Rc[5[l[R	U[RUUUS9 g)N)rkr�r�)rr�r
rr;)r�rkr�r�s    r�r;�Turtle.__init__s;���>�>�!�#�X�F�N����4����!&�*8�#*�	�	,r�r�)
r�r�r�r�r�r�r�r�r;r�r�r�r�rr�s1���
�D��G��G�}� $�%5� 6��i��	,r�rc�t�0n[HnSU-n[U5RX'M! [HnSU-n[U5RX'M! [	SU-S5n[SU55nUR
S5 USSH6nUR
S	[U5-5 UR
S
X-5 M8 USnUR
S	[U5-5 UR
SX-5 UR
S5 UR5 SSS5 g!,(df   g=f)
a�Create and write docstring-dictionary to file.

Optional argument:
filename -- a string, used as filename
            default value is turtle_docstringdict

Has to be called explicitly, (not used by the turtle-graphics classes)
The docstring dictionary will be written to the Python script <filename>.py
It is intended to serve as a template for translation of the docstrings
into different languages.
z_Screen.zTurtle.z%s.pyr�c3�b# �UH%nURS5S[;dM!Uv� M' g7f)r�r�N)r�_alias_list)rr�s  r�r�&write_docstringdict.<locals>.<genexpr>%s+���=��A������a���;��a��s� /�	/zdocsdict = {

Nrz%s :
z        """%s
""",

z        """%s
"""

z}
)	�_tg_screen_functionsr�r��_tg_turtle_functionsr�r)r|�repr�close)r��docsdict�
methodnamer�r�rs      r�rrs���H�*�
���#���S�	�)�)��
�+�+�
��
�"���S�	�)�)��
�+�
�g�� ��	%���=��=�=��	���"�#����9�C�
�G�G�H�t�C�y�(�)�
�G�G�-��
�=�>���2�h��	����4��9�$�%�	���(�8�=�8�9�	�����	���	�
&�	%�	%�s
�$B<D)�)
D7c���SSUR50-n[U5nURnUHnX4[U5lM g![
a [
SU-5 M6f=f)z�Read in docstrings from lang-specific docstring dictionary.

Transfer docstrings, translated to lang, from a dictionary-file
to the methods of classes Screen and Turtle and - in revised form -
to the corresponding functions.
z!turtle_docstringdict_%(language)sr�zBad docstring-entry: %sN)r|�
__import__rr�r�r�r�)�lang�modname�modulerr�s     r��read_docstringsr1sh��2�Z��
�
��4M�M�G�
��
 �F����H���	3� (�
�D��I�����	3��+�c�1�2�	3�s�A
�
A&�%A&zCannot find docsdict forz;Unknown Error when trying to import %s-docstring-dictionaryc��[R"U5nUR[URR55SSS9n/nURR5GHKnUR==[RR:XaO!=[RR:XaO O  URUR5 Mo=[RR:Xa! URSUR35 M�=[RR:Xa- URURSUR35 M�[RR:Xa!URSUR35 GM7[SUR5e SS	R!U5S
3n[#U5U4$)a+Get strings describing the arguments for the given object

Returns a pair of strings representing function parameter lists
including parenthesis.  The first string is suitable for use in
function definition and the second is suitable for use in function
call.  The "self" parameter is not included.
r�N)�
parameters�*r�z**zUnsupported parameter kind�(z, �))�inspect�	signature�replacer�r�values�kind�	Parameter�POSITIONAL_ONLY�POSITIONAL_OR_KEYWORDr�r��VAR_POSITIONAL�KEYWORD_ONLY�VAR_KEYWORD�RuntimeErrorrr)�ob�orig_sig�func_sig�	call_args�param�	call_texts      r��getmethparlistr$Nsr��� � ��$�H������+�+�2�2�4�5�a�b�9� ��H��I��$�$�+�+�-���j�j�:�1��!�!�1�1�9�'�#�#�9�9�:�� � ����,�1��"�"�1�1�� � �1�U�Z�Z�L�!1�2�/��"�"�/�/�� � �E�J�J�<�q�����!=�>��"�"�.�.�� � �2�e�j�j�\�!2�3��"�#?����L�L�.��D�I�I�i�(�)��+�I��x�=�)�#�#r�c��SSKnUcg[SnURSU-S5nURSU-5nUR	SU5nU$)z<To reduce docstrings from RawTurtle class for functions
    rNr��%s.r�� \(.+ %s\):�:��rer�r�compile�sub)�docstrr*�
turtlename�	newdocstr�parexps     r��_turtle_docreviser1r�W���
�~���o�&�J����u�z�1�"�5�I�
�Z�Z���3�
4�F��
�
�3�	�*�I��r�c��SSKnUcg[SnURSU-S5nURSU-5nUR	SU5nU$)z?To reduce docstrings from TurtleScreen class for functions
    rNr�r&r�r'r(r))r-r*�
screennamer/r0s     r��_screen_docreviser5~r2r�ardef {name}{paramslist}:
    if {obj} is None:
        if not TurtleScreen._RUNNING:
            TurtleScreen._RUNNING = True
            raise Terminator
        {obj} = {init}
    try:
        return {obj}.{name}{argslist}
    except TK.TclError:
        if not TurtleScreen._RUNNING:
            TurtleScreen._RUNNING = True
            raise Terminator
        raise
c	��UHzn[X5n[U5upxUS:Xa[SXx5 M/[R	X#UXxS9n	[U	[
55 U"UR5[
5UlM| g)Nr�z>>>>>>)�obj�initr��
paramslist�argslist)�getattrr$r��__func_body�formatr�globalsr�)
�	functionsr�r7r8�	docreviserr�pl1�pl2�defstrs
          r��_make_global_funcsrD�sw���
���)��!�&�)����"�9��(�C�%���#�#��Z�/2�$�B���V�W�Y��(1�&�.�.�(A��	�*��%� r�zTurtle._screenzScreen()zTurtle._penzTurtle()�__main__c�L�[5(a[5 g[5 gr�)rOr^rVr�r�r��	switchpenrG�s���8�8��D��Dr�c���[5 [S5 [5 [S5 [	5 [S5 [
S5HunUS:Xa
[5 [
S5Hn[S5 [S5 M US:Xa[S5 [5 [5 [S	5 [	5 Mw [S
5 [S5 [S5 [5 [S5 [S5 [S5 [S5 [S
5 [	5 [SS
5 [SS
5 [S5 [
S5H/n[S5 [S5 [S5 [S5 M1 [S5 [5 [
S5H/n[S5 [S5 [S5 [S5 M1 [5 g)zDemo of old turtle.py - moduleT�dr�r%r�r��Z�maroonrRr�r�F��
startstartr��redr�N)rar+rzr1r>r{rFr2rDrQr:r?r`r|)rHrs  r��demo1rO�sJ��
���t��
����
���
�a���q��A��A�v����1�X������R����A�v��h���
��D��B�K��F��	�a��
�g���u�
�
��
�b�	����
�b�	����
�c�
���
�l�A��
�g�q��
�e���q��A��B�K���H��B�K��"�I�	�	�t�����q��A��B�K���H��B�K��"�I�	�
	�
r�c��	�[S5 [5 [S5 [[	SS55 [SS5S-n[
S5 [S5Hn[5 [US5 M [S5 [5(a[5 [5(aM[5 [S5 [S	5 Sn[!S
5 [S5 [S5 [SS
5H�nUS:�a [#5 [%S	SU--
SSU-5 [S5Hn['U5 [S5 M [)5 US-
n[S5 [[5S-S-5 M� [S5 [+5 ['S5 [
S5 [-5 [/SS5 [S5 [#5 [S5H0n[SS5 [
S5 ['S5 [
S5 M2 [)5 [S5 [+5 ['S5 [-5 [1S5 [35nUR5S5 [75nUR5S5 UR1S5 UR5 UR9S5 URS5 UR;5 UR=SS5 URS5 UR?5 URS5 UR/SS5 URS5 URS5 [[	U55 SnURU5S:�a�UR'S5 URS 5 URUR	U55 UR'S5 US!-S:Xa*URA5 URA5 [5 US-
nURU5S:�aM�URS"S#S$S%9 UR!S&5 UR!S5 S'n[BRD"S5 [5(a1UR5 UR5 [5(aM1UR'S5 URS(S)S*9 URGUS5 g+),zDemo of some new features.r�r�rr�rJ�r�zwait a moment...r��greenrLr�r���x��FrRrN�yellowr��2r�r�i�(r��blue�oranger%g@g333333�?r�zCAUGHT! )r�r��boldr`)r�r�r�c�,�[5 [5 gr�)rr)r5r6s  r��baba�demo2.<locals>.babaDs���M��Er�z  Click me!)�CourierrUr\)r�N)$rprqrZrervr<rcrFrGr5r|ryrxrarRrrXr2rBrAr?r^rVr:rkrIrbrrQrzrJr>rr�time�sleeprS)r�r�laengerH�trir�r�r^s        r��demo2re�s���
�a��
����
��7�1�a�=�!��!�Q���#��
�2���r��A��K��6�2���	� �!��!�!��F� �!�!�
��
�2���#���������
�
�3���r�2��A��1�u����#�b��d�(�A�r�!�t�,��1�X���6�
��3���
�J��b�L�F��r�F��5�7�1�9�b�.�!��	�3��
��
�2��
�2��
��
�e�H��
�a�����q��A��2�r�N��r�F��r�F��r�F�	�
	�
�
�2��
��
�2��
��
�h���k�����v��������&�!����X���������B�����Q���	�	�����C����	�	�"�
����
����Q�����V�H�%����q���	�	�!���7�6�?�#����l�l�6�"�Q�&��I�I�c�N��I�I�c�N��N�N�3�;�;�v�.�/��F�F�1�I��r�z�Q�������	�	�����Q�J�E��l�l�6�"�Q�&�	�	�	�*�#8��	�H����W�����U��	�	
�
�
�1�
��!�!��H�H�J��K�K�M� �!�!�	���r�
��	�	�-�(?�	�A����D�!�r�)r�)�turtle_docstringdict)Gr��tkinterr9�ImportError�msgrrr�rarr��os.pathrrr�copyrr�_tg_classesrr�
_tg_utilities�__all__r�r�r�r�r�r�r�rrr
rr!r:rr>r�r~�objectr�r�rvrr�r	rBr�rrr
r
rrrrr�	_LANGUAGEr$r1r5r<rDrr�r�rGrOrerr�r�r��<module>rqs���0K�ZL��
����
�'�'�� �I��)��!��'��/�
��-�-�0D�D���(�>�*��,��	��#�	��4�	��c�	�	�c�	�	�T�		�
	�T�	�	�
�
	�	�S�	�	��	�	�$�	�	��	�	�W�	�	�g�	�	�z�	�	�D�	�	�I�	� 	��!	�""�)��'	��,�:�<1��t��
*$�E�*$�j��1�
�.�*a#�R�X�X�a#�F�����I�6�)�B�E�E�)�0
����B5�v�B5�T	�)�	��)��
,1�F�,1�^"6�f�"6�Li�#�i�VC��C�LR�6�R�jL�6�L�>Q��j�Q�f$
���~�l�~�@,�Y�,�(
�� �D3�"
���	�M��I���	�"�"$�H
�
� �� 
B��'��#�Z�1B�D��'�� �*�.?�A����z���2�ja�F
�G�	�G��M�C��Wz�L�
�c�#�h�!J�J�
K�K��L��|�1�	�/�0�1��Ds�1�	�
$�i�0��M�	�H�BK�L�M�M�sA�G7�H�H+�7H�=H�H�H(�'H(�+I�<I�I

Filemanager

Name Type Size Permission Actions
__future__.cpython-313.pyc File 4.61 KB 0644
__hello__.cpython-313.pyc File 966 B 0644
_aix_support.cpython-313.pyc File 4.61 KB 0644
_android_support.cpython-313.pyc File 7.44 KB 0644
_apple_support.cpython-313.pyc File 3.4 KB 0644
_collections_abc.cpython-313.pyc File 45.6 KB 0644
_colorize.cpython-313.pyc File 3.92 KB 0644
_compat_pickle.cpython-313.pyc File 7.02 KB 0644
_compression.cpython-313.pyc File 7.62 KB 0644
_distutils_system_mod.cpython-313.pyc File 7.89 KB 0644
_ios_support.cpython-313.pyc File 2.65 KB 0644
_markupbase.cpython-313.pyc File 12.14 KB 0644
_opcode_metadata.cpython-313.pyc File 10.43 KB 0644
_osx_support.cpython-313.pyc File 17.7 KB 0644
_py_abc.cpython-313.pyc File 7.02 KB 0644
_pydatetime.cpython-313.pyc File 92.36 KB 0644
_pydecimal.cpython-313.pyc File 211.95 KB 0644
_pyio.cpython-313.pyc File 108.59 KB 0644
_pylong.cpython-313.pyc File 10.9 KB 0644
_sitebuiltins.cpython-313.pyc File 4.79 KB 0644
_strptime.cpython-313.pyc File 28.04 KB 0644
_sysconfigdata__linux_x86_64-linux-gnu.cpython-313.pyc File 60.07 KB 0644
_sysconfigdata__x86_64-linux-gnu.cpython-313.pyc File 60.06 KB 0644
_threading_local.cpython-313.pyc File 8.19 KB 0644
_weakrefset.cpython-313.pyc File 11.77 KB 0644
abc.cpython-313.pyc File 7.73 KB 0644
antigravity.cpython-313.pyc File 985 B 0644
argparse.cpython-313.pyc File 102.11 KB 0644
ast.cpython-313.pyc File 100.56 KB 0644
base64.cpython-313.pyc File 25.21 KB 0644
bdb.cpython-313.pyc File 39.61 KB 0644
bisect.cpython-313.pyc File 3.42 KB 0644
bz2.cpython-313.pyc File 14.81 KB 0644
cProfile.cpython-313.pyc File 8.46 KB 0644
calendar.cpython-313.pyc File 38.76 KB 0644
cmd.cpython-313.pyc File 18.52 KB 0644
code.cpython-313.pyc File 15.41 KB 0644
codecs.cpython-313.pyc File 39.59 KB 0644
codeop.cpython-313.pyc File 6.48 KB 0644
colorsys.cpython-313.pyc File 4.4 KB 0644
compileall.cpython-313.pyc File 20.22 KB 0644
configparser.cpython-313.pyc File 67.32 KB 0644
contextlib.cpython-313.pyc File 29.78 KB 0644
contextvars.cpython-313.pyc File 261 B 0644
copy.cpython-313.pyc File 10.38 KB 0644
copyreg.cpython-313.pyc File 7.36 KB 0644
csv.cpython-313.pyc File 20.21 KB 0644
dataclasses.cpython-313.pyc File 46.7 KB 0644
datetime.cpython-313.pyc File 411 B 0644
decimal.cpython-313.pyc File 2.93 KB 0644
difflib.cpython-313.pyc File 70.35 KB 0644
dis.cpython-313.pyc File 46.4 KB 0644
doctest.cpython-313.pyc File 105.01 KB 0644
enum.cpython-313.pyc File 83.7 KB 0644
filecmp.cpython-313.pyc File 14.67 KB 0644
fileinput.cpython-313.pyc File 20.15 KB 0644
fnmatch.cpython-313.pyc File 6.64 KB 0644
fractions.cpython-313.pyc File 37.42 KB 0644
ftplib.cpython-313.pyc File 41.34 KB 0644
functools.cpython-313.pyc File 41.26 KB 0644
genericpath.cpython-313.pyc File 7.63 KB 0644
getopt.cpython-313.pyc File 8.27 KB 0644
getpass.cpython-313.pyc File 7.14 KB 0644
gettext.cpython-313.pyc File 22.35 KB 0644
glob.cpython-313.pyc File 23.11 KB 0644
graphlib.cpython-313.pyc File 9.96 KB 0644
gzip.cpython-313.pyc File 31.23 KB 0644
hashlib.cpython-313.pyc File 7.99 KB 0644
heapq.cpython-313.pyc File 17.35 KB 0644
hmac.cpython-313.pyc File 10.41 KB 0644
imaplib.cpython-313.pyc File 61.18 KB 0644
inspect.cpython-313.pyc File 132.7 KB 0644
io.cpython-313.pyc File 4.17 KB 0644
ipaddress.cpython-313.pyc File 89.47 KB 0644
keyword.cpython-313.pyc File 1.02 KB 0644
linecache.cpython-313.pyc File 8.35 KB 0644
locale.cpython-313.pyc File 57.63 KB 0644
lzma.cpython-313.pyc File 15.35 KB 0644
mailbox.cpython-313.pyc File 115.95 KB 0644
mimetypes.cpython-313.pyc File 24.31 KB 0644
modulefinder.cpython-313.pyc File 27.73 KB 0644
netrc.cpython-313.pyc File 8.93 KB 0644
ntpath.cpython-313.pyc File 26.56 KB 0644
nturl2path.cpython-313.pyc File 2.67 KB 0644
numbers.cpython-313.pyc File 13.45 KB 0644
opcode.cpython-313.pyc File 3.97 KB 0644
operator.cpython-313.pyc File 16.96 KB 0644
optparse.cpython-313.pyc File 66 KB 0644
os.cpython-313.pyc File 44.75 KB 0644
pdb.cpython-313.pyc File 103.62 KB 0644
pickle.cpython-313.pyc File 76.57 KB 0644
pickletools.cpython-313.pyc File 78.54 KB 0644
pkgutil.cpython-313.pyc File 19.49 KB 0644
platform.cpython-313.pyc File 43.63 KB 0644
plistlib.cpython-313.pyc File 42.09 KB 0644
poplib.cpython-313.pyc File 17.99 KB 0644
posixpath.cpython-313.pyc File 17.7 KB 0644
pprint.cpython-313.pyc File 29 KB 0644
profile.cpython-313.pyc File 22.03 KB 0644
pstats.cpython-313.pyc File 36.97 KB 0644
pty.cpython-313.pyc File 7.23 KB 0644
py_compile.cpython-313.pyc File 9.83 KB 0644
pyclbr.cpython-313.pyc File 14.79 KB 0644
pydoc.cpython-313.pyc File 136.68 KB 0644
queue.cpython-313.pyc File 16.94 KB 0644
quopri.cpython-313.pyc File 9.34 KB 0644
random.cpython-313.pyc File 34.43 KB 0644
reprlib.cpython-313.pyc File 10.18 KB 0644
rlcompleter.cpython-313.pyc File 8.37 KB 0644
runpy.cpython-313.pyc File 14.05 KB 0644
sched.cpython-313.pyc File 7.42 KB 0644
secrets.cpython-313.pyc File 2.45 KB 0644
selectors.cpython-313.pyc File 25.74 KB 0644
shelve.cpython-313.pyc File 12.98 KB 0644
shlex.cpython-313.pyc File 14.5 KB 0644
shutil.cpython-313.pyc File 65.87 KB 0644
signal.cpython-313.pyc File 4.44 KB 0644
site.cpython-313.pyc File 31.86 KB 0644
sitecustomize.cpython-313.pyc File 299 B 0644
smtplib.cpython-313.pyc File 46.25 KB 0644
socket.cpython-313.pyc File 41.23 KB 0644
socketserver.cpython-313.pyc File 33.84 KB 0644
sre_compile.cpython-313.pyc File 627 B 0644
sre_constants.cpython-313.pyc File 630 B 0644
sre_parse.cpython-313.pyc File 623 B 0644
ssl.cpython-313.pyc File 63.68 KB 0644
stat.cpython-313.pyc File 5.39 KB 0644
statistics.cpython-313.pyc File 69.43 KB 0644
string.cpython-313.pyc File 11.38 KB 0644
stringprep.cpython-313.pyc File 24.67 KB 0644
struct.cpython-313.pyc File 325 B 0644
subprocess.cpython-313.pyc File 79.8 KB 0644
symtable.cpython-313.pyc File 22.65 KB 0644
tabnanny.cpython-313.pyc File 12.13 KB 0644
tarfile.cpython-313.pyc File 122.79 KB 0644
tempfile.cpython-313.pyc File 48.68 KB 0644
textwrap.cpython-313.pyc File 17.51 KB 0644
this.cpython-313.pyc File 1.38 KB 0644
threading.cpython-313.pyc File 61.72 KB 0644
timeit.cpython-313.pyc File 14.29 KB 0644
token.cpython-313.pyc File 3.49 KB 0644
tokenize.cpython-313.pyc File 24.84 KB 0644
trace.cpython-313.pyc File 33.17 KB 0644
traceback.cpython-313.pyc File 69.38 KB 0644
tracemalloc.cpython-313.pyc File 26.77 KB 0644
tty.cpython-313.pyc File 2.6 KB 0644
turtle.cpython-313.pyc File 171.21 KB 0644
types.cpython-313.pyc File 15.18 KB 0644
typing.cpython-313.pyc File 150.96 KB 0644
uuid.cpython-313.pyc File 31.4 KB 0644
warnings.cpython-313.pyc File 28.85 KB 0644
wave.cpython-313.pyc File 32.44 KB 0644
weakref.cpython-313.pyc File 31.06 KB 0644
webbrowser.cpython-313.pyc File 26.26 KB 0644
zipapp.cpython-313.pyc File 10.15 KB 0644
zipimport.cpython-313.pyc File 25.89 KB 0644
Filemanager