grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026+ ´?í¡Û(üãó~€Rt^RIt^RIt^RIt^RIt^RIt^RIt^RIH t H t H t ^RI H t ^RIHt^RIHt^RIHt.RÍOt.R NRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNR NR!NR"NR#NR$NR%NR&NR'NR(NR)NR*NR+NR,NR-Nt.R.NR/NR0NR1NR2NR3NR4NR5NR6NR7NR8NR9NR:NR;NRNR?NR@NRANRBNRCNRDNRENRFNRGNRHNRINRJNRKNRLNRMNRNNRONRPNRQNRRNRSNRTNRUNRVNRWNRXNRYNRZNR[NR\NR]NR^NR_NR`NRaNRbNRcNRdNReNRfNRgNRhNRiNRjNRkNRlNRmNRnNRoNRpNRqNRrNRsNRtNRuNRvNRwNRxNRyNRzNR{NR|NR}NR~NtRR€.t]],],],R�.,t.RÎOt/R{R‚bRƒR„bR…R†bR‡RˆbR‰RbRŠRbRR‹bRRŒbR^ bR�RŽbRkR�bRWR�bR@R�bRbR‘bR’R“bR”R•bR–R—bR˜R™R(RšR›Rœ/CtR�tRžt]!]4!R R ]4tR¡t R¢t!RÏt"RÐR£lt#!R¤R]PH4t%]#!]%]PLR¥4!R¦R§]PN4t(]PLt&!R¨R©])4t*!RªR�]4t+!R«R¬]4t,!R­R ])4t-!R®R¯])4t.!R°R]*4t/!R±R²])4t0!R³R´])4t1!RµR¶])4t2!R·R ]1]04t3]3t4R¸t5!R¹Rº]/4t6!R»R ]34t7]7t8RÑR¼lt9R½t:]R”,t;];R•8wd ]:!];4RÀt=RÁt>RÂt?RÃt@RÄtA]A!]]6RÅRÆ]?4]A!]]7RÇRÈ]>4]BtC]DRÉ8Xd!RÊtERËtFRÌtG]F!4]G!4]H!4R#R# ]d ]!RŸ4ELri;i ]<d ]!R¾];4Ly]d]!R¿];,4L�i;i)Òaž 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, image files 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. N)ÚisfileÚsplitÚjoin)ÚPath)Úcontextmanager)Údeepcopy)Ú simpledialogÚScrolledCanvasÚ TurtleScreenÚ RawTurtleÚTurtleÚShapeÚVec2DÚaddshapeÚbgcolorÚbgpicÚbyeÚ clearscreenÚ colormodeÚdelayÚ exitonclickÚ getcanvasÚ getshapesÚlistenÚmainloopÚmodeÚ no_animationÚnuminputÚonkeyÚ onkeypressÚ onkeyreleaseÚ onscreenclickÚontimerÚregister_shapeÚ resetscreenÚ screensizeÚsaveÚsetupÚsetworldcoordinatesÚ textinputÚtitleÚtracerÚturtlesÚupdateÚ window_heightÚ window_widthÚbackÚbackwardÚ begin_fillÚ begin_polyÚbkÚcircleÚclearÚ clearstampÚ clearstampsÚcloneÚcolorÚdegreesÚdistanceÚdotÚdownÚend_fillÚend_polyÚfdÚ fillcolorÚfillÚ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ÚpolyÚ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çà?Úheightgè?Ú canvwidthi�Ú canvheighti,Ú leftrightÚ topbottomÚstandardçð?ÚundobuffersizeièÚclassicÚblackÚnoresizeÚvisibleTÚlanguageÚenglishÚ exampleturtleÚturtleÚ examplescreenÚscreenzPython Turtle GraphicsÚ using_IDLEFcó@€\VR4;_uu_4pVP4pRRR4/pXFŸpVP4pV'dVPR4'dK4VP R4wrVTP4pTP4pTR9d \T4pM RT9d \T4pM \T4pYcT&K¡ V# +'giL¹;i \ d\ RT: RT: 24KÙi;i \ dLOi;i) 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& Ú-/opt/alt/python314/lib64/python3.14/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à Dà C' Ã*D Ä D Ä DÄDcód€Rp/p/p\V4'd \V4pRV9dRVR,,p\\4wrE\ WA4p\V4'd \V4p\ PV4\ PV4R# \ dRpLWi;i)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ó`a€]tRt^étoRtRtRtRtRtRt Rt Rt R t R t R tR tVtR #)raƒ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€\PWV34#©N)ÚtupleÚ__new__)ÚclsÚxÚys&&&r°rÃÚ Vec2D.__new__÷s€Ü�}‰}˜S a &Ó)Ð)ócón€\V^,V^,,V^,V^,,4#©é©r©ÚselfÚothers&&r°Ú__add__Ú Vec2D.__add__ùó)€Ü�T˜!•W˜U 1�XÕ% t¨A¥w¨u°Q­xÕ'7Ó8Ð8rÈcóä€\V\4'd4V^,V^,,V^,V^,,,#\V^,V,V^,V,4#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ó¶€\V\4'g\V\4'd)\V^,V,V^,V,4#\#rÊ)rÔr¨r§rÚNotImplementedrÍs&&r°Ú__rmul__ÚVec2D.__rmul__ÿs>€Ü �eœS× !Ò !¤Z°´u×%=Ò%=ܘ˜a� �¨¨Q­°­ Ó6Ð 6ÜÐrÈcón€\V^,V^,, V^,V^,, 4#rÊrÌrÍs&&r°Ú__sub__Ú Vec2D.__sub__rÒrÈcó:€\V^,)V^,)4#rÊrÌ©rÎs&r°Ú__neg__Ú Vec2D.__neg__s€Ü�d˜1•g�X  Q¥˜xÓ(Ð(rÈcó*€\P!V!#rÁ)ÚmathÚhypotrßs&r°Ú__abs__Ú Vec2D.__abs__s€Ü�zŠz˜4Ñ Ð rÈc ó^€\V^,)V^,4p\P!V4p\P!V4\P!V4rC\V^,V,V^,V,,V^,V,V^,V,,4#)z.rotate self counterclockwise by angle )rrãraÚ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ó&€V^,V^,3#rÊ©rßs&r°Ú__getnewargs__ÚVec2D.__getnewargs__s€Ø�Q•˜˜a�Ð!Ð!rÈcó€RV,#)z (%.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__Ú__classdictcell__©Ú __classdict__s@r°rrésAø‡€ñ ò*ò9ò3òò9ò)ò!ò?ò"÷$ð$rÈcó€\VP4pVP4VFp\W14K VPP 4F)wrE\ V4\P8XgK%WQV&K+ R#)ú#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ó<€/p\W4VP4#)r)rÚkeys)rÄr s& r°Ú __methodsr(s€à €EÜ�ÔØ �:‰:‹<ÐrÈcó�€/p\W4/p\V4pVP4F3pVR,R8XgVRRR8Xg Ws9gWv9dK)WG,WW&K5 VP4FPwr‰RVRV /p \ V\ 4'd\ RVRV/,p \X V 4\WW¨,4KR R#):NéNÚ_NÚmethodÚfuncÚ attributeéÿÿÿÿ) rrrrrÔÚ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�6�SŒ=˜B˜r˜s˜G sœN¨b¬m¸r¼yÙ à� ˆE‹Iñ ð Ÿ ™ ž ‰ ˆØ �v˜v tÐ ,ˆÜ �fœc× "Ò "ä ¨6°;ÀÐHÕHð ä ˆZ˜ÔÜ�  1¥9Ö-ó &rÈcóha€]tRtRtoRtRRltRRltRtRtRt R t R t R t R t R tRtVtR#)r iGz¸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 ó€\PPWW#R7VP4VnW#uVnVnWEuVnVnRVn \P!WVVP\P^R7Vn \P!WPP\PR7Vn\P!WPP"R7VnVPP'VP P(VP$P(R7VP+^^^R7VP-^^^R7VPP/^V^^^^^RR7VP$P/^V^^^^^RR7VP P/^V^^^^^RR7VP14VPP3R VP44R #) )r}r…Úwhite)r}r…ÚbgÚreliefÚ borderwidth)ÚcommandÚorient)r,)ÚxscrollcommandÚyscrollcommand)ÚweightÚminsizeÚnews©ÚpadxÚin_ÚpadyÚrowÚcolumnÚrowspanÚ columnspanÚstickyz N)ÚTKÚFrameÚ__init__Úwinfo_toplevelÚ _rootwindowr}r…r†r‡r)ÚCanvasÚSUNKENÚ_canvasÚ ScrollbarÚxviewÚ HORIZONTALÚhscrollÚyviewÚvscrollÚ configureÚsetÚ rowconfigureÚcolumnconfigureÚgridrcÚ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 óœ€V'dWnV'dW nV'dW0nVPP VVP)^,VP)^,VP^,VP^,3R7VPP RVPVP , ^,,VP, 4VPPRVPVP, ^,,VP, 4VP4R#)zB¿o¹oõ#Nô Oà ×ÑÖrÈc  ó¶€VPP4pVPP4pVPPRVPV, ,VP, 4VPP RVP V, ,VP , 4WP8gW P 8dIVPP^V^^^^^RR7VPP^V^^^^^RR7R#VPP4VPP4R#)z@Adjust scrollbars according to window- and canvas-size. r„r2r3N) rCÚ winfo_widthÚ winfo_heightrVr†rWr‡rGrNrIÚ grid_forget)rÎÚcwidthÚcheights& r°rXÚ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 ó&€VP4R#)zself-explanatoryN)rX)rÎÚevents&&r°rPÚScrolledCanvas.onResizeˆs€à ×ÑÖrÈc ó6€VPP!V!#©ú?'forward' method, which canvas itself has inherited... )rCÚbbox©rÎÚargss&*r°rhÚScrolledCanvas.bboxŒs€ð�|‰|× Ò  $Ñ'Ð'rÈc ó:€VPP!V/VB#rf)rCÚcget©rÎrjÚkwargss&*,r°rmÚScrolledCanvas.cget‘s€ð�|‰|× Ò  $Ð1¨&Ñ1Ð1rÈc ó>€VPP!V/VBR#©rgN)rCrUrns&*,r°rUÚScrolledCanvas.config–ó€ð � ‰ ×Ò˜TÐ, VÔ,rÈc ó>€VPP!V/VBR#rr)rCrOrns&*,r°rOÚScrolledCanvas.bind›s€ð � ‰ ×Ò˜4Ð* 6Ô*rÈc ó>€VPP!V/VBR#rr)rCÚunbindrns&*,r°rxÚScrolledCanvas.unbind rtrÈc ó:€VPP4R#rr)rCÚ focus_forcerßs&r°r{ÚScrolledCanvas.focus_force¥s€ð � ‰ × Ñ Ö"rÈ) rCr@r)r‡r†r…rGrIr})éôi^iXr}©NNN)r÷rørùrúrûr>rcrXrPrhrmrUrOrxr{rürýrþs@r°r r GsAø‡€ñô <ô2ò$'ò ò(ò 2ò -ò +ò -÷ #ð#rÈrCcóNa€]tRtRtoRtRtRtRtRtRt Rt R t R t Vt R #) Ú_Rooti­z'Root class for Screen based on Tkinter.cóD€\PPV4R#rÁ)r<ÚTkr>rßs&r°r>Ú_Root.__init__¯s€Ü �‰�‰�tÖrÈcód€\WW#V4VnVPP^RR7R#)rÚboth)ÚexpandrCN)r rCÚpack)rÎr}r…r_r`s&&&&&r°Ú setupcanvasÚ_Root.setupcanvas²s)€Ü% d°6À7ÓKˆŒ Ø � ‰ ×Ñ ¨ÐÖ0rÈcó€VP#rÁ©rCrßs&r°Ú _getcanvasÚ_Root._getcanvas¶s €Ø�|‰|ÐrÈcó:€VPRWW43,4R#)z %dx%d%+d%+dN)Úgeometry)rÎr}r…ÚstartxÚstartys&&&&&r°Ú set_geometryÚ_Root.set_geometry¹s€Ø � ‰ �m U°FÐ$CÕCÖDrÈcó*€VPRV4R#)ÚWM_DELETE_WINDOWN)Ú wm_protocol)rÎÚdestroys&&r°Ú ondestroyÚ_Root.ondestroy¼s€Ø ×ÑÐ+¨WÖ5rÈcó"€VP4#rÁ)Úwinfo_screenwidthrßs&r°Ú win_widthÚ_Root.win_width¿s€Ø×%Ñ%Ó'Ð'rÈcó"€VP4#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þs@r°r€r€­s1ø‡€Ù1òò1òòEò6ò(÷)ð)rÈr€cóa€]tRtRtoRtRtRtRtRtR&Rlt R t R&R lt R t R t R tRtR'RltRtR(RltR(RltR(RltR(RltRtR'RltRtRtRtRtRtRtRtRtRt R)R lt!R!t"R"t#R#t$R)R$lt%R%t&Vt'R#)*Ú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 ól€\P!^^VPR7pVP4V#)z$return a blank image object )r}r…rQ)r<Ú PhotoImageÚcvÚblank)rÎÚimgs& r°Ú _blankimageÚTurtleScreenBase._blankimageÐs(€ô�mŠm !¨A°d·g±gÔ>ˆØ � ‰ Œ ؈ rÈc óD€\P!WPR7#)zSreturn an image object containing the imagedata from an image file named filename. )ÚfilerQ)r<r¥r¦)rÎr©s&&r°Ú_imageÚTurtleScreenBase._image×s€ô�}Š} (·7±7Ô;Ð;rÈcóæ€Wn\V\4'd.VPPpVPPpM†\ VPP R44p\ VPP R44pVPPV)^,V)^,V^,V^,3R7W nW0nR;VnVn RVn R#)r}r…©rTr‹FN) r¦rÔr r†r‡r¨rmrUÚxscaleÚyscaleÚ _updating)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”k؈ŽrÈc ó>€VPPRRRR7#)z�>ˆ>ð �G‰G× $Ñ $Ô &٠؈Œð #Ø �G‰G�N‰NÔ à"ˆDŽNø˜UˆD�Nús ·AÁ A#c ó<€VPPV4R#)z-Delay subsequent canvas actions for delay ms.N)r¦Úafter©rÎrs&&r°Ú_delayÚTurtleScreenBase._delay:s€à �‰� ‰ �eÖrÈc ó~€VPPV4pRpV# \PdRpT#i;i)zCCheck if the string color is a legal Tkinter color string. TF)r¦Ú winfo_rgbr<ÚTclError)rÎr:ÚrgbÚoks&& r°Ú_iscolorstringÚTurtleScreenBase._iscolorstring>sF€ð Ø—'‘'×#Ñ# EÓ*ˆC؈Bðˆ øô�{‰{ô ؉B؈ ð ús ‚!¡<»<c óœ€Ve/VPPVR7VP4R#VPPR4#)zNSet canvas' backgroundcolor if color is not None, else return backgroundcolor.N)r)r))r¦rUrÝrm)rÎr:s&&r°Ú_bgcolorÚTurtleScreenBase._bgcolorHs8€ð Ò Ø �G‰G�N‰N ˆNÔ &Ø �L‰LŽNà—7‘7—<‘< Ó%Ð %rÈc  ó€VwrgW`P,pWpP,pRRRRRR/pVPPV^, V)W(V,WTR7p VPP V 4wr«rÍWœ^, 3#)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.rRÚswÚcenterrírbÚse)ÚtextÚanchorrCÚfont)r±r²r¦Ú create_textrh)rÎr^ÚtxtÚalignrôrYrÅrÆrórØÚx0Úy0Úx1Úy1s&&&&&& r°Ú_writeÚTurtleScreenBase._writeQs‚€ð ‰ˆØ — ‘ �OˆØ — ‘ �OˆØ˜˜x¨¨W°TÐ;ˆØ�w‰w×"Ñ" 1 Q¥3¨¨°3ÈÅØ/7ð#óFˆàŸ™Ÿ™ dÓ+‰ˆ�ؘ•TˆzÐrÈc ó²aa€Sf&SPPVRV,4R#VV3RlpSPPVRV,WT4R#)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ú cóð<€SPPVP4SP, SPP VP 4)SP , r!S!W4R#rÁ©r¦ÚcanvasxrÅr±ÚcanvasyrÆr²©rcrÅrÆÚfunrÎs& €€r°ÚeventfunÚ+TurtleScreenBase._onclick..eventfunhóLø€ØŸ™Ÿ™¨¯©Ó0°·±Õ<ØŸ™Ÿ™¨¯©Ó1Ð1°$·+±+Õ=ðá�A– rÈ©r¦Ú tag_unbindÚtag_bind©rÎrØrÚnumÚaddrsf&f&& r°Ú_onclickÚTurtleScreenBase._onclick_sEù€ð Š;Ø �G‰G× Ñ ˜t ]°SÕ%8Ö 9ö ð �G‰G× Ñ ˜T =°3Õ#6¸Ö FrÈc ó²aa€Sf&SPPVRV,4R#VV3RlpSPPVRV,WT4R#)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. Nzcóð<€SPPVP4SP, SPP VP 4)SP , r!S!W4R#rÁrrs& €€r°rÚ-TurtleScreenBase._onrelease..eventfunzrrÈr r sf&f&& r°Ú _onreleaseÚTurtleScreenBase._onreleasensJù€ð Š;Ø �G‰G× Ñ ˜tÐ%?À#Õ%EÖ Fö ð �G‰G× Ñ ˜TÐ#=ÀÕ#CØ%ö ,rÈc ó²aa€Sf&SPPVRV,4R#VV3RlpSPPVRV,WT4R#)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. Nzcó<€SPPVP4SP, SPP VP 4)SP , r!S!W4R# \dR#i;irÁ)r¦rrÅr±rrÆr²r¶rs& €€r°rÚ*TurtleScreenBase._ondrag..eventfun�scø€ðØ ŸG™GŸO™O¨E¯G©GÓ4°T·[±[Õ@Ø ŸG™GŸO™O¨E¯G©GÓ4Ð4°T·[±[Õ@ðᘖIøÜ ôÚðúsƒA4A9Á9 BÂBr r sf&f&& r°Ú_ondragÚTurtleScreenBase._ondrag�sGù€ð Š;Ø �G‰G× Ñ ˜tÐ%8¸3Õ%>Ö ?ö ð �G‰G× Ñ ˜TÐ#6¸Õ#<¸hÖ LrÈc ó®aa€Sf%SPPRV,4R#VV3RlpSPPRV,WC4R#)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óð<€SPPVP4SP, SPP VP 4)SP , r!S!W4R#rÁrrs& €€r°rÚ1TurtleScreenBase._onscreenclick..eventfun¢rrÈ©r¦rxrO)rÎrr rrsff&& r°Ú_onscreenclickÚTurtleScreenBase._onscreenclick–s=ù€ð Š;Ø �G‰G�N‰N˜=¨3Õ.Ö /ö ð �G‰G�L‰L˜¨Õ,¨hÖ có<€S!4R#rÁrñ©rcrs&€r°rÚ0TurtleScreenBase._onkeyrelease..eventfun¯óø€Ù–rÈr©rÎrr®rs&f& r°Ú _onkeyreleaseÚTurtleScreenBase._onkeyrelease¨s?ø€ð Š;Ø �G‰G�N‰NÐ,¨sÕ2°DÖ 9õ à �G‰G�L‰LÐ*¨SÕ0°(Ö ;rÈc ó4a€SfHVfVPPRR4R#VPPRV,R4R#V3RlpVfVPPRV4R#VPPRV,V4R#)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 z có<€S!4R#rÁrñr#s&€r°rÚ.TurtleScreenBase._onkeypress..eventfun¾r%rÈrr&s&f& r°Ú _onkeypressÚTurtleScreenBase._onkeypress³skø€ð Š;ØŠ{Ø—‘—‘˜|¨TÖ2à—‘—‘˜°Õ4°dÖ;õ àŠ{Ø—‘— ‘ ˜\¨8Ö4à—‘— ‘ ˜_¨sÕ2°HÖ=rÈc ó:€VPP4R#)z=Set focus on canvas (in order to collect key-events) N)r¦r{rßs&r°Ú_listenÚTurtleScreenBase._listenÅs€ð �‰×ÑÖrÈc ó„€V^8XdVPPV4R#VPPW!4R#)z?Install a timer, which calls fun after t milliseconds. N)r¦Ú after_idlerà©rÎrÚts&&&r°Ú_ontimerÚTurtleScreenBase._ontimerÊs-€ð �Œ6Ø �G‰G× Ñ ˜sÖ #à �G‰G�M‰M˜!Ö !rÈc ó>€VPP^^VR7#)z0Create and return image item on canvas. ©Úimage)r¦Ú create_image)rÎr9s&&r°Ú _createimageÚTurtleScreenBase._createimageÒs €ð�w‰w×#Ñ# A q°Ð#Ó6Ð6rÈc óÆ€VwrEVPPWVP,V)VP,34VPP WR7R#)zJConfigure image item as to draw image object at position (x,y) on canvas) r8N)r¦rÂr±r²Ú itemconfig)rÎrØr^r9rÅrÆs&&&& r°Ú _drawimageÚTurtleScreenBase._drawimage×sH€ð‰ˆØ �‰�‰�t $§+¡+�o°¨r°D·K±KÕ/?Ð@ÔAØ �‰×ј4ÐÖ-rÈc ót€VPPWR7VPPV4R#)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 .r8N)r¦r>Ú tag_lower)rÎrØr9s&&&r°Ú _setbgpicÚTurtleScreenBase._setbgpicßs+€ð �‰×ј4ÐÔ-Ø �‰×ј$ÖrÈc ó8€VPPV4#)zAReturn 'line' or 'polygon' or 'image' depending on type of item. )r¦rr×s&&r°Ú_typeÚTurtleScreenBase._typeçs€ð�w‰w�|‰|˜DÓ!Ð!rÈc ó¼€VPPV4p\^\V4^4Uu.uFq2V,W#^,,)3NK ppV#uupi)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)] >>> )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óB€VPPWW43R7R#)r°N)r¦rU)rÎÚsrx1Úsry1Úsrx2Úsry2s&&&&&r°Ú_setscrollregionÚ!TurtleScreenBase._setscrollregionùs€Ø �‰�‰ T°Ð$<ˆÖ=rÈcól€VPP4pVF“p\VPPV44p.pV'dEVR,wrxVP Wq,4VP W‚,4VR,pKLVPP!V.VO5!K• R#):NéN:rWNNN)r¦Úfind_allrrÂrÁ) rÎÚ xscalefactorÚ yscalefactorrrØÚ coordinatesÚ newcoordlistrÅrÆs &&& r°Ú_rescaleÚTurtleScreenBase._rescaleüsˆ€Ø—‘× Ñ Ó"ˆÛˆDܘtŸw™wŸ~™~¨dÓ3Ó4ˆK؈Lߨ" 2•‘�Ø×#Ñ# AÕ$4Ô5Ø×#Ñ# AÕ$4Ô5Ø)¨"�o’ Ø �G‰G�NŠN˜4Ð / ,Ö /órÈc óV€\VP\4'gVPVP3#Yu;Jd Tu;Jdf0MM,VPPVPP3#VeWnVeW nVPP WV4R#)zQResize the canvas the turtles are drawing on. Does not alter the drawing window. N)rÔr¦r r†r‡rcrYs&&&&r°Ú_resizeÚTurtleScreenBase._resizes}€ô ˜$Ÿ'™'¤>×2Ò2Ø—>‘> 4§?¡?Ð2Ð 2Ø Õ 0 b× 0Ó 0Ø—7‘7×$Ñ$ d§g¡g×&8Ñ&8Ð8Ð 8Ø Ò Ø&ŒNØ Ò !Ø(ŒOØ �‰� ‰ �i¨RÖ0rÈc óØ€VPP4pV^8:dVPR,pVPP4pV^8:dVPR,pW3#)z:Return the width and height of the turtle window. r}r…)r¦r\r])rÎr}r…s& r°Ú _window_sizeÚTurtleScreenBase._window_sizesZ€ð—‘×#Ñ#Ó%ˆØ �AŒ:Ø—G‘G˜GÕ$ˆEØ—‘×%Ñ%Ó'ˆØ �QŒ;Ø—W‘W˜XÕ&ˆF؈}ÐrÈc óN€VPPP4R#)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.mainloop"s€ð �‰� ‰ ×ÑÖrÈc óF€\P!WVPR7#)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.textinput1s€ô×%Ò% e¸D¿G¹GÔDÐDrÈc  óJ€\P!WVWEVPR7#)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Úmaxvalueri)rÚaskfloatr¦)rÎr*rkÚdefaultÚminvalÚmaxvals&&&&&&r°rÚTurtleScreenBase.numinput@s%€ô$×$Ò$ UÀØ.4Ø,0¯G©Gô5ð 5rÈ)r³r‡r†r¦r±r²)NNNFrÁ©rNr~)(r÷rørùrúrûr©r­r>r»rÉrÏrÓrÙrÝrârérìrürrrrr'r,r/r5r;r?rCrFrMrTr]r`rcrr)rrürýrþs@r°r£r£Ès¸ø‡€ñòò<ò òOô (ò28ô (ò.ò #òòô&ò ô Gô,ô&Mô*=ò$ <ô>ò$ò "ò7ò .ò ò"ò ò>ò 0ô 1ò ò ò E÷5ò5rÈr£có€]tRtRtRtRtR#)rƒi\zª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ƒ\s †ñó  rÈcó€]tRtRtRtRtR#)ÚTurtleGraphicsErroriezSome TurtleGraphics Error rñNrxrñrÈr°rzrzes†õrÈrzcó8a€]tRtRtoRtRRltRRltRtVtR#)r ijzÐ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ó¸€WnVR8Xd#\V\4'd \V4pM$VR8XdMVR8Xd.pM\ RV,4hW nR#)Úpolygonr9ÚcompoundzThere is no shape type %sN)rFrÔrrÂrzÚ_data)rÎÚtype_Údatas&&&r°r>ÚShape.__init__qsQ€ØŒ Ø �IÔ Ü˜$¤×%Ò%ܘT“{�øØ �gÕ à �jÔ Ø‰Dä%Ð&AÀEÕ&IÓJÐ JØŽ rÈc ó¦€VPR8wd\RVP,4hVfTpVPPWV.4R#)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)rFrzrrÁ)rÎr]rCr¹s&&&&r°Ú addcomponentÚShape.addcomponent~sP€ð �:‰:˜Ô #Ü%Ð&HØBFÇ*Á*õ'MóNð Nà Š?؈GØ � ‰ ×ј4 wÐ/Ö0rÈ)rrFrÁ) r÷rørùrúrûr>r„rürýrþs@r°r r jsø‡€ñô ÷1ò1rÈcóPa€]tRtRtoRtR RltR RltRtRtRt R t R t Vt R#) ÚTbufferi–z5Ring buffer used as undobuffer for RawTurtle objects.cóN€WnR..V,VnRVnRVnR#)NFr)ÚbufsizeÚbufferÚptrÚcumulate)rÎr‰s&&r°r>ÚTbuffer.__init__˜s%€ØŒ Ø�v�h Õ(ˆŒ ؈ŒØˆŽ rÈNcó¢€Vf.\VP4FpR.VPV&K MWnR..V,VnRVnR#)Nr)rIr‰rŠr‹)rÎr‰rKs&& r°rcÚ Tbuffer.reset�sG€Ø Š?ܘ4Ÿ<™<Ö(�Ø"& �— ‘ ˜A“ò)ð#ŒLØ ˜6˜( WÕ,ˆDŒK؈ŽrÈcó.€VP^8”d„VP'gDVP^,VP,VnWPVP&R#VPVP,P V4R#R#©rËN)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óø€VP^8”diVPVP,pVfR#R.VPVP&VP^, VP,VnV#R#r‘)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ó\€VPVPPR.4, #rÁ)r‰rŠÚcountrßs&r°Ú nr_of_itemsÚTbuffer.nr_of_itemsµs"€Ø�|‰|˜dŸk™k×/Ñ/°°Ó7Õ7Ð7rÈcón€\VP4R,\VP4,#)Ú )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>rcr’r•r™rõrürýrþs@r°r‡r‡–s+ø‡€Ù?ôô ò3òò8÷6ð6rÈr‡cóVa€]tRtRtoRtRt]R,]R,]R,3RltRtR'R lt R t R'R lt R t Rt R'RltRtRtRtR(RltR'Rlt]R4tRtRtRtRtRtRtR)RltRtR'RltR(RltR*R lt R'R!lt!R+R"lt"R#R$/R%lt#]t$]t%]t&] t']t(R&t)Vt*R #),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ó€\PW4R\RR4R\RR4R\RR4R\RR4R\RR4R\RR4R\RVP44/VnR R /VnW nW@n\R ,Vn .Vn VP4\PR 8Xd7VP4pVPR R7VPRR7R#R#)Úarrowr}r”r5ÚsquareÚtriangler�r§r9Únopicr´rÚdarwinT)ÚtopmostFN)©éöÿÿÿ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³)r¯r±)rºr¯)rrž)rWr­)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À)rËgš™™™™'@)r¨rÄ)©rËrË)r¶r²r¹)rµr²)r£r>r r©Ú_shapesÚ_bgpicsÚ_modeÚ _delayvaluer·Ú _colormodeÚ_keysr6ÚsysÚplatformr?Ú wm_attributes)rÎr¦rrrÚ rootwindows&&&&& r°r>ÚTurtleScreen.__init__Ås €ä×!Ñ! $Ô+ðœU 9Ð.GÓHØœU 9ð/&ó'ð œU 9ð/HóIð œU 9ð/)ó*àœU 9ð/+ó,àœU 9Ð.KÓLØœU 7¨D×,<Ñ,<Ó,>Ó?ð%ˆŒ ð*  "�~ˆŒ àŒ Ø Ôܘ{Õ+ˆŒØˆŒ Ø � ‰ Œ Ü �<‰<˜8Ô #ð×*Ñ*Ó,ˆJØ × $Ñ $¨TÐ $Ô 2Ø × $Ñ $¨UÐ $Ö 3ñ $rÈc óà€\R,Vn\R,VnVPR4VP R4VnRVn^Vn^Vn.Vn VPR4R FpVPRV4K VPR4VPR,F'pVPRV4VPRV4K) R\nR#) 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(NºNNN)rrWé)r·rÉrÊrÙr;Ú_bgpicÚ _bgpicnameÚ_tracingÚ_updatecounterÚ_turtlesrrTrrË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 ó‚€Vf VP#VP4pVR9d\RV,4hWnVR9diVPVP)^,VP )^,VP^,VP ^,4R;VnVnVP4R#)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' NzNo turtle-graphics-mode %sr‹©rŠÚlogoÚworld)rŠrß) rÈÚlowerrzrTr†r‡r±r²rc©rÎrs&&r°rÚTurtleScreen.mode sž€ð, Š<Ø—:‘:Ð Ø�z‰z‹|ˆØ Ð4Ô 4Ü%Ð&BÀTÕ&IÓJÐ JØŒ Ø Ð'Ô 'Ø × !Ñ ! 4§>¡> /°1Õ"4°t·±Ð6FÈÕ6IØ'+§~¡~°qÕ'8¸$¿/¹/È1Õ:Lô Nà(+Ð +ˆDŒK˜$œ+Ø � ‰ Ž rÈc óÌ€VP4R8wdVPR4\W1, 4p\WB, 4pVP4wrxVPV^, V^, 4VPVP r©VP V, VnVPV, VnWP,p V)VP ,p VP V ,p VPV ,pVPW¼WÞ4VPVPV , VP V , 4VP4R#)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§rcr%r±r²r†r‡rTr]r-)rÎÚllxÚllyÚurxÚuryÚxspanÚyspanÚwxÚwyÚ oldxscaleÚ oldyscalerPrQrRrSs&&&&& 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 ó €Vf\RVPV44pMT\V\4'd\RVPV44pM"\V\4'd \RV4pW P V&R#)a:Adds a turtle shape to TurtleScreen's shapelist. Arguments: (1) name is the name of an image file (PNG, GIF, PGM, and PPM) 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 the name of an image file (PNG, GIF, PGM, and PPM). Installs the corresponding image shape. !! Image-shapes DO NOT rotate when turning the turtle, !! so they do not display the heading of the turtle! (3) name is an arbitrary string and shape is a tuple of pairs of coordinates. Installs the corresponding polygon shape (4) 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))) Nr9r})r r­rÔrrÂrÆ)rÎÚnamerms&&&r°r#ÚTurtleScreen.register_shapeTse€ð6 Š=ܘ' 4§;¡;¨tÓ#4Ó5‰EÜ ˜œs× #Ò #ܘ' 4§;¡;¨uÓ#5Ó6‰EÜ ˜œu× %Ò %ܘ) UÓ+ˆEà"� ‰ �TÓrÈc ór€\V4^8Xd V^,p\V\4'd<VPV4'gVR8XdV#\ R\V4,4hVwr#pTPR8Xd(Y#T3Uu.uFp\RT,4NK upwr#p^Tu;8:d^ÿ8:d'MM#^Tu;8:d^ÿ8:dMM^Tu;8:d^ÿ8:gM\ R\T4,4hRY#T3,# \ \ 3d\ R\T4,4hi;iuupi)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´zbad color string: %súbad color arguments: %sr‹çào@úbad color sequence: %sú #%02x%02x%02x) rJrÔrrérzÚ TypeErrorr¤rÊÚround)rÎr:r™ÚgÚbrÅs&& r°Ú _colorstrÚTurtleScreen._colorstrxs €ô ˆ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Á,DÂD4Ä-D1c ó¼a€VPR4'gV#\V4^8Xd&RUu.uFp\WV^,^4NK ppMR\V4^8Xd1VR,Uu.uFp^\W,^4,NK ppM\RV,4h\;QJd.V3RlV4FNK 5#!V3RlV44#uupiuupi)ršºrNNzbad colorstring: %sc3óV<"€TFqSP,^ÿ, x€K R#5i)éÿN)rÊ)Ú.0rìrÎs& €r°Ú Ú&TurtleScreen._color..œs øé€Ð9±b°˜Ÿ™Õ(¨×,Ò,³bùsƒ&))rrÔrµ)r£rJr¨rzrÂ)rÎÚcstrrKrÈrµsf& r°Ú_colorÚTurtleScreen._color“s¸ø€Ø�‰˜s×#Ò#؈KÜ ˆt‹9˜Œ>Ù09Ó:± ¨1”#�d˜Q˜q�S�k 2Ö&± ˆBÐ:ˆBÜ �‹Y˜!Œ^Ø/3°B®xÓ8©x¨!�"”S˜� "Ó%×%Ð%©xˆBÐ8ˆBä%Ð&;¸dÕ&BÓCÐ CߌuÔ9±bÓ9�uÐ9ˆuÔ9±bÓ9Ó9Ð9ùò ;ùâ8s ¯CÁ+"Cc óŠ€Vf VP#VR8Xd\V4VnR#V^ÿ8Xd\V4VnR#R#)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ÎÚcmodes&&r°rÚTurtleScreen.colormodežs<€ð Š=Ø—?‘?Ð "Ø �CŒ<Ü# E›lˆDŽOØ �cŒ\Ü! %›jˆDŽOñrÈc ó‚€VPF.pVPVP4VP4K0 R#)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Èrc)rÎr”s& r°rcÚTurtleScreen.reset³s+€ð—m”mˆFØ �O‰O˜DŸJ™JÔ 'Ø �L‰LŽNó$rÈc ó€VP#)z›Return the list of turtles on the screen. Example (for a TurtleScreen instance named screen): >>> screen.turtles() [] )rÙrßs&r°r,ÚTurtleScreen.turtles¿s€ð�}‰}ÐrÈc óŠ€V'dVPV4pMRpVPV4pVeVPV4pV#)aSet or return backgroundcolor of the TurtleScreen. Four input formats are allowed: - bgcolor() Return the current background color as color specification string or as a tuple (see example). May be used as input to another color/pencolor/fillcolor/bgcolor call. - bgcolor(colorstring) Set the background color to colorstring, which is a Tk color specification string, such as "red", "yellow", or "#33cc8c". - bgcolor((r, g, b)) Set the background color to the RGB color represented by the tuple of r, g, and b. Each of r, g, and b must be in the range 0..colormode, where colormode is either 1.0 or 255 (see colormode()). - bgcolor(r, g, b) Set the background color to the RGB color represented by r, g, and b. Each of r, g, and b must be in the range 0..colormode. Example (for a TurtleScreen instance named screen): >>> screen.bgcolor("orange") >>> screen.bgcolor() 'orange' >>> colormode(255) >>> screen.bgcolor('#800080') >>> screen.bgcolor() (128.0, 0.0, 128.0) N)rürìr©rÎrjr:s&* r°rÚTurtleScreen.bgcolorÈsA€÷< Ø—N‘N 4Ó(‰EàˆEØ— ‘ ˜eÓ$ˆØ Ò Ø—K‘K Ó&ˆE؈ rÈc óÄ€Vf VP#\V4Vn^VnVe\V4VnVP'dVP 4R#R#)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 N)r×r¨rØrÉr-)rÎÚnrs&&&r°r+ÚTurtleScreen.tracerïsO€ð& Š9Ø—=‘=РܘA›ˆŒ ØˆÔØ Ò Ü" 5›zˆDÔ Ø �=�=ˆ=Ø �K‰KŽMñ rÈc óF€Vf VP#\V4VnR#)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# ó¨"€VP4pVP^4Rx€VPV4R# TPT4i;i5i)a[Temporarily turn off auto-updating the screen. This is useful for drawing complex shapes where even the fastest setting is too slow. Once this context manager is exited, the drawing will be displayed. Example (for a TurtleScreen instance named screen and a Turtle instance named turtle): >>> with screen.no_animation(): ... turtle.circle(50) N)r+)rÎr+s& r°rÚTurtleScreen.no_animations=é€ð—‘“ˆð Ø �K‰K˜ŒNÛ à �K‰K˜Ö øˆD�K‰K˜Õ üs‚A”<©A¼AÁAc óò€\P'gR\n\hVP^8”d?V;P^, unV;PVP,unR#R#)zIncrement update counter.TN)r Ú_RUNNINGrƒr×rØrßs&r°Ú _incrementudcÚTurtleScreen._incrementudc.sS€ä×$×$Ð$Ø$(ŒLÔ !ÜÐ Ø �=‰=˜1Ô Ø × Ò  1Õ $Õ Ø × Ò  4§=¡=Õ 0× ñ rÈc óÆ€VPpRVnVP4F#pVP4VP4K% WnVP 4R#)z'Perform a TurtleScreen update. TN)r×r,Ú _update_dataÚ _drawturtlerÝ)rÎÚtracingr4s& r°r-ÚTurtleScreen.update7sG€ð—-‘-ˆØˆŒ Ø—‘–ˆAØ �N‰NÔ Ø �M‰MŽOñ ð Œ Ø � ‰ ŽrÈc ó0€VP4^,#)zzReturn the width of the turtle window. Example (for a TurtleScreen instance named screen): >>> screen.window_width() 640 ©rcrßs&r°r/ÚTurtleScreen.window_widthBó€ð× Ñ Ó" 1Õ%Ð%rÈc ó0€VP4^,#)z|Return the height of the turtle window. Example (for a TurtleScreen instance named screen): >>> screen.window_height() 480 r$rßs&r°r.ÚTurtleScreen.window_heightKr&rÈc ó€VP#)z·Return the Canvas of this TurtleScreen. No argument. Example (for a Screen instance named screen): >>> cv = screen.getcanvas() >>> cv )r¦rßs&r°rÚTurtleScreen.getcanvasTs €ð�w‰wˆrÈc óH€\VPP44#)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Ærrßs&r°rÚTurtleScreen.getshapes`s€ô�d—l‘l×'Ñ'Ó)Ó*Ð*rÈc ó*€VPWV4R#)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°rTÚTurtleScreen.onclickks€ð ×јC cÖ*rÈc óÞ€Vf-W P9dVPPV4M+W P9dVPPV4VPW4R#)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.onkey|sP€ð. Š;Ø—j‘jÔ Ø— ‘ ×!Ñ! #Ô&øØ Ÿ ™ Ô "Ø �J‰J× Ñ ˜cÔ "Ø ×ј3Ö$rÈc óæ€Vf-W P9dVPPV4M/Ve,W P9dVPPV4VPW4R#)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Ër2rÁr,r3s&&&r°rÚTurtleScreen.onkeypressšsT€ð2 Š;Ø—j‘jÔ Ø— ‘ ×!Ñ! #Ô&øØ Š_ ¯J©JÔ!6Ø �J‰J× Ñ ˜cÔ "Ø ×јÖ"rÈc ó&€VP4R#)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 ó(€VPW4R#)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)r5r3s&&&r°r"ÚTurtleScreen.ontimerÆs€ð& � ‰ �cÖrÈc óè€Vf VP#WP9dVPV4VPV&VPVPVPV,4WnR#)aSet background image or return name of current backgroundimage. Optional argument: picname -- a string, name of an image file (PNG, GIF, PGM, and PPM) 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­rCrÕ)rÎÚpicnames&&r°rÚTurtleScreen.bgpicÛsT€ð" Š?Ø—?‘?Ð "Ø Ÿ,™,Ô &Ø$(§K¡K°Ó$8ˆD�L‰L˜Ñ !Ø �‰�t—{‘{ D§L¡L°Õ$9Ô:Ø!ŽrÈc ó&€VPWV4#)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`rYs&&&&r°r%ÚTurtleScreen.screensizeós€ð"�|‰|˜I°2Ó6Ð6rÈÚ overwriteFc ó‚€\V4pVPP4'g\RVP R24hV'g&VP4'd\ RV R24hVP ;pR9d\ RV R24hVPP4pVPV4R#) aDSave the drawing as a PostScript file Arguments: filename -- a string, the path of the created file. Must end with '.ps' or '.eps'. Optional arguments: overwrite -- boolean, if true, then existing files will be overwritten Example (for a TurtleScreen instance named screen): >>> screen.save('my_drawing.eps') zThe directory 'z$' does not exist. Cannot save to it.z The file 'zY' already exists. To overwrite it use the 'overwrite=True' argument of the save function.zUnknown file extension: 'z!', must be one of {'.ps', '.eps'}N>ú.psú.eps) rriÚexistsÚFileNotFoundErrorÚFileExistsErrorÚsuffixr¤r¦Ú postscriptÚ write_text)rÎr©rBÚextrJs&&$ r°r&ÚTurtleScreen.savesÇ€ô˜“>ˆØ�‰×%Ñ%×'Ò'Ü#Ø! (§/¡/Ð!2ð3&ð&óð ÷˜XŸ_™_×.Ò.Ü!ؘX˜Jð'GðGóð ð—?‘?Ð "ˆC¨?Ô :ÜØ+¨C¨5ð13ð3óð ð —W‘W×'Ñ'Ó)ˆ Ø×јJÖ'rÈ) rÕrÖrÇrÊrÉrËrÈrÆr×rÙrØr±r²rÁ©NNrvrÊr~)+r÷rørùrúrûrr·r>r6rr(r#rürrrcr,rr+rrrrr-r/r.rrrTrrrr"rr%r&r!r$rrr rürýrþs@r°r r ¼sêø‡€ñð €Hà $ V¥ Ø  Õ,°D¸µMô&4òPô< òD%ôN"#òH+ò6 :ô)ò* òò%ôNô8 &ðñ óð ò&1ò ò&ò&ò ò +ô+ò"%ô<#ô@ ôô*"ô07ð&(¨%ô(ðB€MØ€KØ€KØ€H؆LrÈc ó~a€]tRtRtoRtR]!RR4R]!RR4R]!RR4/tRt^t^t ]3Rlt R t R*R lt R t R+R ltRtRtRtRtR,RR/V3RlRllltRtRtRtRtRtRtRtR*RltRtRtR tR*R!ltR*R"lt R#t!R$t"R,R%lt#R-R&lt$R,R'lt%R*R(lt&]t']t(]t)]t*]t+]t,]t-]t.]"t/R)t0Vt1R #).Ú TNavigatori-zJNavigation part of the RawTurtle. Implements methods for turtle movement. rŠr‹çràrßcóÞ€VPVnVPVnWnRVnVP 4RVnVPV4\PV4R#rÁ) ÚDEFAULT_ANGLEOFFSETÚ _angleOffsetÚDEFAULT_ANGLEORIENTÚ _angleOrientrÈÚ undobufferr;r rPrcrâs&&r°r>ÚTNavigator.__init__9sT€Ø ×4Ñ4ˆÔØ ×4Ñ4ˆÔØŒ ؈ŒØ � ‰ ŒØˆŒ Ø � ‰ �dÔÜ×јÖrÈc ót€\RR4Vn\PVP,VnR#)zHreset turtle to its initial values Will be overwritten by parent class rQN)rÚ _positionrPÚSTART_ORIENTATIONrÈÚ_orientrßs&r°rcÚTNavigator.resetCs'€ô ˜s C›ˆŒÜ"×4Ñ4°T·Z±ZÕ@ˆŽ rÈNc ó°€Vf VP#VR9dR#WnVR9d^Vn^VnR#VPR, VnRVnR#)z:Set turtle-mode to 'standard', 'world' or 'logo'. Nç@rÞ)rŠràr)rÈrTrVÚ _fullcirclerâs&&r°r ÚTNavigator._setmodeKsX€ð Š<Ø—:‘:Ð Ø Ð4Ô 4Ù ØŒ Ø Ð(Ô (Ø !ˆDÔ Ø !ˆDÖ à $× 0Ñ 0°Õ 3ˆDÔ Ø "ˆDÖ rÈc ó~€WnRV, VnVPR8Xd ^VnR#VR, VnR#)z+Helper function for degrees() and radians()ihrŠr_N)r`Ú _degreesPerAUrÈrT©rÎÚ fullcircles&&r°Ú_setDegreesPerAUÚTNavigator._setDegreesPerAUZs4€à%ÔØ  �^ˆÔØ �:‰:˜Ô #Ø !ˆDÖ à *¨2¥ ˆDÖ rÈc ó(€VPV4R#)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)rfrds&&r°r;ÚTNavigator.degreescs€ð, ×јjÖ)rÈc óD€VP\P4R#)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)rfrãÚtaurßs&r°raÚTNavigator.radians{s€ð ×ÑœdŸh™hÖ'rÈc óp€VPVPV,,pVPV4R#)z)move turtle forward by specified distanceN)rZr\Ú_goto)rÎr<Úendes&& r°Ú_goÚTNavigator._go‰s%€à�~‰~ § ¡ ¨xÕ 7Õ7ˆØ � ‰ �4ÖrÈc ój€WP,pVPPV4VnR#)z=Turn turtle counterclockwise by specified angle if angle > 0.N)rcr\rî©rÎrês&&r°Ú_rotateÚTNavigator._rotateŽs&€à ×#Ñ#Õ#ˆØ—|‘|×*Ñ*¨5Ó1ˆŽ rÈc ó€WnR#)zmove turtle to position end.N©rZ)rÎÚends&&r°rnÚTNavigator._goto“s€àŽrÈÚfill_gapFcó$<€V^8„dQhRS[RR/#©rWrzÚreturnN©Úbool)Úformatrÿs"€r°Ú __annotate__ÚTNavigator.__annotate__—sø€÷-ñ-±Dð-ÀTñ-rÈc óŠ€VeTMVP^,pVeTMVP^,p\WE4VnR#)zHTo be overwritten by child class RawTurtle. Includes no TPen references.N)rZr)rÎrÅrÆrzÚnew_xÚnew_ys&&&$ r°ruÚTNavigator.teleport—s8€ð’]‘¨¯©°qÕ(9ˆØ’]‘¨¯©°qÕ(9ˆÜ˜uÓ,ˆŽrÈc ó(€VPV4R#)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©rp©rÎr<s&&r°rEÚTNavigator.forwardžs€ð* �‰�ÖrÈc ó*€VPV)4R#)amMove 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) Nrˆr‰s&&r°r0ÚTNavigator.backµs€ð$ �‰�(�ÖrÈc ó*€VPV)4R#)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©rtrss&&r°rbÚTNavigator.rightÉs€ð& � ‰ �e�VÖrÈc ó(€VPV4R#)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 NrŽrss&&r°rRÚTNavigator.leftÞs€ð& � ‰ �UÖrÈc ó€VP#)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) rwrßs&r°r^ÚTNavigator.posós€ð�~‰~ÐrÈc ó(€VP^,#)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 rwrßs&r°rÚTNavigator.xcoró€ð�~‰~˜aÕ Ð rÈc ó(€VP^,#)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 rwrßs&r°r€ÚTNavigator.ycorr–rÈc óv€VfVP\V!4R#VP\W44R#)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)rnr)rÎrÅrÆs&&&r°rKÚTNavigator.gotos)€ð< Š9Ø �J‰J”u˜a‘yÖ !à �J‰J”u˜Q“{Ö #rÈc óL€VP^^4VP^4R#)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() N)rKrgrßs&r°rNÚTNavigator.home@s€ð � ‰ �!�QŒØ �‰˜ÖrÈc ó\€VP\WP^,44R#)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) N©rnrrZ)rÎrÅs&&r°rkÚTNavigator.setxNs€ð � ‰ ”5˜ŸN™N¨1Õ-Ó.Ö/rÈc ó^€VP\VP^,V44R#)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) Nrž)rÎrÆs&&r°rlÚTNavigator.sety`s €ð � ‰ ”5˜Ÿ™¨Õ*¨AÓ.Ö/rÈc ó€Ve \W4p\V\4'dTpMB\V\4'd \V!pM"\V\4'd VPp\ XVP, 4#)abReturn 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ÂrPrZÚabs)rÎrÅrÆr^s&&& r°r<ÚTNavigator.distancersd€ð, Š=ܘ“+ˆCÜ �aœ× Ò Ø‰CÜ ˜œ5× !Ò !ܘ‘)‰CÜ ˜œ:× &Ò &Ø—+‘+ˆCÜ�3˜Ÿ™Õ'Ó(Ð(rÈc ó€Ve \W4p\V\4'dTpMB\V\4'd \V!pM"\V\4'd VPpXVP, wr\ \ P!\ P!W!44^ 4R,pW@P,pVPVPV,,VP,#)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 ç€v@) rrÔrÂrPrZrùrãr;Úatan2rcrTrVr`)rÎrÅrÆr^Úresults&&& r°rxÚTNavigator.towards’s¸€ð, Š=ܘ“+ˆ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 ó"€VPwr\\P!\P!W!44^ 4R,pW0P ,pVP VPV,,VP,#)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\rùrãr;r§rcrTrVr`)rÎrÅrÆr¨s& r°rLÚTNavigator.headingµsg€ð�|‰|‰ˆÜ”t—|’|¤D§J¢J¨qÓ$4Ó5°rÓ:¸UÕBˆØ×$Ñ$Õ$ˆØ×!Ñ! D×$5Ñ$5°fÕ$<Õ<À×@PÑ@PÕPÐPrÈc óÖ€WP4, VP,pVPpW#R, ,V,VR, , pVPV4R#)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)rLrVr`rt)rÎÚto_anglerêÚfulls&& r°rgÚTNavigator.setheadingÄsM€ð.ŸL™L›NÕ*¨D×,=Ñ,=Õ=ˆØ×шؘB•w• Õ$ t¨B¥wÕ.ˆØ � ‰ �UÖrÈc  ó~€VP'd.VPPR.4RVPnVP4pVf VPpVfW\ V4VP, p^\ \^ \ V4R, ,R4V,4,pRV,V, pRV,pRV,\P!\P!V4VP,4,pV^8d V)V)V)rvpVP4p VP4p V^8XdVP^^4MVP^4VPV4\V4FGp VPV4VP!V4VP^4VPV4KI VPV)4V^8XdVPWš4VPV4VP'dR VPnR#R#) 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 ÚseqTNg@g€M@r‹r„r­F)rWr’rŒrrr`r£r¨ÚminrãrérarcÚ_tracerrârtrIrp) rÎÚradiusÚextentÚstepsrrÚfracr´Úw2ÚlÚtrÚdlrKs &&&& 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 ó€R#©z/dummy method - to be overwritten by child classNrñ)rÎrís&&r°rrÚTNavigator.speed!ó‚rÈc ó€R#r¿rñ)rÎÚarûs&&&r°r´ÚTNavigator._tracer#rÁrÈc ó€R#r¿rñ)rÎrs&&r°râÚTNavigator._delay%rÁrÈ)rTrVrcr`rÈr\rZrWrÁ)r¦rNrÊ)2r÷rørùrúrûrr[Ú DEFAULT_MODErSrUr>rcr rfr;rarprtrnrurEr0rbrRr^rr€rKrNrkrlr<rxrLrgr5rrr´rârAr4r1rerSr_rhrirfrürýrþs@r°rPrP-sø‡€ñð ‘E˜#˜s“OØ‘E˜#˜s“OØ‘E˜#˜s“Oð'Ðð€LØÐØÐà(ôòAô #ò.ô*ò0 (òò 2ò ñ-¸5÷-ó-òò.ò(ò*ò* ò !ò !ô!$òF ò0ò$0ô$)ô@!QòF Qòô8=-ôB>ô>ô>ð €BØ €BØ€HØ €BØ €BØ€HØ €FØ€KØ †DrÈrPcó a€]tRtRtoRt]R,3Rlt]R,]R,3RltRR ltRR lt R t R t R t RRlt RtRtRtR RR/V3RlRllltRtRtRtRRltR!RltR"RltRtRt] t] t] t] t] t]t]t Rt!Vt"R#)#ÚTPeni3z>Drawing part of the RawTurtle. Implements drawing properties. rdcóJ€WnRVn\PV4R#rÁ)Ú _resizemoderWrÉÚ_reset)rÎrds&&r°r>Ú TPen.__init__7s€Ø%ÔØˆŒÜ � ‰ �DÖrÈrYrBcóœ€^VnRVnWnW nRVn^VnRVnRVnRVnRVn ^Vn R#)rTrQN)r‹r‹)r‹rQrQr‹) Ú_pensizeÚ_shownÚ _pencolorÚ _fillcolorÚ_drawingÚ_speedÚ_stretchfactorÚ _shearfactorÚ_tiltÚ _shapetrafoÚ _outlinewidth)rÎrYrBs&&&r°rÌÚ TPen._reset<sO€àˆŒ ؈Œ Ø!ŒØ#ŒØˆŒ ؈Œ Ø&ˆÔØˆÔØˆŒ Ø+ˆÔ؈ÖrÈNc ó|€Vf VP#VP4pVR9dVPVR7R#R#)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©rd)ÚautoÚuserr�)rËrárX)rÎÚrmodes&&r°rdÚTPen.resizemodeJs<€ð, Š=Ø×#Ñ#Ð #Ø— ‘ “ ˆØ Ð0Ô 0Ø �H‰H ˆHÖ &ñ 1rÈc óJ€Vf VP#VPVR7R#)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)r[)rÏrX)rÎr}s&&r°r[Ú TPen.pensizefs!€ð$ Š=Ø—=‘=Ð Ø �‰˜ˆÖrÈc óR€VP'gR#VPRR7R#)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©rZ©rÓrXrßs&r°r\Ú TPen.penup}s€ð�}�}ˆ}Ù Ø �‰˜ˆÖrÈc óR€VP'dR#VPRR7R#)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°rZÚ TPen.pendown‹s€ð �=�=ˆ=Ù Ø �‰˜ˆÖrÈc ó€VP#)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°rPÚ TPen.isdown™s€ð�}‰}ÐrÈc  óÒ€R^R^ R^R^R^/pVf VP#W9d W!,pM)RTu;8dR8dMM\\V44pM^pVPVR 7R#) 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) ÚfastestÚfastÚnormalÚslowÚslowestNr„g%@)rr)rÔr¨rùrX)rÎrrÚspeedss&& r°rrÚ TPen.speed¨sg€ð6˜A˜v b¨(°1°f¸QÀ È!ÐMˆØ Š=Ø—;‘;Ð Ø Œ?Ø•M‰EØ �5Ö ˜4× Üœ˜e› Ó%‰EàˆEØ �‰�uˆÖrÈc óP€V'dj\V4pV^8Xd V^,;r4MV^8XdVwr4M V^8XdT;r4VPX4pVPX4pVPW4R7R#VPVP4VPVP 43#)aèReturn or set the pencolor and fillcolor. Arguments: Several input formats are allowed. They use 0 to 3 arguments as follows: - color() Return the current pencolor and the current fillcolor as a pair of color specification strings or tuples as 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(('#285078', '#a0c8f0')) >>> color() ((40.0, 80.0, 120.0), (160.0, 200.0, 240.0)) )rYrBN)rJrürXrrÑrÒ)rÎrjrºÚ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 ó¶€V'd8VPV4pW P8XdR#VPVR7R#VPVP4#)a'Return or set the pencolor. Arguments: Four input formats are allowed: - pencolor() Return the current pencolor as color specification string or as a tuple (see example). May be used as input to another color/pencolor/fillcolor/bgcolor call. - pencolor(colorstring) Set pencolor to colorstring, which is a Tk color specification string, such as "red", "yellow", or "#33cc8c". - pencolor((r, g, b)) Set pencolor to the RGB color represented by the tuple of r, g, and b. Each of r, g, and b must be in the range 0..colormode, where colormode is either 1.0 or 255 (see colormode()). - pencolor(r, g, b) Set pencolor to the RGB color represented by r, g, and b. Each of r, g, and b must be 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') >>> turtle.pencolor() 'brown' >>> colormode(255) >>> turtle.pencolor('#32c18f') >>> turtle.pencolor() (50.0, 193.0, 143.0) N)rY)rürÑrXrrs&* r°rYÚ TPen.pencolorúsD€÷B Ø—N‘N 4Ó(ˆEØŸ™Ô&ÙØ �H‰H˜eˆHÖ $à—;‘;˜tŸ~™~Ó.Ð .rÈc ó¶€V'd8VPV4pW P8XdR#VPVR7R#VPVP4#)aEReturn or set the fillcolor. Arguments: Four input formats are allowed: - fillcolor() Return the current fillcolor as color specification string, possibly in tuple format (see example). May be used as input to another color/pencolor/fillcolor/bgcolor call. - fillcolor(colorstring) Set fillcolor to colorstring, which is a Tk color specification string, such as "red", "yellow", or "#33cc8c". - fillcolor((r, g, b)) Set fillcolor to the RGB color represented by the tuple of r, g, and b. Each of r, g, and b must be in the range 0..colormode, where colormode is either 1.0 or 255 (see colormode()). - fillcolor(r, g, b) Set fillcolor to the RGB color represented by r, g, and b. Each of r, g, and b must be 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') >>> turtle.fillcolor() 'violet' >>> colormode(255) >>> turtle.fillcolor('#ffffff') >>> turtle.fillcolor() (255.0, 255.0, 255.0) N)rB)rürÒrXrrs&* r°rBÚTPen.fillcolor# sD€÷B Ø—N‘N 4Ó(ˆEØŸ™Ô'ÙØ �H‰H˜uˆHÖ %à—;‘;˜tŸ™Ó/Ð /rÈrzFcó$<€V^8„dQhRS[RR/#r|r~)r€rÿs"€r°r�ÚTPen.__annotate__L sø€÷"ñ"±Dð"ÀTñ"rÈc ó~€VP4pV'dVPRR7VPVR7R#)zOTo be overwritten by child class RawTurtle. Includes no TNavigator references. FräN)rPrX)rÎrÅrÆrzrZs&&&$ r°ruÚ TPen.teleportL s.€ð—+‘+“-ˆß Ø �H‰H˜UˆHÔ #Ø �‰˜ˆÖ!rÈc ó*€VPRR7R#)z¡Makes the turtle visible. Aliases: showturtle | st No argument. Example (for a Turtle instance named turtle): >>> turtle.hideturtle() >>> turtle.showturtle() T©ÚshownN©rXrßs&r°rqÚTPen.showturtleU s€ð �‰�tˆÖrÈc ó*€VPRR7R#)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() FrNrrßs&r°rMÚTPen.hideturtleb s€ð �‰�uˆÖrÈc ó€VP#)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°rQÚTPen.isvisibler s€ð�{‰{ÐrÈc ó~€RVPRVPRVPRVPRVPRVP RVP RVPR VPR VPR VP/ pV'g V'gV#\V\4'dTpM/pVPV4/pVF pW6,WV&K VP'dVPPR V34R pRV9dVPVR,8wdRpRV9dT\VR,\ 4'dVP#VR,34VR&VPVR,8wdRpRV9dVPVR,8wdRpV'dVP%4RV9dVR,VnRV9dVR,VnRV9dVR,VnRV9dH\VR,\ 4'dVP#VR,34VR&VR,VnRV9dVR,VnRV9dVR,VnRV9d/VR,p\V\&\(34'dWˆ3pW€nR V9dVR ,VnR V9dVR ,Vn RV9dVR,VnR V9dVR ,Vn RV9gR V9gR V9dšVPwršVPp \*P,!VP4\*P.!VP4rÜW�,W«V ,V ,,V )V ,W­W¼,, ,3VnVP34R#)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} rrZrYrBr[rrrdÚ stretchfactorrpr¹rvrXFTN)rÐrÓrÑrÒrÏrÔrËrÕrÖrÙr×rÔÚdictr-rWr’rÂrüÚ_newLiner¨r§rãrérèrØrÝ)rÎrXÚpendictÚ_pdÚpÚ_p_bufr®ÚnewLineÚsfÚscxÚscyÚshfÚsaÚcas&&, r°rXÚ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 ó€R#r¿rñ©rÎÚusePoss&&r°r Ú TPen._newLineý rÁrÈc ó€R#r¿rñ)rÎr˜Úforceds&&&r°rÝÚ TPen._updateÿ rÁrÈc ó€R#r¿rñris&&r°rÚ TPen._color rÁrÈc ó€R#r¿rñris&&r°rüÚTPen._colorstr rÁrÈ) rÓrÒrÙrÑrÏrËrØrÖrÐrÔrÕr×rWrÁrN©T)TF)#r÷rørùrúrûr·r>rÌrdr[r\rZrPrrr:rYrBrurqrMrQrXr rÝrrür}r|r`rWr>rsrOrürýrþs@r°rÉrÉ3sÂø‡€ñð#' |Õ"4ôð # :Õ.Ø# KÕ0ô ô'ô8 ò.  ò ò ô$òL*MòX'/òR'0ñR"¸5÷"ó"ò òò ô{ô~>ô>ò>ò>ð €EØ €BØ €BØ €BØ €DØ €BØ †BrÈrÉcó0a€]tRtRtoRtRtRtRtVtR#)Ú _TurtleImagei z6Helper class: Datatype to store Turtle attributes cóB€WnRVnVPV4R#rÁ)r–rFÚ _setshape)rÎr–Ú shapeIndexs&&&r°r>Ú_TurtleImage.__init__ s€ØŒ ؈Œ Ø �‰�zÖ"rÈcó˜€VPpWnVPRu;8Xd%VPV,P8XdR#VPRu;8Xd%VPV,P8XdR#VPR9dVP VP 4M5VPR8Xd%VP FpVP V4K VPV,PVnVPR8XdVP 4VnR#VPR8Xd4VPVPR,P4VnR#VPR8XdBVPV,PUu.uFq2P 4NK upVnR#R#uupi)r}Nr9r~r§)r9r}) r–r(rFrÆrÙÚ_itemr»r;r)rÎr(r–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Æ#G)r+rFr–r(N) r÷rørùrúrûr>r'rürýrþs@r°r%r% sø‡€ñò#÷ LðLrÈr%cóa€]tRtRtoRt.tR]R,]R,]R,3RltRtR t R t R t R t R t RtR>RltRtRtRtR>RR/V3RlRllltRtR?RltR@RltR?RltR?RltRtRARltRtRtRBR ltR!tR"tR#t R$t!R?R%lt"R&t#R't$R(t%RCR)lt&R*t'](R+4t)R,t*R-t+R?R.lt,R/t-RDR0lt.](R14t/R2t0R3t1R4t2R5t3R6t4]4t5R?R7lt6RER8lt7RER9lt8RER:lt9R;t:R<t;]tR#)Fr i. zjAnimation part of the RawTurtle. Puts RawTurtle upon a TurtleScreen and provides tools for its animation. NrmrŒr�có8€\V\4'dWnMé\V\4'd<V\P 9d \P P V4WnM˜\V\\34'dk\P FpVPV8XgKWPnMN \V4Vn\P P VP4M\RV,4hVPp\PWP44\PV4VPP V4VP!4Vn\%WR4VnRVnRVnR;VnVnW@nRVnVP!4VnVP6.VnVP4.Vn.VnW0n\AV4Vn!VPE4R#)zbad canvas argument %sNF)#rÔÚ_Screenr–r r ÚscreensrÁr rAr¦rzrPr>rrÉrÙrÏÚdrawingLineItemr%r”Ú_polyÚ _creatingPolyÚ _fillitemÚ _fillpathrÐÚ_hidden_from_screenÚcurrentLineItemrZÚ currentLinerÚ stampItemsÚ_undobuffersizer‡rWrÝ)rÎÚcanvasrmrŒr�r–s&&&&& r°r>ÚRawTurtle.__init__5 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 óº€\PV4\PV4VP 4VP 4VP 4R#)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)rPrcrÉrÌÚ_clearr rÝrßs&r°rcÚRawTurtle.reset] s<€ô& ×јÔÜ � ‰ �DÔØ � ‰ Œ Ø ×ÑÔØ � ‰ ŽrÈc óN€VeV^8:d RVnR#\V4VnR#)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) N)rWr‡)rÎÚsizes&&r°rjÚRawTurtle.setundobufferv s!€ð Š<˜4 1œ9Ø"ˆDŽOä% d›mˆDŽOrÈc óV€VPf^#VPP4#)z–Return count of entries in the undobuffer. No argument. Example (for a Turtle instance named turtle): >>> while undobufferentries(): ... undo() )rWr™rßs&r°r{ÚRawTurtle.undobufferentries‰ s$€ð �?‰?Ò "ÙØ�‰×*Ñ*Ó,Ð,rÈc ó²€R;VnVnVPFpVPP V4K VPP 4Vn.VnVP'd&VPPVP4VP .VnVP4VPVP4R#)zDelete all of pen's drawingsN)r4r5rr–rÙrÏr7r8rÓrÁrZr8rjr:r×s& r°r>ÚRawTurtle._clear– sž€à*.Ð.ˆŒ˜œØ—J”JˆDØ �K‰K× Ñ  Ö %ñà#Ÿ{™{×6Ñ6Ó8ˆÔØˆÔØ �=�=ˆ=Ø × Ñ × #Ñ # D§N¡NÔ 3Ø×*Ñ*Ð+ˆŒ Ø ×ÑÔØ ×ј4×/Ñ/Ö0rÈc óF€VP4VP4R#)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.clear¤ s€ð � ‰ Œ Ø � ‰ ŽrÈcó8€VPP4VPP^8wdR#\VP4^8”dIVPP VP VPVPVP4R#R#r‘) r–rrØrJr8rÓr7rÑrÏrßs&r°rÚRawTurtle._update_data³ so€Ø � ‰ ×!Ñ!Ô#Ø �;‰;× %Ñ %¨Ô *Ù Ü ˆt×ÑÓ  Ô "Ø �K‰K× !Ñ ! $×"6Ñ"6¸×8HÑ8HØ"&§.¡.°$·-±-ö Añ #rÈc ó´€VPpVP^8XdR#VP^8XdNVP4VP4VP 4VP VP 4R#VP4VP^8Xd:VP4FpVP4K VP 4R#R#)z&Perform a Turtle-data update. N) r–r×rr rÝrârÉrØr,)rÎr–r4s& r°rÝÚRawTurtle._update» sŸ€ð—‘ˆØ �?‰?˜aÔ Ù Ø �_‰_ Ô !Ø × Ñ Ô Ø × Ñ Ô Ø �N‰NÔ Ø �M‰M˜&×,Ñ,Ö -à × Ñ Ô Ø×$Ñ$¨Ô)ØŸ™Ö)�AØ—M‘M–Oñ*à—‘Ö ñ*rÈc ó8€VPPW4#)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._tracerÍ s€ð&�{‰{×!Ñ! $Ó.Ð.rÈcó8€VPPV4#rÁ)r–rris&&r°rÚRawTurtle._colorâ s€Ø�{‰{×!Ñ! $Ó'Ð'rÈcó8€VPPV4#rÁ)r–rüris&&r°rüÚRawTurtle._colorstrå s€Ø�{‰{×$Ñ$ TÓ*Ð*rÈc óâ€\V\4'dV#Vwr#pTP P R8Xd(Y#T3Uu.uFp\RT,4NK upwr#p^Tu;8:d^ÿ8:d'MM#^Tu;8:d^ÿ8:dMM^Tu;8:d^ÿ8:gM\ R\T4,4hRY#T3,# \\3d\ R\T4,4hi;iuupi)z,Convert colortriples to hexstrings. rôr‹rõrör÷)rÔrrør¤rzr–rÊrù)rÎrjr™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,Â<-C)rzFcó$<€V^8„dQhRS[RR/#r|r~)r€rÿs"€r°r�ÚRawTurtle.__annotate__÷ sø€÷.ñ.±Dð.ÀTñ.rÈc óª€VP4pVP4pV'dVPRR7V'dV'gVP4VeTMVP^,pVeTMVP^,p\ Wg4VnVPVR7V'dV'gVP 4R#R#R#)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äN)rPrDrXr?rZrr2)rÎrÅrÆrzrZÚ was_fillingr„r…s&&&$ r°ruÚ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 ó’€VPpVPVP4VPpRVnRVn\ V4pWnW nWn\ WPP 4VnVPPV4VPVPP ,PpVR8Xd!VP4VPn M§VR8Xd=VPVPR,P4VPn MdVR8Xd^VPVPP ,PUu.uFqQP4NK upVPn VP4VnVP#4V#uupi)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() Nr}r9r§r~)r–r rÓr”rr%r(rÙrÁrÆrFr»r+r;rrÏr7rÝ)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Å3Gc óð€VfVPP#WPP49g\ RV,4hVPP V4VP 4R#)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”r(r–rrzr'rÝ)rÎrñs&&r°rmÚRawTurtle.shapeO sX€ð( Š<Ø—;‘;×)Ñ)Ð )Ø—{‘{×,Ñ,Ó.Ô.Ü%Ð&BÀTÕ&IÓJÐ JØ � ‰ ×јdÔ#Ø � ‰ ŽrÈc óJ€Yu;Jd Tu;Jdf MMVPwrWVP3#V^8XgV^8Xd \R4hVe VfW3pM*W3pM&VeVP^,V3pM VPpVf VPpVPRWCR7R#)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) Nz(stretch_wid/stretch_len must not be zerorÞ)rdr r¹)rÕrÙrzrX)rÎÚ stretch_widÚ stretch_lenr¹r s&&&& r°rnÚRawTurtle.shapesizej s´€ð* Õ 8¨× 8Ó 8Ø'+×':Ñ':Ñ $ˆKبT×-?Ñ-?Ð?Ð ?Ø ˜!Ô ˜{¨aÔ/Ü%Ð&PÓQÐ QØ Ò "ØÒ"Ø +Ð 8‘ à +Ð 8‘ Ø Ò $Ø ×/Ñ/°Õ2°KÐ?‰Mà ×/Ñ/ˆMØ Š?Ø×(Ñ(ˆGØ �‰˜FØ,ð ö ?rÈc óL€Vf VP#VPRVR7R#)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Þ)rdrp)rÖrX)rÎÚshears&&r°rpÚRawTurtle.shearfactor’ s%€ð& Š=Ø×$Ñ$Ð $Ø �‰˜F°ˆÖ6rÈc ó~€VfV\P!VP4)VP,pW P, VP ,#V)VP,VP,p\P !V4\P,pVPRVR7R#)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Þ)rdrv) rãr;r×rVrcr`rarkrX)rÎrêrvs&& r°rwÚRawTurtle.tiltangle© s‡€ð8 Š=Ü—L’L §¡Ó,Ð,¨t×/@Ñ/@Õ@ˆDØ×-Ñ-Õ-°×1AÑ1AÕAÐ Aà�6˜D×.Ñ.Õ.°×1BÑ1BÕBˆDÜ—<’< Ó%¬¯©Õ0ˆDØ �H‰H ¨TˆHÖ 2rÈc óP€VPWP4,4R#)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)rwrss&&r°rvÚRawTurtle.tiltÍ s€ð" �‰�uŸ~™~Ó/Õ/Ö0rÈc ó°€Yu;JdTu;JdTu;JdfVP#VPwrVrxVeTpVeTpVeTpVeTpW,W#,, ^8Xd \R4hWVWx3Vn\P!V)V4\P,p \P !V 4\P !V 4rºWµ,W§,, W¶,W¨,, W¥,W·,,W¦,W¸,,3wrÍrïWÏ3VnWß, VnW�n VPRR7R#)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) Nz0Bad shape transform matrix: must not be singularrÞrÜ) rØrzrãr§rkrérèrÕrÖr×rX)rÎÚt11Út12Út21Út22Úm11Úm12Úm21Úm22ÚalfarrÚa11Úa12Úa21Úa22s&&&&& r°roÚ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  óÌ€VPpVPwr4VPwrV\WVVP,VP , 4pR\ V4, V,wrVVUU u.uF`wr‰W6V,WY,,VP , ,WE)V,Wi,,VP, ,3NKb up p#uup pi)z\Computes transformed polygon shapes from a shape according to current position and heading. r‹)r–rZr\rr²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Á6A&C c óÜ€VPPVPP,pVPR8Xd*VP VP VPR8H4#R#)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)) r}r~N)r–rÆr”r(rFÚ _getshapepolyr)rÎrms& r°rIÚRawTurtle.get_shapepoly sS€ð— ‘ ×#Ñ# D§K¡K×$:Ñ$:Õ;ˆØ �;‰;˜)Ô #Ø×%Ñ% e§k¡k°5·;±;À*Ñ3LÓMÐ Mñ $rÈc ójaaaa€VPR8Xg V'dVPwooooMMVPR8Xd*\^VPR, 4pV^^V3wooooMVPR8XdV#\;QJd.VVVV3RlV4FNK 5#!VVVV3RlV44#)zPCalculate transformed shape polygon according to resizemode and shapetransform. rÞrÝg@r�c3ó„<"€TF5wrSV,SV,,SV,SV,,3x€K7 R#5irÁrñ)rrÅrÆrnrorprqs& €€€€r°rÚ*RawTurtle._getshapepoly..0 s0øé€ÐJÁ'¹¸�c˜!•e˜c !�e•m S¨¥U¨S°­U¥]Õ3Ã'ùsƒ=A)rËrØÚmaxrÏrÂ)rÎr}r~rºrnrorprqs&&& @@@@r°r…ÚRawTurtle._getshapepoly% s—û€ð × Ñ ˜vÔ %¯Ø!%×!1Ñ!1Ñ ˆC��c™3Ø × Ñ  Ô 'Ü�A�t—}‘} SÕ(Ó)ˆAØ!" A q¨! Ñ ˆC��c™3Ø × Ñ  Ô +؈Nߌu×JÁ'ÓJ�uÐJˆu×JÁ'ÓJÓJÐJrÈc  óì€VPpVPVPP,pVPpVPP pVP 'EdrVP^8XEd`VP^8”EdNRVn VPpVR8Xd�VPR8Xd^pM*VPR8XdVPpM VPpVPVPV44pVP VP"r‡VP%WBWxVRR7R #VR8XdVP'W@P(V4R #VR8Xdz\+WE4Fhwp wr§pVPVPV R44p VP%WšVP-V4VP-V4VPRR7Kj R #R #VP'dR #VR8XdVP%VR R R 4McVR8Xd9VP'W@P(VPR ,P4M$VR8XdVFp VP%V R R R 4K RVn R #) zhManages the correct rendering of the turtle with respect to its shape, resizemode, stretch and tilt etc.Fr}r�rÝT©rCr¹r}rÇr9r~Nr´r§©rÅrÅrÅ)r–rÆr”r(rFr+rÐrØr×r6rrËrÏrÙr‚r…rÒrÑrÉr?rZÚziprU) rÎr–rmr^ÚtitemÚtshaper´ÚfcÚocrØr]s & r°r ÚRawTurtle._drawturtle2 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  ó$€VPpVPVPP,pVPpVP pVR8XdœVP 4pVPR8Xd^pM*VPR8XdVPpM VPpVPVPV44pVPVPr‡VPWRWxVRR7MêVR8Xd/VPR4pVP!WPP"V4MµVR8Xd¯.pVF$p VP 4p VP%V 4K& \'V4p\)WT4Fhwp wr·pVPVPV R44p VPW«VP+V4VP+V4VPRR7Kj VP,P%X4VP.P1R V34V#) 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) r}r�rÝTr�r9r´r~rt)r–rÆr”r(rFrr»rËrÏrÙr‚r…rÒrÑrÉr;r?rZrÁrÂr�rUr9rWr’) rÎr–rmr^r‘Ústitemr´r’r“ÚelementrØr]s & r°rtÚRawTurtle.stampZ 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 ó¨€WP9dr\V\4'd&VFpVPP V4K MVPP V4VPP V4RV3pVP pW4P9dR#VPPV4pVPP V4WTP8:d*VP^, VP,Vn VPPVP^,VP,R.4R#)z9does the work for clearstamp() and clearstamps() rtN) r9rÔrÂr–rÙr2rWrŠÚindexr‹r‰Úinsert)rÎÚstampidÚsubitemrØÚbufršs&& r°Ú _clearstampÚRawTurtle._clearstamp‡ 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 óH€VPV4VP4R#)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.clearstamp� s€ð ×јÔ!Ø � ‰ ŽrÈc óÖ€VfVPR,pM&V^8¼dVPRVpMVPVRpVFpVPV4K VP4R#)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Ó)r9rŸrÝ)rÎrÚtoDeleterØs&& r°r8ÚRawTurtle.clearstamps¬ s_€ð$ Š9Ø—‘ qÕ)‰HØ �!ŒVØ—‘ r¨Ð*‰Hà—‘ q rÐ*ˆHÛˆDØ × Ñ ˜TÖ "ñà � ‰ ŽrÈc  óš€VPVPVP\VP\ 43pVP pRVPWVPVPR,VPVP4VPR,33pVP'dVPPV4VPpVP'Ed‰VP^8XEdwW, pV^,VP ,^,V^,VP",^,,p^\%VR,^RVP,,VP,, 4,pVRV, ,p \'^V4Fƒp V ^8XdRp MRp WYV ,,VnVP'd?VP)VP*WPP3VPVPV 4VP-4K… VP'd*VP)VP*R RVPR 7VP'dVPP/V4\VP\ 4'dVPP/V4WnVP0'dVP2P/V4\5VP4^*8”dVP74VP-4R #) 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. ÚgorÓr„çš™™™™™ñ?r‹TFr´©rCr}N©rÅrÅ)rÓrÑrÏrÔr5rr–rZr7r8rMrrWr’rÔr×r±r²r¨rIrÓr1rÝrÁr3r2rJr ) rÎrxÚgo_modesr–Ú undo_entryÚstartÚdiffÚdiffsqÚnhopsÚdeltarrÇs && r°rnÚRawTurtle._gotoÈ sb€ð —]‘]Ø—^‘^Ø—]‘]Ü §¡´Ó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 óP€Vwr#rEVwrgr‰Vwr«rÍVPp\VPV, 4R8”d \R4W nW°nV R R .8XdRpMTpVP W¬WøR7VPUu.uF&pVV 9gK VPV4R8XgK$VNK( ppVF/pVPV4VPPV4K1 TpVP'EdXVP^8XEdFW#, pV^,VP,^,V^,VP,^,,p^\VR,^RVP,,VP,, 4,pVRV, ,p\!^V4FfpV^8XdRpMR pVVV,,VnV'd+VP VP"VVP3WxV4VP%4Kh V'd VP VP"R RVR7W nVP&'dT\)VP*4^8”dVP*P-4VP*.8XdR VnR VnV 'dMVP..8XdR Vn\R 4M(VP.eVP.P-4VP%4R #uupi)z)Reverse a _goto. Used for undo() r„z$undogoto: HALLO-DA-STIMMT-WAS-NICHT!r´r©r­r¨r‹TFNzUnwahrscheinlich in _undogoto!rÅrª)r–r£rZr¥r7r8rÓrrFrÙr2rÔr×r±r²r¨rIr1rÝr3rJr2r•r5)rÎÚentryÚoldÚnewr«ÚcoodataÚdrawingÚpcÚpsrDÚcLIÚcLrLrr–ÚusepcrKÚ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÷�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 L#ÂL#Â)L#c óh€VP'd(VPPRWP34WP,pVPP V4pVP P pV^8Xd™VP^8”dˆRVP,p^\\V4V, 4,pRV,V, p\V4F3pVPP V4VnVP4K5 W nVP4R#)z&Turns pen clockwise by angle. Úrotg@r‹N) rWr’rcr\rîr–r×rÔr¨r£rIrÝ)rÎrêÚ neworientr!Úanglevelr·r±rs&& r°rtÚ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 óä€\VP4^8”dŒVPPVPVPVP VP 4VPP4VnVPPVP4M'VPPVPRR7.VnV'dVP.VnR#R#)z˜Closes current line item and starts a new one. Remark: if current line became too long, animation performance (via _drawline) slowed down considerably. T)rÇN) rJr8r–rÓr7rÑrÏrÏrrÁrZrs&&r°r ÚRawTurtle._newLineP 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€\VP\4#)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Ôr5rrßs&r°rDÚRawTurtle.filling` s€ô˜$Ÿ.™.¬$Ó/Ð/rÈc# ó‚"€VP4Rx€VP4R# TP4i;i5i)zùA context manager for filling a shape. Implicitly ensures the code block is wrapped with begin_fill() and end_fill(). Example (for a Turtle instance named turtle): >>> turtle.color("black", "red") >>> with turtle.fill(): ... turtle.circle(60) N)r2r?rßs&r°rCÚRawTurtle.filln s+é€ð �‰Ôð Û à �M‰MŽOøˆD�M‰M�Oüó‚?”*˜?ª<¼?c ó�€VP4'gEVPP4VnVPP VP4VP .VnVP4VP'd(VPPRVP34VP4R#)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) rDr–r»r4rrÁrZr5r rWr’rÝrßs&r°r2ÚRawTurtle.begin_fill€ s}€ð�|‰|�~Š~Ø!Ÿ[™[×4Ñ4Ó6ˆDŒNØ �J‰J× Ñ ˜dŸn™nÔ -ØŸ.™.Ð)ˆŒØ � ‰ ŒØ �?�?ˆ?Ø �O‰O× Ñ  +¨t¯~©~Ð!>Ô ?Ø � ‰ ŽrÈc ó�€VP4'd°\VP4^8”dvVPP VP VPVP R7VP'd(VPPRVP 34R;VnVnVP4R#R#)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¾ÚdofillN) rDrJr5r–rÉr4rÒrWr’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 ó¸€V'g’\V\\34'd:VPV4pVP\ VP^4,pMxVP pV'g(VP\ VP^4,pM= 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) Nr²TrÝF)rÔrrÂrürÏrŠrÑrXrWr’rŒrdrOrZr[rYrE)rÎrAr:rXs&&* r°r=Ú RawTurtle.dot¨ sB€÷ܘ$¤¤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(GÇGc ó"€VPPVPWVVP4wrEVP 4VP P V4VP'dVPPRV34V#)z)Performs the writing for write() Úwri) r–rürZrÑrÝrrÁrWr’)rÎrör÷rôrØrxs&&&& r°rüÚRawTurtle._writeÓ sk€ð—K‘K×&Ñ& t§~¡~°sÀ4Ø:>¿.¹.óJ‰ ˆà � ‰ ŒØ � ‰ ×ј$ÔØ �?�?ˆ?Ø �O‰O× Ñ  %¨ Ô /؈ rÈc óx€VP'd.VPPR.4RVPnVP\ V4VP 4V4pV'd$VP 4wrgVPWW4VP'dRVPnR#R#)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)rWr’rŒrürrár^rh)rÎÚargÚmover÷rôrxrÅrÆs&&&&& r°r~ÚRawTurtle.writeÞ 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# ó‚"€VP4Rx€VP4R# TP4i;i5i)a—A context manager for recording the vertices of a polygon. Implicitly ensures that the code block is wrapped with begin_poly() and end_poly() Example (for a Turtle instance named turtle) where we create a triangle as the polygon and move the turtle 100 steps forward: >>> with turtle.poly(): ... for side in range(3) ... turtle.forward(50) ... turtle.right(60) >>> turtle.forward(100) N)r3r@rßs&r°r]ÚRawTurtle.polyû s+é€ð �‰Ôð Û à �M‰MŽOøˆD�M‰M�OürÌc ó8€VP.VnRVnR#)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)rZr2r3rßs&r°r3ÚRawTurtle.begin_polys€ð—n‘nÐ%ˆŒ Ø!ˆÖrÈc ó€RVnR#)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)r3rßs&r°r@ÚRawTurtle.end_polys €ð#ˆÖrÈc óL€VPe\VP4#R#)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)r2rÂrßs&r°rFÚRawTurtle.get_poly+s"€ð �:‰:Ò !ܘŸ™Ó$Ð $ñ "rÈc ó€VP#)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 >>> ts.bgcolor("pink") )r–rßs&r°rHÚRawTurtle.getscreen8s€ð�{‰{ÐrÈc ó€V#)aReturn the Turtleobject itself. No argument. Only reasonable use: as a function to return the 'anonymous turtle': Example: >>> pet = getturtle() >>> pet.fd(50) >>> pet >>> turtles() [] rñrßs&r°rJÚRawTurtle.getturtleHs €ðˆ rÈc ó8€VPPV4#)zDSet delay value which determines speed of turtle animation. )r–rrás&&r°râÚRawTurtle._delay`s€ð�{‰{× Ñ  Ó'Ð'rÈc óˆ€VPPVPPWV4VP 4R#)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–rr”r+rÝr/s&&&&r°rTÚRawTurtle.onclickes-€ð$ � ‰ ×јTŸ[™[×.Ñ.°¸#Ô>Ø � ‰ ŽrÈc óˆ€VPPVPPWV4VP 4R#)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”r+rÝr/s&&&&r°rVÚRawTurtle.onreleasezs-€ð, � ‰ ×јtŸ{™{×0Ñ0°#¸CÔ@Ø � ‰ ŽrÈc óh€VPPVPPWV4R#)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”r+r/s&&&&r°rUÚRawTurtle.ondrag“s$€ð$ � ‰ ×јDŸK™K×-Ñ-¨s¸Ö=rÈc ó‚€VPfR#VR8XdKVwr4VPV)V,VP, 4VPP4pR#VR8XdV^,pVP V4R#VR8XdVP V4R#VR 9dBV^,pVP PV4VPPV4R#VR8Xd+V^,pVP PVR RRR7R#VR8XdbV^,pR;Vn Vn WpP9d9VP PV4VPPV4R#R#VR 8Xd9\PW^,4VPP4R#R#) z2Does the main part of the work for undo() NrÂrtr§rÑr´r¸rÎrX)rÖr=rŽ)rWrtrcr•r7r¿r–rÙrr2rÉr4r5rÉrX)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 ó&€VPfR#VPP4pV^,pVR,pVR8Xd=V'd3VP4pVPV^,VR,4K:R#VPW#4R#)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() ... Nrÿr²)rWr•rô)rÎrØrñr�s& r°rzÚRawTurtle.undoÈss€ð" �?‰?Ò "Ù Ø�‰×"Ñ"Ó$ˆØ�a•ˆØ�B�xˆØ �UŒ?ߨ—x‘x“z�Ø— ‘ ˜4 �7 D¨¥HÖ-ñð �J‰J�vÖ $rÈ)r3r4r5r6r\r2rZrØrÖrÐrÕr×r:r8r7r1rr–r9r”rWrNrÁr~)NNNN)Fr#)FrR)ÚArialr³rîrv)?r÷rørùrúrûr0r·r>rcrjr{r>r6rrÝr´rrürUrur9rmrnrprwrvror‚rIr…r rtrŸr7r8rnr¿rtr rDrrCr2r?r=rür~r]r3r@rFrHrJrGrârTrVrUrôrzryrürýrþs@r°r r . srø‡€ñð€Gà"ؘG•}Ø $Ð%5Õ 6ؘi�ô&òPò2,ò& -ò 1ò òAò!ô$/ò*(ò+ò +ñ.¸5÷.ó.ò`&ôPô6&?ôP7ô."3òH1ô&%$òP OòNô" Kò$,òP+òZ;ò, ôò83òj?òBô$0ò 0ðñóðò"ò(ô()-òV ô-ð:ñóðò( "ò #ò %òò ð"€Fô(ô ô*ô2>ò*"ò@%ð:†JrÈcól€\Pf\4\n\P#)zReturn the singleton screen object. If none exists at the moment, create a new one and return it, else return the existing one.)r Ú_screenr/rñrÈr°ÚScreenrûës!€ô‡~�~ÒÜ ›ŒŒÜ �>‰>ÐrÈcó¢a€]tRtRtoRtRt]R,tRt]R,]R,]R,]R,3R lt R t R t R t R t RtVtR#)r/ióNr*có¨€\Pfi\4;\nVnVPP\P4VPP VP 4\PfÆ\R,p\R,p\R,p\R,p\R,p\R,pVPPWW44VPP4\n\PV\P4VPWWV4R#R#)Nr}r…r†r‡rˆr‰)r/Ú_rootr€r*Ú_titler˜Ú_destroyrCr·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 ó€\VPR4'gR#VPP4pVPP4p\ V\ 4'd^Tu;8:d^8:d MMWQ,pVfWQ, ^, p\ V\ 4'd^Tu;8:d^8:d MMWb,pVfWb, ^, pVPP WW44VP4R#)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’N)Ú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 ó~€\Pe \PPV4V\nR#)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)r/rþr*rÿ)rÎÚ titlestrings&&r°r*Ú _Screen.title2s'€ô �=‰=Ò $Ü �M‰M× Ñ   Ô ,Ø$ŒŽrÈcóÔ€VPpV\PJd-R\nR\nR\nR\nR\ nVP4R#)NF) rþr/r rÚrúrCr rr—)rÎÚroots& r°rÚ_Screen._destroyCsD€Ø�z‰zˆØ ”7—=‘=Ó ØŒFŒKØ!ŒFŒNØ ŒGŒMØ"ŒGŒOØ %Œ ÔØ � ‰ ŽrÈc ó&€VP4R#)zfShut the turtlegraphics window. Example (for a TurtleScreen instance named screen): >>> screen.bye() N)rrßs&r°rÚ _Screen.byeMs €ð � ‰ ŽrÈc ó°a€V3RlpSPV4\R,'dR#\4R# \d\ ^4R#i;i)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ó(<€SP4R#)z&Screen.bye() with two dummy-parametersN)r)rÅrÆrÎs&&€r°ÚexitGracefullyÚ+_Screen.exitonclick..exitGracefullyhs ø€à �H‰HŽJrÈr—N)rTr·rÚAttributeErrorÚexit)rÎrsf r°rÚ_Screen.exitonclickUsDø€õ& ð � ‰ �^Ô$Ü � × Ô Ù ð Ü ŽJøÜô Ü ��Gð ús¯ ;»AÁA)rþ)r÷rørùrúrþrCr·rÿr>r'r*rrrrürýrþs@r°r/r/ósZø‡€à €EØ€GØ �'�]€Fò<ð"˜w�-°°XµØ˜+Õ&¨t°KÕ/@ô&òP%ò"ò÷ðrÈr/cófa€]tRtRtoRtRtRt]R,]R,]R,3RltRt Vt R#) r isz´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. NrmrŒr�có €\Pf\4\n\P V\PVVVR7R#)N)rmrŒr�)r rúrûr r>)rÎrmrŒ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þs@r°r r ss9ø‡€ñð €DØ€Gð˜G•}Ø $Ð%5Õ 6ؘi�÷ ,ò ,rÈc óÜ€/p\F#pRV,p\V4PW&K% \F#pRV,p\V4PW&K% \ RV,R4;_uu_4p\ RV44pVP R4VRR FBpVP R\V4,4VP R W,,4KD VR ,pVP R\V4,4VP R W,,4VP R 4VP4RRR4R# +'giR#;i) 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 .py It is intended to serve as a template for translation of the docstrings into different languages. z_Screen.zTurtle.z%s.pyr´c3ól"€TF*pVPR4^,\9gK&Vx€K, R#5i)rœN)rÚ _alias_list)rrÅs& r°rÚ&write_docstringdict..Ÿs+é€ð=¡˜AØŸ™ › a�´ Ñ;÷’a£ùs‚#4ª 4zdocsdict = { Nz%s : z """%s """, z """%s """ z} r) Ú_tg_screen_functionsr¦rûÚ_tg_turtle_functionsr r,r~ÚreprÚclose)r©ÚdocsdictÚ methodnamer®rªrs& r°r�r�‰s€ð€Hç*ˆ ؘÕ#ˆÜ˜S› ×)Ñ)ˆ‹ ñ+÷+ˆ ؘ Õ"ˆÜ˜S› ×)Ñ)ˆ‹ ñ+ô ˆg˜Õ  × %Ô %¨Üñ=¡ó=ó=ˆà �‰Ð"Ô#ؘ˜“9ˆCØ �G‰G�Hœt C›yÕ(Ô )Ø �G‰GÐ-°µ Õ=Ö >ñð�2�hˆØ �‰�œ4 ›9Õ$Ô%Ø �‰Ð(¨8­=Õ8Ô9Ø �‰�ŒØ �‰Œ ÷ &× %× %Ò %ús Á8CEÅ E+ cóî€RRVP4/,p\V4pVPpVFpW4,\V4nK R# \ d\ RT,4K@i;i)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__r r¦rûr¶r¥)ÚlangÚmodnameÚmoduler r®s& r°Úread_docstringsr'«sh€ð2°ZÀÇ Á à Ð4MÕM€GÜ ˜Ó €FØ�‰€HÛˆð 3à (¥ ŒD�‹IÖ óøôô 3Ü Ð+¨cÕ1× 2ð 3ús·AÁA4Á3A4zCannot find docsdict forz;Unknown Error when trying to import %s-docstring-dictionarycóÈ€\P!V4pVP\VPP 44R,R7p.pVPP 4EFPpVP ;;\PP8XdM";\PP8XdMMVPVP4Kq;\PP8Xd"VPRVP 24K±;\PP8Xd.VPVP RVP 24Ký\PP8Xd"VPRVP 24EK<\RVP 4h RRP!V4 R 2p\#V4V3#) 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ÿ)Ú parametersÚ*r›z**zUnsupported parameter kindÚ(z, Ú))ÚinspectÚ signatureÚreplacerr)Ú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?Èsp€ô× Ò  Ó$€Hð×Ñܘ×+Ñ+×2Ñ2Ó4Ó5°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óº€^RIpVfR#\R,pVPRV,R4pVPRV,4pVP RV4pV#)z>>>>>)ÚobjÚinitrñÚ paramslistÚargslistN)Úgetattrr?r¥Ú __func_bodyr€rÚglobalsrû) Ú functionsrÄrRrSÚ docreviser!rÚpl1Úpl2Údefstrs &&&&& r°Ú_make_global_funcsr^sw€Ûˆ ܘÓ)ˆÜ! &Ó)‰ˆØ �"Œ9Ü �(˜CÔ %Ù Ü×#Ñ#¨¸ZØ/2ð$óBˆä ˆV”W“YÔÙ(1°&·.±.Ó(AŒ‹ �*ÕÖ%ó rÈzTurtle._screenzScreen()z Turtle._penzTurtle()Ú__main__cóR€\4'd \4R#\4R#rÁ)rPr`rWrñrÈr°Ú switchpenra-s€Ü �8Š8Ü ŽDä ŽDrÈcóä€\4\R4\4\^d4\ 4\ ^4\ ^4FwpV^8Xd \4\ ^4Fp\^4\^Z4K V^8Xd\R4\4\4\^4\ 4Ky \ ^4\R4\R4\4\^Z4\^d4\^Z4\^d4\^´4\ 4\R^4\R^4\R4\ ^4F/p\^4\^Z4\^4\^Z4K1 \R4\4\ ^4F/p\^4\^Z4\^4\^Z4K1 \4R#) zDemo of old turtle.py - moduleTÚmaroonrŽFÚ startstartr­ÚredN)rcr+r|r1r>r}rIr2rErRr:r?rbr~)rKrs r°Údemo1rf3sJ€ä ŒÜˆ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óÆ €\^4\4\^4\\ ^^44\ ^^4R, p\ ^Z4\^4Fp\4\V^ 4K \R4\4'd \4K\4\^Z4\^ÿ4^ p\!R4\^4\^´4\R^4F�pV^8”d-\#4\%^ÿ^V,, ^^V,4\^4Fp\'V4\^x4K \)4V^ , p\^4\\4^,^ ,4KŸ \^x4\+4\'^F4\ ^4\-4\/RR4\^4\#4\^4F0p\^2^Z4\ ^Z4\'^4\ ^Z4K2 \)4\^Z4\+4\'^4\-4\1R4\34pVP5R4\74pVP5R4VP1R4VP4VP9^Z4VP^4VP;4VP=R^(4VP^4VP?4VP^4VP/R R 4VP^4VP^4\\ V44^pVP V4^8”d—VP'R 4VPR 4VPVP V44VP'^4V^,^8Xd+VPA4VPA4\4V^, pK¬VPR RRR7VP!R4VP!R4Rp\BPD!^4\4'd#VP4VP4K2VP'^24VPRRR7VPGV^4R#)zDemo of some new features.r­zwait a moment...ÚgreenreÚyellowr”rÝiÚblueÚorangeg @g333333ã?zCAUGHT! rb)rôr÷rŽcó.€\4\4R#rÁ)rr)r8r9s&&r°ÚbabaÚdemo2..baba¾s €Ü ŒMÜ ŽErÈz Click me!)rôNr¬)rør«Úbold)ÚCourieré ro)$rrrsr[rgrxr<rerIrar5r~r{rzrcrSrrYr2rBrAr?r`rWr:rmrJrdr rRr|rKr>rtÚtimeÚsleeprT)rµrÚlaengerKÚtrir”r˜rms r°Údemo2rvhsS€ä ˆ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Ø � ‰ �*Ð#8Àˆ ÔHØ � ‰ �WÔØ � ‰ �UÔò ô � Š �1Œ ä×!Ò!Ø �H‰HŒJØ �K‰KŽMØ �‰ˆrŒ Ø � ‰ �-Ð(?ˆ ÔAØ � ‰ �D˜!ÖrÈ) r r rûr r ÚRawPenÚPenr r)rr1r4rArOrSrWr^r`rerfrhrirsryr|r}zTdef %(method)s(self, *args, **kw): return self.%(attribute)s.%(method)s(*args, **kw))rñ)Úturtle_docstringdict)IrûÚtkinterr<r rãrrr-rÌÚos.pathrrrÚpathlibrÚ contextlibrÚcopyrrÚ _tg_classesrrÚ _tg_utilitiesÚ__all__rr·r±r¾r¶r¥rÂrrrrr%r=r rAr‚r€Úobjectr£rƒrzr r‡r rPrÉr%r rwrûr/r rxr�r'Ú _LANGUAGEÚ ImportErrorr?rLrPrWr^rr‚r÷rarfrvrrñrÈr°Úr…sêðñ0KóZÛ Û Û ÛÛ ç'Ñ'ÝÝ%ÝÝ òI€ ð3˜ ð3 Ið3¨wð3¸ð3Øð3Ø"ð3Ø$+ð3Ø-:ð3Øð 3ð@Gð 3ð ð 3ð +ð 3ð -4ð 3ð 6>ð 3ð @Ið 3ð ð 3ð "ð 3ð $2ð 3Ðð !˜ð !  ð !¨Lð !¸,ð !Èð !Øð !Øð !Ø'ð !Ø)6ð !Ø8?ð !ØAHð !àð !àð !à$ð !à&,ð !à.8ð !à:Dð !àFJð !ð ð !ðð !ð'ð !ð)2ð !ð4>ð !ð@Hð !ð ð !ð%ð !ð'2ð !ð4:ð !ðGð !ðIPð !ð ð !ðð !ð $ð !ð&,ð !ð.:ð !ðõ *€ò,€ ð ˆ�#ð Ø�4ð à�cð ð �cð ð �Tð  ð �Tð  ð � ð  ð �Sð ð �ð ð ˜$ð ð �ð ð �Wð ð �gð ð �zð ð �Dð ð �Ið ð ˜ð! ð" ˜ØÐ)Ø�eñ' €ò,ò:ð<1ÙˆtÔô *$ˆEô*$òjòð1ð ô.ô*a#�R—X‘Xôa#ñF� §¡¨IÔ6ô)ˆB�E‰Eô)ð0 �‰€ôL5�vôL5ôh  �)ô ô˜)ôô )1ˆFô)1ôX"6ˆfô"6ôLo Ð#ôo ôbC�ôCôLYˆ6ôYôxL�6ôLô>w��jôwðr% €òô~ˆlô~ô@,ˆYô,ð( €ô òD3ð" �Õ € ðMØ�IÔÙ˜ Ô"ò"$òH ò ð € ò BñÐ'¨Ø# ZÐ1BôDáÐ'¨Ø  *Ð.?ôAð€à ˆzÔòò 2òjañF „GÙ „GÙ†MñCøðOzô1Ù Ð /×0ð1ûðxvô1Ù Ð $ iÖ0ØôMÙ Ð HØBKõ LöMðMús0ÆK<ÊLË<LÌLÌL<Ì$L<Ì)L<Ì;L<