grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026ó Ø­*FiÁÊãód•SrSSKrSSKrSSKrSSKrSSKrSSKrSSKJ r J r J r SSK J r SSKJr /SQr/SQr/SQrS S /r\\-\-\-S /-r/S Qr0S S_SS_SS_SS_SS_SS_SS_SS_SS_SS_SS _S!S"_S#S"_S$S%_S&S'_S(S)_S*S+_S,S-S.S/.ErS0rS1r\"\5 "S3S4\5rS5rS6rS7rSgS8jr"S9S:\R@5r!\"\!\RDS;5 "S<S=\RF5r$\RDr""S>S?\%5r&"S@S \5r'"SASB\5r("SCSD\%5r)"SESF\%5r*"SGSH\&5r+"SISJ\%5r,"SKSL\%5r-"SMSN\%5r."SOSP\-\,5r/\/r0SQr1"SRSS\+5r2"STSU\/5r3\3r4ShSVjr5SWr6\S(r7\7S):wa\6"\75 SZr9S[r:S\r;S]r•[USUS-USUS-5$©Nré©r©ÚselfÚothers r¯Ú__add__Ú Vec2D.__add__öó)€Ü�T˜!‘W˜U 1™XÑ% t¨A¡w¨u°Q©xÑ'7Ó8Ð8rÈcóŠ•[U[5(aUSUS-USUS--$[USU-USU-5$rÊ)Ú isinstancerrÍs r¯Ú__mul__Ú Vec2D.__mul__øsQ€Ü �eœU× #Ñ #ؘ‘7˜5 ™8Ñ# D¨¡G¨E°!©HÑ$4Ñ4Ð 4Ü�T˜!‘W˜U‘] D¨¡G¨E¡MÓ2Ð2rÈcó’•[U[5(d[U[5(a[USU-USU-5$[$rÊ)rÔr§r¦rÚNotImplementedrÍs r¯Ú__rmul__ÚVec2D.__rmul__üs>€Ü �eœS× !Ñ !¤Z°´u×%=Ñ%=ܘ˜a™ ™¨¨Q©°© Ó6Ð 6ÜÐrÈcó>•[USUS- USUS- 5$rÊrÌrÍs r¯Ú__sub__Ú Vec2D.__sub__rÒrÈcó*•[US*US*5$rÊrÌ©rÎs r¯Ú__neg__Ú Vec2D.__neg__s€Ü�d˜1‘g�X  Q¡˜xÓ(Ð(rÈcó(•[R"U6$rÁ)ÚmathÚhypotrßs r¯Ú__abs__Ú Vec2D.__abs__s€Ü�zŠz˜4Ð Ð rÈcóþ•[US*US5n[R"U5n[R"U5[R"U5pC[USU-USU--USU-USU--5$)z.rotate self counterclockwise by angle rËr)rrãr_ÚcosÚsin)rÎÚangleÚperpÚcÚss r¯ÚrotateÚ Vec2D.rotatesv€ô�d˜1‘g�X˜t A™wÓ'ˆÜ— ’ ˜UÓ#ˆÜ�xŠx˜‹¤§¢¨£ˆ1Ü�T˜!‘W˜Q‘Y˜t A™w q™yÑ(¨$¨q©'°!©)°D¸±G¸A±IÑ*=Ó>Ð>rÈcó•USUS4$rÊ©rßs r¯Ú__getnewargs__ÚVec2D.__getnewargs__ s€Ø�Q‘˜˜a™Ð!Ð!rÈcó •SU-$)Nz (%.2f,%.2f)rñrßs r¯Ú__repr__ÚVec2D.__repr__s €Ø˜tÑ#Ð#rÈrñN)Ú__name__Ú __module__Ú __qualname__Ú__firstlineno__Ú__doc__rÃrÐrÕrÙrÜràrårîròrõÚ__static_attributes__rñrÈr¯rræs9†ñ ò*ò9ò3òò9ò)ò!ò?ò"õ$rÈrcó•[UR5nUR5 UHn[X15 M URR 5H(upE[ U5[R:XdM$XQU'M* g)ú#helper function for Scrolled CanvasN) ÚlistÚ __bases__ÚreverseÚ __methodDictÚ__dict__ÚitemsÚtypeÚtypesÚ FunctionType)rÄÚ_dictÚbaseListÚ_superr­r®s r¯rrs`€ä�C—M‘MÓ"€HØ ×ÑÔÛˆÜ�VÖ#ñà—l‘l×(Ñ(Ö*‰ ˆÜ �‹;œ%×,Ñ,Õ ,Ø�#‹Jò+rÈcó<•0n[X5 UR5$)rþ)rÚkeys)rÄrs r¯Ú __methodsr %s€à €EÜ�ÔØ �:‰:‹<ÐrÈzTdef %(method)s(self, *args, **kw): return self.%(attribute)s.%(method)s(*args, **kw)có\•0n[X5 0n[U5nUR5H'nUSSS:XdUSSS:Xd Xs;dXv;aM!XGXW'M) UR5HCup‰X‰S.n [ U[ 5(a [ X‚S.-n [W U 5 [XX¨5 ME g)NrËÚ_éÿÿÿÿ)ÚmethodÚfunc)rÚ attribute) rr r rrÔÚstrÚ __stringBodyÚexecÚsetattr) Ú fromClassÚtoClassÚtoPartÚexcludeÚ_dict_1rÚmfcÚexrrÚdÚ execStrings r¯Ú__forwardmethodsr!/sª€à€GÜ�Ô"Ø €EÜ �IÓ €CØ�l‰lŽnˆØ ˆbˆqˆ6�S‹=˜B˜r˜s˜G s›N¨b«m¸r»yÙ à™ ˆE‹Iñ ð Ÿ ™ ž ‰ ˆØÑ ,ˆÜ �fœc× "Ñ "ä¨6ÑHÑHð ä ˆZ˜ÔÜ�  1¡9Ö-ò &rÈcó`•\rSrSrSrSSjrSSjrSrSrSr S r S r S r S r S rSrg)riDz¸Modeled after the scrolled canvas class from Grayons's Tkinter book. Used as the default canvas, which pops up automatically when using turtle graphics functions or the Turtle class. c óà•[RRXX#S9 UR5UlX#sUlUlXEsUlUlSUl [R"XUUR[RSS9Ul [R"XRR[RS9Ul[R"XRR"S9UlURR'UR R(UR$R(S9 UR+SS SS 9 UR-SS SS 9 URR/S US SSS S S S 9 UR$R/S US SS S S S S 9 UR R/S US S SS S S S 9 UR15 URR3S UR45 g)N)r{rƒÚwhiteé)r{rƒÚbgÚreliefÚ borderwidth)ÚcommandÚorient)r))ÚxscrollcommandÚyscrollcommandrrË)ÚweightÚminsizeÚnews©ÚpadxÚin_ÚpadyÚrowÚcolumnÚrowspanÚ columnspanÚstickyz )ÚTKÚFrameÚ__init__Úwinfo_toplevelÚ _rootwindowr{rƒr„r…r&ÚCanvasÚSUNKENÚ_canvasÚ ScrollbarÚxviewÚ HORIZONTALÚhscrollÚyviewÚvscrollÚ configureÚsetÚ rowconfigureÚcolumnconfigureÚgridraÚbindÚonResize)rÎÚmasterr{rƒr„r…s r¯r;ÚScrolledCanvas.__init__Js§€ä �‰×ј$¨eÐÑCØ×.Ñ.Ó0ˆÔØ"'ЈŒ �D”KØ*3Ð'ˆŒ˜œØˆŒÜ—y’y ¸VØ$(§G¡G´B·I±IÈ1ñNˆŒ ä—|’| F·L±L×4FÑ4FÜ+-¯=©=ñ:ˆŒ ä—|’| F·L±L×4FÑ4FÑGˆŒ Ø � ‰ ×Ѩd¯l©l×.>Ñ.>Ø.2¯l©l×.>Ñ.>ð ñ @à ×ј! A¨qÐÑ1Ø ×јQ q°!ÐÑ4Ø � ‰ ×јq¨°1¸!Ø !°¸&ð ñ Bà � ‰ ×јq¨°1¸!Ø !°¸&ð ñ Bà � ‰ ×јq¨°1¸!Ø !°¸&ð ñ Bà � ‰ Œ Ø ×Ñ×јm¨T¯]©]Õ;rÈNcó.•U(aXlU(aX lU(aX0lURR UUR*S-UR*S-URS-URS-4S9 URR SURUR - S--UR- 5 URRSURUR- S--UR- 5 UR5 g)zB¿o¹oñ#Nô Oà ×ÑÕrÈc ór•URR5nURR5nURRSURU- -UR- 5 URR SUR U- -UR - 5 XR:dX R :aAURRSUSSSSSSS9 URRSUSSSSSSS9 gURR5 URR5 g)z@Adjust scrollbars according to window- and canvas-size. r‚rËrr/r0N) r@Ú winfo_widthÚ winfo_heightrTr„rUr…rDrKrFÚ grid_forget)rÎÚcwidthÚcheights r¯rVÚScrolledCanvas.adjustScrollsus€ð—‘×)Ñ)Ó+ˆØ—,‘,×+Ñ+Ó-ˆØ � ‰ ×!Ñ! # t§~¡~°fÑ'<Ñ"=¸d¿n¹nÑ"LÔMØ � ‰ ×!Ñ! # t§¡°wÑ'>Ñ"?ÀÇÁÑ"OÔPØ —N‘NÓ " g·±Ó&?Ø �L‰L× Ñ  1¨D°q¸aØ%&°¸aÈð ñ Pà �L‰L× Ñ  1¨D°q¸aØ%&°¸aÈð ò Pð �L‰L× $Ñ $Ô &Ø �L‰L× $Ñ $Õ &rÈcó$•UR5 g)zself-explanatoryN)rV)rÎÚevents r¯rMÚScrolledCanvas.onResize…s€à ×ÑÕrÈcó4•URR"U6$©ú?'forward' method, which canvas itself has inherited... )r@Úbbox©rÎÚargss r¯rfÚScrolledCanvas.bbox‰s€ð�|‰|× Ò  $Ð'Ð'rÈcó:•URR"U0UD6$rd)r@Úcget©rÎrhÚkwargss r¯rkÚScrolledCanvas.cgetŽs€ð�|‰|× Ò  $Ð1¨&Ñ1Ð1rÈcó<•URR"U0UD6 g©reN)r@rSrls r¯rSÚScrolledCanvas.config“ó€ð � ‰ ×Ò˜TÐ, VÓ,rÈcó<•URR"U0UD6 grp)r@rLrls r¯rLÚScrolledCanvas.bind˜s€ð � ‰ ×Ò˜4Ð* 6Ó*rÈcó<•URR"U0UD6 grp)r@Úunbindrls r¯rvÚScrolledCanvas.unbind�rrrÈcó8•URR5 grp)r@Ú focus_forcerßs r¯ryÚScrolledCanvas.focus_force¢s€ð � ‰ × Ñ Õ"rÈ) r@r=r&r…r„rƒrDrFr{)éôi^iXr{©NNN)r÷rørùrúrûr;rarVrMrfrkrSrLrvryrürñrÈr¯rrDsA†ñð 25ØDGô<ô2ò$'ò ò(ò 2ò -ò +ò -õ #rÈrr@cóB•\rSrSrSrSrSrSrSrSr Sr S r S r g ) Ú_Rootiªz'Root class for Screen based on Tkinter.cóB•[RRU5 grÁ)r9ÚTkr;rßs r¯r;Ú_Root.__init__¬s€Ü �‰�‰�tÕrÈcó\•[XX#U5UlURRSSS9 g)NrËÚboth)ÚexpandÚfill)rr@Úpack)rÎr{rƒr]r^s r¯Ú setupcanvasÚ_Root.setupcanvas¯s)€Ü% d°6À7ÓKˆŒ Ø � ‰ ×Ñ ¨ÐÒ0rÈcó•UR$rÁ©r@rßs r¯Ú _getcanvasÚ_Root._getcanvas³s €Ø�|‰|ÐrÈcó0•URSXX44-5 g)Nz %dx%d%+d%+d)Úgeometry)rÎr{rƒÚstartxÚstartys r¯Ú set_geometryÚ_Root.set_geometry¶s€Ø � ‰ �m U°FÐ$CÑCÕDrÈcó(•URSU5 g)NÚWM_DELETE_WINDOW)Ú wm_protocol)rÎÚdestroys r¯Ú ondestroyÚ_Root.ondestroy¹s€Ø ×ÑÐ+¨WÕ5rÈcó"•UR5$rÁ)Úwinfo_screenwidthrßs r¯Ú win_widthÚ_Root.win_width¼s€Ø×%Ñ%Ó'Ð'rÈcó"•UR5$rÁ)Úwinfo_screenheightrßs r¯Ú win_heightÚ_Root.win_height¿s€Ø×&Ñ&Ó(Ð(rÈrŠN) r÷rørùrúrûr;r‡r‹r‘r—r›rŸrürñrÈr¯r~r~ªs)†Ù1òò1òòEò6ò(õ)rÈr~có•\rSrSrSrSrSrSrSrS&Sjr S r S&S jr S r S r S rSrS'SjrSrS(SjrS(SjrS(SjrS(SjrSrS'SjrSrSrSrSrSrSrSrSrSr S)S jr!S!r"S"r#S#r$S)S$jr%S%r&g)*ÚTurtleScreenBaseiÅzÇProvide the basic graphics functionality. Interface between Tkinter and turtle.py. To port turtle.py to some different graphics toolkit a corresponding TurtleScreenBase class has to be implemented. cóf•[R"SSURS9nUR5 U$)z$return a blank image object rË)r{rƒrN)r9Ú PhotoImageÚcvÚblank)rÎÚimgs r¯Ú _blankimageÚTurtleScreenBase._blankimageÍs(€ô�mŠm !¨A°d·g±gÑ>ˆØ � ‰ Œ ؈ rÈcó>•[R"XRS9$)zPreturn an image object containing the imagedata from a gif-file named filename. )ÚfilerN)r9r¤r¥)rÎr¨s r¯Ú_imageÚTurtleScreenBase._imageÔs€ô�}Š} (·7±7Ñ;Ð;rÈcó¼•Xl[U[5(a-URRnURRnOs[ URR S55n[ URR S55nURRU*S-U*S-US-US-4S9 X lX0lS=UlUl SUl g)Nr{rƒr%©rQr‰F) r¥rÔrr„r…r§rkrSÚ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ó8•URRSSSS9$)z�>ð �G‰G× $Ñ $Ô &Ø ØˆŒð #Ø �G‰G�N‰NÔ à"ˆD�Nø˜UˆD�Nús µAÁ A có:•URRU5 g)z-Delay subsequent canvas actions for delay ms.N)r¥Úafter©rÎrs r¯Ú_delayÚTurtleScreenBase._delay7s€à �‰� ‰ �eÕrÈcó|•URRU5nSnU$![Ra SnU$f=f)zCCheck if the string color is a legal Tkinter color string. TF)r¥Ú winfo_rgbr9ÚTclError)rÎr:ÚrgbÚoks r¯Ú_iscolorstringÚTurtleScreenBase._iscolorstring;sF€ð Ø—'‘'×#Ñ# EÓ*ˆC؈Bðˆ øô�{‰{ó Ø‰B؈ ð ús ‚!¡;º;có’•Ub*URRUS9 UR5 gURRS5$)zNSet canvas' backgroundcolor if color is not None, else return backgroundcolor.N)r&r&)r¥rSrÜrk)rÎr:s r¯Ú_bgcolorÚTurtleScreenBase._bgcolorEs8€ð Ñ Ø �G‰G�N‰N ˆNÑ &Ø �L‰L�Nà—7‘7—<‘< Ó%Ð %rÈc óÜ•UupgX`R-nXpR-nSSSS.nURRUS- U*X(UXTS9n URR U 5up«pÍXœS- 4$)z…Write txt at pos in canvas with specified font and color. Return text item and x-coord of right bottom corner of text's bounding box.ÚswríÚse)rQÚcenterr`rË)ÚtextÚanchorr…Úfont)r°r±r¥Ú create_textrf)rÎr\ÚtxtÚalignrórXrÅrÆròr×Úx0Úy0Úx1Úy1s r¯Ú_writeÚTurtleScreenBase._writeNs|€ð ‰ˆØ — ‘ ‰OˆØ — ‘ ‰OˆØ¨°TÑ;ˆØ�w‰w×"Ñ" 1 Q¡3¨¨°3ÈÁØ/7ð#ðFˆàŸ™Ÿ™ dÓ+‰ˆ�ؘ‘TˆzÐrÈcóœ^^•Tc TRRUSU-5 gUU4SjnTRRUSU-XT5 g)zºBind fun to mouse-click event on turtle. fun must be a function with two arguments, the coordinates of the clicked point on the canvas. num, the number of the mouse-button defaults to 1 Nú cóÞ>•TRRUR5TR- TRR UR 5*TR - p!T"X5 grÁ©r¥ÚcanvasxrÅr°ÚcanvasyrÆr±©rarÅrÆÚfunrÎs €€r¯ÚeventfunÚ+TurtleScreenBase._onclick..eventfuneóLø€ØŸ™Ÿ™¨¯©Ó0°·±Ñ<ØŸ™Ÿ™¨¯©Ó1Ð1°$·+±+Ñ=ðá�A• rÈ©r¥Ú tag_unbindÚtag_bind©rÎr×rÚnumÚaddrs` ` r¯Ú_onclickÚTurtleScreenBase._onclick\sEù€ð ‰;Ø �G‰G× Ñ ˜t ]°SÑ%8Õ 9ö ð �G‰G× Ñ ˜T =°3Ñ#6¸Õ FrÈcóœ^^•Tc TRRUSU-5 gUU4SjnTRRUSU-XT5 g)a7Bind fun to mouse-button-release event on turtle. fun must be a function with two arguments, the coordinates of the point on the canvas where mouse button is released. num, the number of the mouse-button defaults to 1 If a turtle is clicked, first _onclick-event will be performed, then _onscreensclick-event. NzcóÞ>•TRRUR5TR- TRR UR 5*TR - p!T"X5 grÁrrs €€r¯rÚ-TurtleScreenBase._onrelease..eventfunwrrÈrr s` ` r¯Ú _onreleaseÚTurtleScreenBase._onreleaseksJù€ð ‰;Ø �G‰G× Ñ ˜tÐ%?À#Ñ%EÕ Fö ð �G‰G× Ñ ˜TÐ#=ÀÑ#CØ%õ ,rÈcóœ^^•Tc TRRUSU-5 gUU4SjnTRRUSU-XT5 g)aABind fun to mouse-move-event (with pressed mouse button) on turtle. fun must be a function with two arguments, the coordinates of the actual mouse position on the canvas. num, the number of the mouse-button defaults to 1 Every sequence of mouse-move-events on a turtle is preceded by a mouse-click event on that turtle. Nzcó>•TRRUR5TR- TRR UR 5*TR - p!T"X5 g![a gf=frÁ)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ƒA,A0Á0 A=Á<A=rr s` ` r¯Ú_ondragÚTurtleScreenBase._ondrag~sGù€ð ‰;Ø �G‰G× Ñ ˜tÐ%8¸3Ñ%>Õ ?ö ð �G‰G× Ñ ˜TÐ#6¸Ñ#<¸hÕ LrÈcó˜^^•TcTRRSU-5 gUU4SjnTRRSU-XC5 g)aBind fun to mouse-click event on canvas. fun must be a function with two arguments, the coordinates of the clicked point on the canvas. num, the number of the mouse-button defaults to 1 If a turtle is clicked, first _onclick-event will be performed, then _onscreensclick-event. NrþcóÞ>•TRRUR5TR- TRR UR 5*TR - p!T"X5 grÁrrs €€r¯rÚ1TurtleScreenBase._onscreenclick..eventfunŸrrÈ©r¥rvrL)rÎrr r rs`` r¯Ú_onscreenclickÚTurtleScreenBase._onscreenclick“s=ù€ð ‰;Ø �G‰G�N‰N˜=¨3Ñ.Õ /ö ð �G‰G�L‰L˜¨Ñ,¨hÕ có>•T"5 grÁrñ©rars €r¯rÚ0TurtleScreenBase._onkeyrelease..eventfun¬óø€Ù•rÈr©rÎrr­rs ` r¯Ú _onkeyreleaseÚTurtleScreenBase._onkeyrelease¥s?ø€ð ‰;Ø �G‰G�N‰NÐ,¨sÑ2°DÕ 9õ à �G‰G�L‰LÐ*¨SÑ0°(Õ ;rÈcó^•Tc@UcURRSS5 gURRSU-S5 gU4SjnUcURRSU5 gURRSU-U5 g)z…If key is given, bind fun to key-press event of key. Otherwise bind fun to any key-press. Canvas must have focus. See method listen. Nz z có>•T"5 grÁrñr"s €r¯rÚ.TurtleScreenBase._onkeypress..eventfun»r$rÈrr%s ` r¯Ú _onkeypressÚTurtleScreenBase._onkeypress°skø€ð ‰;؉{Ø—‘—‘˜|¨TÕ2à—‘—‘˜°Ñ4°dÕ;õ à‰{Ø—‘— ‘ ˜\¨8Õ4à—‘— ‘ ˜_¨sÑ2°HÕ=rÈcó8•URR5 g)z=Set focus on canvas (in order to collect key-events) N)r¥ryrßs r¯Ú_listenÚTurtleScreenBase._listenÂs€ð �‰×ÑÕrÈcó~•US:XaURRU5 gURRX!5 g)z?Install a timer, which calls fun after t milliseconds. rN)r¥Ú after_idlerß©rÎrÚts r¯Ú_ontimerÚTurtleScreenBase._ontimerÇs-€ð �‹6Ø �G‰G× Ñ ˜sÕ #à �G‰G�M‰M˜!Õ !rÈcó8•URRSSUS9$)z0Create and return image item on canvas. r©Úimage)r¥Ú create_image)rÎr8s r¯Ú _createimageÚTurtleScreenBase._createimageÏs €ð�w‰w×#Ñ# A q°Ð#Ð6Ð6rÈcó®•UupEURRXUR-U*UR-45 URR XS9 g)zJConfigure image item as to draw image object at position (x,y) on canvas) r7N)r¥rÁr°r±Ú itemconfig)rÎr×r\r8rÅrÆs r¯Ú _drawimageÚTurtleScreenBase._drawimageÔsH€ð‰ˆØ �‰�‰�t $§+¡+™o°¨r°D·K±KÑ/?Ð@ÔAØ �‰×ј4ÐÒ-rÈcól•URRXS9 URRU5 g)z›Configure image item as to draw image object at center of canvas. Set item to the first item in the displaylist, so it will be drawn below any other item .r7N)r¥r=Ú tag_lower)rÎr×r8s r¯Ú _setbgpicÚTurtleScreenBase._setbgpicÜs+€ð �‰×ј4ÐÑ-Ø �‰×ј$ÕrÈcó8•URRU5$)zAReturn 'line' or 'polygon' or 'image' depending on type of item. )r¥rrÖs r¯Ú_typeÚTurtleScreenBase._typeäs€ð�w‰w�|‰|˜DÓ!Ð!rÈcó¦•URRU5n[S[U5S5Vs/sHo2UX#S-*4PM nnU$s snf)zðreturns list of coordinate-pairs of points of item Example (for insiders): >>> from turtle import * >>> getscreen()._pointlist(getturtle().turtle._item) [(0.0, 9.9999999999999982), (0.0, -9.9999999999999982), (9.9999999999999982, 0.0)] >>> rr%rË)r¥rÁÚrangeÚlen)rÎr×rÇÚiÚpls r¯Ú _pointlistÚTurtleScreenBase._pointlistêsR€ð�W‰W�^‰^˜DÓ !ˆÜ).¨q´#°b³'¸1Ô)=Ó >Ò)= A�!‰u�r˜A™#‘w�hÓÑ)=ˆÐ >؈ ùò?s´Acó:•URRXX44S9 g)Nr¯)r¥rS)rÎÚsrx1Úsry1Úsrx2Úsry2s r¯Ú_setscrollregionÚ!TurtleScreenBase._setscrollregionös€Ø �‰�‰ T°Ð$<ˆÒ=rÈcóT•URR5nUHˆn[URRU55n/nU(a;USSupxUR Xq-5 UR X‚-5 USSnU(aM;URR"U/UQ76 MŠ g)Nr%)r¥Úfind_allrÿrÁrÀ) rÎÚ xscalefactorÚ yscalefactorrr×Ú coordinatesÚ newcoordlistrÅrÆs r¯Ú_rescaleÚTurtleScreenBase._rescaleùs•€Ø—‘× Ñ Ó"ˆÛˆDܘtŸw™wŸ~™~¨dÓ3Ó4ˆK؈LÞØ" 2 A�‘�Ø×#Ñ# AÑ$4Ô5Ø×#Ñ# AÑ$4Ô5Ø)¨!¨"˜o� ÷ �+ð �G‰G�NŠN˜4Ð / ,Õ /òrÈcóH•[UR[5(dURUR4$Xs=La Us=Lac/O O,URRURR4$UbXlUbX lURR XU5 g)zQResize the canvas the turtles are drawing on. Does not alter the drawing window. N)rÔr¥rr„r…rarWs 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óÄ•URR5nUS::aURSnURR5nUS::aURSnX4$)z:Return the width and height of the turtle window. rËr{rƒ)r¥rZr[)rÎr{rƒs r¯Ú _window_sizeÚTurtleScreenBase._window_sizesZ€ð—‘×#Ñ#Ó%ˆØ �A‹:Ø—G‘G˜GÑ$ˆEØ—‘×%Ñ%Ó'ˆØ �Q‹;Ø—W‘W˜XÑ&ˆF؈}ÐrÈcóL•URRR5 g)aCStarts event loop - calling Tkinter's mainloop function. No argument. Must be last statement in a turtle graphics program. Must NOT be used if a script is run from within IDLE in -n mode (No subprocess) - for interactive use of turtle graphics. Example (for a TurtleScreen instance named screen): >>> screen.mainloop() N)r¥Útkrrßs r¯rÚTurtleScreenBase.mainloops€ð �‰� ‰ ×ÑÕrÈcó@•[R"XURS9$)aMPop up a dialog window for input of a string. Arguments: title is the title of the dialog window, prompt is a text mostly describing what information to input. Return the string input If the dialog is canceled, return None. Example (for a TurtleScreen instance named screen): >>> screen.textinput("NIM", "Name of first player:") )Úparent)rÚ askstringr¥)rÎr*Úprompts r¯r)ÚTurtleScreenBase.textinput.s€ô×%Ò% e¸D¿G¹GÑDÐDrÈc óD•[R"XUXEURS9$)aWPop up a dialog window for input of a number. Arguments: title is the title of the dialog window, prompt is a text mostly describing what numerical information to input. default: default value minval: minimum value for input maxval: maximum value for input The number input must be in the range minval .. maxval if these are given. If not, a hint is issued and the dialog remains open for correction. Return the number input. If the dialog is canceled, return None. Example (for a TurtleScreen instance named screen): >>> screen.numinput("Poker", "Your stakes:", 1000, minval=10, maxval=10000) )Ú initialvalueÚminvalueÚmaxvaluerg)rÚaskfloatr¥)rÎr*riÚdefaultÚminvalÚmaxvals r¯rÚTurtleScreenBase.numinput=s%€ô$×$Ò$ UÀØ.4Ø,0¯G©Gñ5ð 5rÈ)r²r…r„r¥r°r±)NNNFrÁ©rËNr|)'r÷rørùrúrûr¨r¬r;rºrÈrÎrÒrØrÜrárèrërûrrrrr&r+r.r4r:r>rBrErLrSr[r^rarr)rrürñrÈr¯r¢r¢ÅsÀ†ñòò<ò òOð 37Ø05ô(ò28ð -1Ø-2ô(ò.ò #òòô&ò ô Gô,ô&Mô*=ò$ <ô>ò$ò "ò7ò .ò ò"ò ò>ò 0ô 1ò ò ò E÷5rÈr¢có•\rSrSrSrSrg)r�iYzª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�Ys †ñò  rÈcó•\rSrSrSrSrg)ÚTurtleGraphicsErroribzSome TurtleGraphics Error rñNrvrñrÈr¯rxrxbs†ôrÈrxcó,•\rSrSrSrSSjrSSjrSrg)rigzÐData structure modeling shapes. attribute _type is one of "polygon", "image", "compound" attribute _data is - depending on _type a poygon-tuple, an image or a list constructed using the addcomponent method. Ncób•XlUS:Xa![U[5(a [U5nO|US:Xa_[U[5(aIUR 5R S5(a%[U5(a[RU5nOUS:Xa/nO[SU-5eX l g)NÚpolygonr8ú.gifÚcompoundzThere is no shape type %s) rErÔrÿrÂrÚlowerÚendswithrr r¬rxÚ_data)rÎÚtype_Údatas r¯r;ÚShape.__init__nsŽ€ØŒ Ø �IÓ Ü˜$¤×%Ñ%ܘT“{�øØ �gÓ Ü˜$¤×$Ñ$Ø—:‘:“<×(Ñ(¨×0Ñ0´V¸D·\±\Ü'×.Ñ.¨tÓ4�Døà �jÓ Ø‰Dä%Ð&AÀEÑ&IÓJÐ JØ� rÈcó˜•URS:wa[SUR-5eUcUnURRXU/5 g)aÕAdd component to a shape of type compound. Arguments: poly is a polygon, i. e. a tuple of number pairs. fill is the fillcolor of the component, outline is the outline color of the component. call (for a Shapeobject namend s): -- s.addcomponent(((0,0), (10,10), (-10,10)), "red", "blue") Example: >>> poly = ((0,0),(10,-5),(0,10),(-10,-5)) >>> s = Shape("compound") >>> s.addcomponent(poly, "red", "blue") >>> # .. add more components and then use register_shape() r}z Cannot add component to %s ShapeN)rErxr€rÀ)rÎÚpolyr…r¸s r¯Ú addcomponentÚShape.addcomponent~sP€ð �:‰:˜Ó #Ü%Ð&HØBFÇ*Á*ñ'MóNð Nà ‰?؈GØ � ‰ ×ј4 wÐ/Õ0rÈ)r€rErÁ)r÷rørùrúrûr;r†rürñrÈr¯rrgs†ñô ÷ 1rÈrcóD•\rSrSrSrS SjrS SjrSrSrSr S r S r g) ÚTbufferi–z5Ring buffer used as undobuffer for RawTurtle objects.cóD•XlS//U-UlSUlSUlg)NrF)ÚbufsizeÚbufferÚptrÚcumulate)rÎr‹s r¯r;ÚTbuffer.__init__˜s%€ØŒ Ø�v�h Ñ(ˆŒ ؈ŒØˆ� rÈNcó–•Uc-[UR5HnS/URU'M OXlS//U-UlSUlg)Nr)rHr‹rŒr�)rÎr‹rJs r¯raÚ Tbuffer.reset�sG€Ø ‰?ܘ4Ÿ<™<Ö(�Ø"& �— ‘ ˜A“ò)ð#ŒLØ ˜6˜( WÑ,ˆDŒK؈�rÈcó •URS:”atUR(d:URS-UR-UlXRUR'gURURR U5 ggrÊ)r‹rŽr�rŒrÀrÖs r¯ÚpushÚ Tbuffer.push¥s]€Ø �<‰<˜!Ó Ø—=—=Ø ŸH™H q™L¨D¯L©LÑ8�”Ø(,— ‘ ˜DŸH™HÒ%à— ‘ ˜DŸH™HÑ%×,Ñ,¨TÕ2ð rÈcóØ•URS:”aZURURnUcgS/URUR'URS- UR-UlU$grÊ)r‹rŒr�rÖs r¯ÚpopÚ Tbuffer.pop¬s^€Ø �<‰<˜!Ó Ø—;‘;˜tŸx™xÑ(ˆD؉|Øà)-¨�— ‘ ˜DŸH™HÑ%Ø ŸH™H q™L¨D¯L©LÑ8�”Ø� ð rÈcóT•URURRS/5- $rÁ)r‹rŒÚcountrßs r¯Ú nr_of_itemsÚTbuffer.nr_of_itemsµs"€Ø�|‰|˜dŸk™k×/Ñ/°°Ó7Ñ7Ð7rÈcó^•[UR5S-[UR5-$)NÚ )rrŒr�rßs r¯rõÚTbuffer.__repr__·s#€Ü�4—;‘;Ó #Ñ%¬¨D¯H©H« Ñ5Ð5rÈ)rŒr‹rŽr�)rŠrÁ) r÷rørùrúrûr;rar“r–ršrõrürñrÈr¯r‰r‰–s#†Ù?ôô ò3òò8õ6rÈr‰có•\rSrSrSrSr\S\S\S4SjrSrS#S jr S r S#S jr S r Sr S#SjrSrSrSrS$SjrS#SjrSrSrSrSrSrSrS%SjrSrS#SjrS$SjrS&SjrS#S jrS'S!jr \r!\r"\r#\ r$\r%S"r&g )(r i¼zÁProvides screen oriented methods like bgcolor etc. Only relies upon the methods of TurtleScreenBase and NOT upon components of the underlying graphics toolkit - which is Tkinter in this case. Trrrc óî•[RX5 [SS5[SS5[SS5[SS5[SS5[SS5[SUR55S .UlS S 0UlX lX@l[S Ul /Ul UR5 [RS :Xa/UR5nURSS9 URSS9 gg)Nr{)©éöÿÿÿr©rŠr©rrŠ))ré)éþÿÿÿé)rrŠ)éüÿÿÿé)éùÿÿÿé )é÷ÿÿÿé)éúÿÿÿé)rªrË)éûÿÿÿéýÿÿÿ)éøÿÿÿr®)r®r²)r¨r°©rrª)ér°)ér²)r­r®)r¯r±)r©rË)rµr¯)r«r­)r©r«)r´r©)rËrŠ)r%r§)r£)ç…ëQ¸#@縅ëQ¸@)ç®Gáz. @ç…ëQ¸…@)r¹r¸)r·r¶r¤)縅ëQ¸Àr¶)ç…ëQ¸…Àr¸)ç®Gáz. Àr¹)ç…ëQ¸#Àr·r¡)r½rº)r¼r»)r»r¼)rºr½)g€g$À)r·r½)r¹r¼)r¸r»)r¶rº))rŠr¢)rŠrŠ)r¢rŠ)r¢r¢))rŠç®GázÀ)rgš™™™™'@)r¢r¾)©rr)r°r¬r³)r¯r¬r8)Úarrowr“r5ÚsquareÚtrianglerŒr¦Únopicr³rÚdarwinT)ÚtopmostF)r¢r;rr¨Ú_shapesÚ_bgpicsÚ_modeÚ _delayvaluer¶Ú _colormodeÚ_keysr6ÚsysÚplatformr<Ú wm_attributes)rÎr¥rrrÚ rootwindows r¯r;ÚTurtleScreen.__init__Åsý€ä×!Ñ! $Ô+ô# 9Ð.GÓHÜ" 9ð/&ó'ô # 9ð/HóIô # 9ð/)ó*ä" 9ð/+ó,ä" 9Ð.KÓLÜ" 7¨D×,<Ñ,<Ó,>Ó?ñ%ˆŒ ð*  "�~ˆŒ àŒ Ø Ôܘ{Ñ+ˆŒØˆŒ Ø � ‰ Œ Ü �<‰<˜8Ó #ð×*Ñ*Ó,ˆJØ × $Ñ $¨TÐ $Ñ 2Ø × $Ñ $¨UÐ $Ò 3ð $rÈcóÆ•[SUl[SUlURS5 UR S5UlSUlSUlSUl/Ul URS5 S HnURS U5 M URS 5 URS S H'nURS U5 URS U5 M) S [lg ) a9Delete all drawings and all turtles from the TurtleScreen. No argument. Reset empty TurtleScreen to its initial state: white background, no backgroundimage, no eventbindings and tracing on. Example (for a TurtleScreen instance named screen): >>> screen.clear() Note: this method is not available as function. rrÚallr³rÃrËrr$)rËr%éN)r¶rÉrÊrØr:Ú_bgpicÚ _bgpicnameÚ_tracingÚ_updatecounterÚ_turtlesrrSr rËrr Ú_pen)rÎÚbtnr­s r¯r6ÚTurtleScreen.clearís¾€ô  ™=ˆÔܘ{Ñ+ˆŒØ � ‰ �UÔØ×'Ñ'¨Ó+ˆŒ Ø!ˆŒØˆŒ ØˆÔØˆŒ Ø � ‰ �WÔÛˆCØ �L‰L˜˜sÖ #ñà �‰˜ÔØ—:‘:™a“=ˆCØ �J‰J�t˜SÔ !Ø �O‰O˜D #Ö &ñ!ðŒ� rÈNcóR•Uc UR$UR5nUS;a[SU-5eXlUS;aXURUR*S-UR *S-URS-UR S-5 S=UlUlUR5 g)aèSet turtle-mode ('standard', 'logo' or 'world') and perform reset. Optional argument: mode -- one of the strings 'standard', 'logo' or 'world' Mode 'standard' is compatible with turtle.py. Mode 'logo' is compatible with most Logo-Turtle-Graphics. Mode 'world' uses userdefined 'worldcoordinates'. *Attention*: in this mode angles appear distorted if x/y unit-ratio doesn't equal 1. If mode is not given, return the current mode. Mode Initial turtle heading positive angles ------------|-------------------------|------------------- 'standard' to the right (east) counterclockwise 'logo' upward (north) clockwise Examples: >>> mode('logo') # resets turtle heading to north >>> mode() 'logo' N©rˆÚlogoÚworldzNo turtle-graphics-mode %s)rˆrÞr%r‰) rÈr~rxrSr„r…r°r±ra©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óh•UR5S:waURS5 [X1- 5n[XB- 5nUR5upxURUS- US- 5 URUR p©UR U- UlURU- UlXR-n U*UR -n UR U -n URU -nURX¼XÞ5 URURU - UR U - 5 UR5 g)aóSet up a user defined coordinate-system. Arguments: llx -- a number, x-coordinate of lower left corner of canvas lly -- a number, y-coordinate of lower left corner of canvas urx -- a number, x-coordinate of upper right corner of canvas ury -- a number, y-coordinate of upper right corner of canvas Set up user coodinat-system and switch to mode 'world' if necessary. This performs a screen.reset. If mode 'world' is already active, all drawings are redrawn according to the new coordinates. But ATTENTION: in user-defined coordinatesystems angles may appear distorted. (see Screen.mode()) Example (for a TurtleScreen instance named screen): >>> screen.setworldcoordinates(-10,-0.5,50,1.5) >>> for _ in range(36): ... left(10) ... forward(0.5) rßéN) rr¦rar&r°r±r„r…rSr[r-)rÎÚllxÚllyÚurxÚuryÚxspanÚyspanÚwxÚwyÚ oldxscaleÚ oldyscalerOrPrQrRs r¯r(Ú TurtleScreen.setworldcoordinates-sü€ð, �9‰9‹;˜'Ó !Ø �I‰I�gÔ Ü�c‘iÓ ˆÜ�c‘iÓ ˆØ×"Ñ"Ó$‰ˆØ �‰˜˜2™˜r "™uÔ%Ø#Ÿ{™{¨D¯K©K�9Ø—n‘n uÑ,ˆŒ Ø—o‘o¨Ñ-ˆŒ Ø—[‘[Ñ ˆØˆt�d—k‘kÑ!ˆØ�~‰~ Ñ$ˆØ�‰ Ñ%ˆØ ×јd¨$Ô5Ø � ‰ �d—k‘k )Ñ+¨T¯[©[¸Ñ-BÔCØ � ‰ � rÈcóþ•UcKUR5RS5(a[SURU55nO,[ S5e[ U[ 5(a [SU5nX RU'g)aAdds a turtle shape to TurtleScreen's shapelist. Arguments: (1) name is the name of a gif-file and shape is None. Installs the corresponding image shape. !! Image-shapes DO NOT rotate when turning the turtle, !! so they do not display the heading of the turtle! (2) name is an arbitrary string and shape is a tuple of pairs of coordinates. Installs the corresponding polygon shape (3) name is an arbitrary string and shape is a (compound) Shape object. Installs the corresponding compound shape. To use a shape, you have to issue the command shape(shapename). call: register_shape("turtle.gif") --or: register_shape("tri", ((0,0), (10,10), (-10,10))) Example (for a TurtleScreen instance named screen): >>> screen.register_shape("triangle", ((5,-3),(0,5),(-5,-3))) Nr|r8z;Bad arguments for register_shape. Use help(register_shape)r{)r~rrr¬rxrÔrÂrÆ)rÎÚnamerks r¯r$ÚTurtleScreen.register_shapeTso€ð. ‰=à�z‰z‹|×$Ñ$ V×,Ñ,ܘg t§{¡{°4Ó'8Ó9‘ä)ð+HóJðJä ˜œu× %Ñ %ܘ) UÓ+ˆEà"� ‰ �TÒrÈcó,•[U5S:XaUSn[U[5(a5URU5(dUS:XaU$[ S[U5-5eUup#nURS:Xa$X#U4Vs/sHn[SU-5PM snup#nSUs=::aS::a"O OSUs=::aS::aO OSUs=::aS::dO [ S [U5-5eS X#U4-$![ [ 4a [ S[U5-5ef=fs snf) zçReturn color string corresponding to args. Argument may be a string or a tuple of three numbers corresponding to actual colormode, i.e. in the range 0<=n<=colormode. If the argument doesn't represent a color, an error is raised. rËrr³zbad color string: %súbad color arguments: %sr‰çào@éÿúbad color sequence: %sú #%02x%02x%02x) rIrÔrrèrxÚ TypeErrorr£rÊÚround)rÎr:r˜ÚgÚbrÅs r¯Ú _colorstrÚTurtleScreen._colorstrws €ô ˆu‹:˜‹?ؘ!‘HˆEÜ �eœS× !Ñ !Ø×"Ñ" 5×)Ñ)¨U°b«[Ø� ä)Ð*@Ä3ÀuÃ:Ñ*MÓNÐNð N؉GˆA�!ð �?‰?˜cÓ !Ø01°a©yÓ9ªy¨!”u˜U 1™W–~©yÑ9‰GˆA�!Ø�a•˜3– Q¨!¥]¨s¦]¸¸a½À3½Ü%Ð&>ÄÀUÃÑ&KÓLÐ LØ !¨ Ñ*Ð*øô œ:Ð&ó NÜ%Ð&?Ä#ÀeÃ*Ñ&LÓMÐ Mð Nüò:sÁ C&Á;DÃ&(Dc óX^•URS5(dU$[U5S:Xa"SVs/sHn[XUS-S5PM nnOB[U5S:Xa%USSVs/sHnS[XS5-PM nnO[SU-5e[ U4S jU55$s snfs snf) Nr™r©)rËrÓr¯r%r¥r´rËzbad colorstring: %sc3óF># •UHoTR-S- v• M g7f)rõN)rÊ)Ú.0rìrÎs €r¯Ú Ú&TurtleScreen._color..›søé€Ð9²b°˜Ÿ™Ñ(¨Ö,²bùsƒ!)r¢rIr§rxrÂ)rÎÚcstrrJrÇr´s` r¯Ú_colorÚTurtleScreen._color’s¦ø€Ø�‰˜s×#Ñ#؈KÜ ˆt‹9˜‹>Ù09Ó:² ¨1”#�d˜Q˜q™S�k 2Ö&± ˆBÐ:ˆBÜ �‹Y˜!‹^Ø/3°A°B©xÓ8ªx¨!�"”S˜™ "Ó%Ô%©xˆBÐ8ˆBä%Ð&;¸dÑ&BÓCÐ CÜÔ9±bÓ9Ó9Ð9ùò ;ùâ8s ­B"Á!B'có~•Uc UR$US:Xa[U5UlgUS:Xa[U5Ulgg)a)Return the colormode or set it to 1.0 or 255. Optional argument: cmode -- one of the values 1.0 or 255 r, g, b values of colortriples have to be in range 0..cmode. Example (for a TurtleScreen instance named screen): >>> screen.colormode() 1.0 >>> screen.colormode(255) >>> pencolor(240,160,80) Nr‰rõ)rÊr¦r§)rÎÚcmodes r¯rÚTurtleScreen.colormode�s<€ð ‰=Ø—?‘?Ð "Ø �C‹<Ü# E›lˆD�OØ �c‹\Ü! %›jˆD�OðrÈcó€•URH.nURUR5 UR5 M0 g)zŽReset all Turtles on the Screen to their initial state. No argument. Example (for a TurtleScreen instance named screen): >>> screen.reset() N)rØÚ_setmoderÈra)rÎr“s r¯raÚTurtleScreen.reset²s+€ð—m”mˆFØ �O‰O˜DŸJ™JÔ 'Ø �L‰LŽNò$rÈcó•UR$)z›Return the list of turtles on the screen. Example (for a TurtleScreen instance named screen): >>> screen.turtles() [] )rØrßs r¯r,ÚTurtleScreen.turtles¾s€ð�}‰}ÐrÈcó†•U(aURU5nOSnURU5nUbURU5nU$)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Îrhr:s r¯rÚTurtleScreen.bgcolorÇsA€ö< Ø—N‘N 4Ó(‰EàˆEØ— ‘ ˜eÓ$ˆØ Ñ Ø—K‘K Ó&ˆE؈ rÈcóº•Uc UR$[U5UlSUlUb[U5UlUR(aUR 5 gg)aõTurns turtle animation on/off and set delay for update drawings. Optional arguments: n -- nonnegative integer delay -- nonnegative integer If n is given, only each n-th regular screen update is really performed. (Can be used to accelerate the drawing of complex graphics.) Second arguments sets delay value (see RawTurtle.delay()) Example (for a TurtleScreen instance named screen): >>> screen.tracer(8, 25) >>> dist = 2 >>> for i in range(200): ... fd(dist) ... rt(90) ... dist += 2 Nr)rÖr§r×rÉr-)rÎÚnrs r¯r+ÚTurtleScreen.tracerîsM€ð& ‰9Ø—=‘=РܘA›ˆŒ ØˆÔØ Ñ Ü" 5›zˆDÔ Ø �=�=Ø �K‰K�Mð rÈcóB•Uc UR$[U5Ulg)z¿Return or set the drawing delay in milliseconds. Optional argument: delay -- positive integer Example (for a TurtleScreen instance named screen): >>> screen.delay(15) >>> screen.delay() 15 N)rÉr§ràs r¯rÚTurtleScreen.delay s!€ð ‰=Ø×#Ñ#Ð #ܘu›:ˆÕrÈcóÚ•[R(dS[l[eURS:”a5U=RS- slU=RUR-slgg)zIncrement update counter.TrrËN)r Ú_RUNNINGr�rÖr×rßs r¯Ú _incrementudcÚTurtleScreen._incrementudcsP€ä×$×$Ø$(ŒLÔ !ÜÐ Ø �=‰=˜1Ó Ø × Ò  1Ñ $Õ Ø × Ò  4§=¡=Ñ 0Ö ð rÈcóÄ•URnSUlUR5H#nUR5 UR5 M% XlUR 5 g)z'Perform a TurtleScreen update. TN)rÖr,Ú _update_dataÚ _drawturtlerÜ)rÎÚtracingr3s r¯r-ÚTurtleScreen.update"sG€ð—-‘-ˆØˆŒ Ø—‘–ˆAØ �N‰NÔ Ø �M‰MŽOñ ð Œ Ø � ‰ �rÈcó(•UR5S$)zzReturn the width of the turtle window. Example (for a TurtleScreen instance named screen): >>> screen.window_width() 640 r©rarßs r¯r/ÚTurtleScreen.window_width-ó€ð× Ñ Ó" 1Ñ%Ð%rÈcó(•UR5S$)z|Return the height of the turtle window. Example (for a TurtleScreen instance named screen): >>> screen.window_height() 480 rËr rßs r¯r.ÚTurtleScreen.window_height6r"rÈcó•UR$)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.getcanvas?s €ð�w‰wˆrÈcóH•[URR55$)zÈReturn a list of names of all currently available turtle shapes. No argument. Example (for a TurtleScreen instance named screen): >>> screen.getshapes() ['arrow', 'blank', 'circle', ... , 'turtle'] )ÚsortedrÆr rßs r¯rÚTurtleScreen.getshapesKs€ô�d—l‘l×'Ñ'Ó)Ó*Ð*rÈcó(•URXU5 g)ašBind fun to mouse-click event on canvas. Arguments: fun -- a function with two arguments, the coordinates of the clicked point on the canvas. btn -- the number of the mouse-button, defaults to 1 Example (for a TurtleScreen instance named screen) >>> screen.onclick(goto) >>> # Subsequently clicking into the TurtleScreen will >>> # make the turtle move to the clicked point. >>> screen.onclick(None) N)r©rÎrrÚr s r¯rSÚTurtleScreen.onclickVs€ð ×јC cÕ*rÈcóÖ•Uc+X R;aURRU5 O*X R;aURRU5 URX5 g)aõBind fun to key-release event of key. Arguments: fun -- a function with no arguments key -- a string: key (e.g. "a") or key-symbol (e.g. "space") In order to be able to register key-events, TurtleScreen must have focus. (See method listen.) Example (for a TurtleScreen instance named screen): >>> def f(): ... fd(50) ... lt(60) ... >>> screen.onkey(f, "Up") >>> screen.listen() Subsequently the turtle can be moved by repeatedly pressing the up-arrow key, consequently drawing a hexagon N)rËÚremoverÀr&©rÎrr­s r¯rÚTurtleScreen.onkeygsP€ð. ‰;Ø—j‘jÓ Ø— ‘ ×!Ñ! #Ô&øØ Ÿ ™ Ó "Ø �J‰J× Ñ ˜cÔ "Ø ×ј3Õ$rÈcóÜ•Uc+X R;aURRU5 O-Ub*X R;aURRU5 URX5 g)a�Bind fun to key-press event of key if key is given, or to any key-press-event if no key is given. Arguments: fun -- a function with no arguments key -- a string: key (e.g. "a") or key-symbol (e.g. "space") In order to be able to register key-events, TurtleScreen must have focus. (See method listen.) Example (for a TurtleScreen instance named screen and a Turtle instance named turtle): >>> def f(): ... fd(50) ... lt(60) ... >>> screen.onkeypress(f, "Up") >>> screen.listen() Subsequently the turtle can be moved by repeatedly pressing the up-arrow key, or by keeping pressed the up-arrow key. consequently drawing a hexagon. N)rËr.rÀr+r/s r¯r ÚTurtleScreen.onkeypress…sT€ð2 ‰;Ø—j‘jÓ Ø— ‘ ×!Ñ! #Ô&øØ ‰_ ¯J©JÓ!6Ø �J‰J× Ñ ˜cÔ "Ø ×јÕ"rÈcó$•UR5 g)zêSet focus on TurtleScreen (in order to collect key-events) No arguments. Dummy arguments are provided in order to be able to pass listen to the onclick method. Example (for a TurtleScreen instance named screen): >>> screen.listen() N)r.)rÎÚxdummyÚydummys r¯rÚTurtleScreen.listen¥s €ð � ‰ �rÈcó&•URX5 g)aInstall a timer, which calls fun after t milliseconds. Arguments: fun -- a function with no arguments. t -- a number >= 0 Example (for a TurtleScreen instance named screen): >>> running = True >>> def f(): ... if running: ... fd(50) ... lt(60) ... screen.ontimer(f, 250) ... >>> f() # makes the turtle marching around >>> running = False N)r4r2s r¯r#ÚTurtleScreen.ontimer±s€ð& � ‰ �cÕrÈcóÚ•Uc UR$XR;aURU5URU'URURURU5 Xlg)aæSet background image or return name of current backgroundimage. Optional argument: picname -- a string, name of a gif-file or "nopic". If picname is a filename, set the corresponding image as background. If picname is "nopic", delete backgroundimage, if present. If picname is None, return the filename of the current backgroundimage. Example (for a TurtleScreen instance named screen): >>> screen.bgpic() 'nopic' >>> screen.bgpic("landscape.gif") >>> screen.bgpic() 'landscape.gif' N)rÕrÇr¬rBrÔ)rÎÚpicnames r¯rÚTurtleScreen.bgpicÆsT€ð" ‰?Ø—?‘?Ð "Ø Ÿ,™,Ó &Ø$(§K¡K°Ó$8ˆD�L‰L˜Ñ !Ø �‰�t—{‘{ D§L¡L°Ñ$9Ô:Ø!�rÈcó&•URXU5$)avResize the canvas the turtles are drawing on. Optional arguments: canvwidth -- positive integer, new width of canvas in pixels canvheight -- positive integer, new height of canvas in pixels bg -- colorstring or color-tuple, new backgroundcolor If no arguments are given, return current (canvaswidth, canvasheight) Do not alter the drawing window. To observe hidden parts of the canvas use the scrollbars. (Can make visible those parts of a drawing, which were outside the canvas before!) Example (for a Turtle instance named turtle): >>> turtle.screensize(2000,1500) >>> # e.g. to search for an erroneously escaped turtle ;-) )r^rWs r¯r&ÚTurtleScreen.screensizeÞs€ð"�|‰|˜I°2Ó6Ð6rÈ) rÔrÕrÇrÊrÉrËrÈrÆrÖrØr×r°r±rÁ©NNrt©rr|)'r÷rørùrúrûrr¶r;r6rr(r$rürrrar,rr+rrr-r/r.rrrSrr rr#rr&r"r%rrr!rürñrÈr¯r r ¼sƆñð €Hà $ V¡ Ø  Ñ,°D¸±Mô&4òPô< òD%ôN!#òF+ò6 :ô)ò* òò%ôNô8 &ò1ò ò&ò&ò ò +ô+ò"%ô<#ô@ ôô*"ô07ð&€MØ€KØ€KØ€H؃LrÈr cón•\rSrSrSr\"SS5\"SS5\"SS5S.rSrSrSr \4S jr S r S,S jr S r S-SjrSrSrSrSrS.SS.S\SS 4SjjjrSrSrSrSrSrSrSrS,SjrS rS!rS"rS,S#jr S,S$jr!S%r"S&r#S.S'jr$S/S(jr%S.S)jr&S,S*jr'\r(\r)\r*\r+\r,\r-\r.\r/\#r0S+r1g )0Ú TNavigatori÷zJNavigation part of the RawTurtle. Implements methods for turtle movement. r‰ç)rˆrßrÞrˆrrËcóÜ•URUlURUlXlSUlUR 5 SUlURU5 [RU5 grÁ) ÚDEFAULT_ANGLEOFFSETÚ _angleOffsetÚDEFAULT_ANGLEORIENTÚ _angleOrientrÈÚ undobufferr;r rAraràs r¯r;ÚTNavigator.__init__sT€Ø ×4Ñ4ˆÔØ ×4Ñ4ˆÔØŒ ؈ŒØ � ‰ ŒØˆŒ Ø � ‰ �dÔÜ×јÕrÈcój•[SS5Ul[RURUlg)zHreset turtle to its initial values Will be overwritten by parent class rBN)rÚ _positionrAÚSTART_ORIENTATIONrÈÚ_orientrßs r¯raÚTNavigator.reset s'€ô ˜s C›ˆŒÜ"×4Ñ4°T·Z±ZÑ@ˆ� rÈNcóœ•Uc UR$US;agXlUS;aSUlSUlgURS- UlSUlg)z:Set turtle-mode to 'standard', 'world' or 'logo'. NrÝ)rˆrßrrËç@r)rÈrErGÚ _fullcircleràs r¯r ÚTNavigator._setmodesX€ð ‰<Ø—:‘:Ð Ø Ð4Ó 4Ø ØŒ Ø Ð(Ó (Ø !ˆDÔ Ø !ˆDÕ à $× 0Ñ 0°Ñ 3ˆDÔ Ø "ˆDÕ rÈcóh•XlSU- UlURS:XaSUlgUS- Ulg)z+Helper function for degrees() and radians()ihrˆrrPN)rQÚ _degreesPerAUrÈrE©rÎÚ fullcircles r¯Ú_setDegreesPerAUÚTNavigator._setDegreesPerAU$s4€à%ÔØ  ™^ˆÔØ �:‰:˜Ó #Ø !ˆDÕ à *¨2¡ ˆDÕ rÈcó&•URU5 g)aÅSet angle measurement units to degrees. Optional argument: fullcircle - a number Set angle measurement units, i. e. set number of 'degrees' for a full circle. Default value is 360 degrees. Example (for a Turtle instance named turtle): >>> turtle.left(90) >>> turtle.heading() 90 Change angle measurement unit to grad (also known as gon, grade, or gradian and equals 1/100-th of the right angle.) >>> turtle.degrees(400.0) >>> turtle.heading() 100 N)rWrUs r¯r;ÚTNavigator.degrees-s€ð, ×јjÕ)rÈcóB•UR[R5 g)z¿Set the angle measurement units to radians. No arguments. Example (for a Turtle instance named turtle): >>> turtle.heading() 90 >>> turtle.radians() >>> turtle.heading() 1.5707963267948966 N)rWrãÚtaurßs r¯r_ÚTNavigator.radiansEs€ð ×ÑœdŸh™hÕ'rÈcó^•URURU--nURU5 g)z)move turtle forward by specified distanceN)rKrMÚ_goto)rÎr<Úendes r¯Ú_goÚTNavigator._goSs%€à�~‰~ § ¡ ¨xÑ 7Ñ7ˆØ � ‰ �4ÕrÈcó`•XR-nURRU5Ulg)z=Turn turtle counterclockwise by specified angle if angle > 0.N)rTrMrî©rÎrês r¯Ú_rotateÚTNavigator._rotateXs&€à ×#Ñ#Ñ#ˆØ—|‘|×*Ñ*¨5Ó1ˆ� rÈcó•Xlg)zmove turtle to position end.N©rK)rÎÚends r¯r_ÚTNavigator._goto]s€à�rÈF©Úfill_gaprlÚreturncót•UbUOURSnUbUOURSn[XE5Ulg)zHTo be overwritten by child class RawTurtle. Includes no TPen references.NrrË)rKr)rÎrÅrÆrlÚnew_xÚnew_ys r¯rsÚTNavigator.teleportas8€ð‘]‘¨¯©°qÑ(9ˆØ‘]‘¨¯©°qÑ(9ˆÜ˜uÓ,ˆ�rÈcó&•URU5 g)aŸMove the turtle forward by the specified distance. Aliases: forward | fd Argument: distance -- a number (integer or float) Move the turtle forward by the specified distance, in the direction the turtle is headed. Example (for a Turtle instance named turtle): >>> turtle.position() (0.00,0.00) >>> turtle.forward(25) >>> turtle.position() (25.00,0.00) >>> turtle.forward(-75) >>> turtle.position() (-50.00,0.00) N©ra©rÎr<s r¯rDÚTNavigator.forwardhs€ð* �‰�ÕrÈcó(•URU*5 g)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) Nrsrts r¯r0ÚTNavigator.backs€ð$ �‰�(�ÕrÈcó(•URU*5 g)aŒTurn turtle right by angle units. Aliases: right | rt Argument: angle -- a number (integer or float) Turn turtle right by angle units. (Units are by default degrees, but can be set via the degrees() and radians() functions.) Angle orientation depends on mode. (See this.) Example (for a Turtle instance named turtle): >>> turtle.heading() 22.0 >>> turtle.right(45) >>> turtle.heading() 337.0 N©rerds r¯r`ÚTNavigator.right“s€ð& � ‰ �e�VÕrÈcó&•URU5 g)a‡Turn turtle left by angle units. Aliases: left | lt Argument: angle -- a number (integer or float) Turn turtle left by angle units. (Units are by default degrees, but can be set via the degrees() and radians() functions.) Angle orientation depends on mode. (See this.) Example (for a Turtle instance named turtle): >>> turtle.heading() 22.0 >>> turtle.left(45) >>> turtle.heading() 67.0 Nryrds r¯rQÚTNavigator.left¨s€ð& � ‰ �UÕrÈcó•UR$)z¶Return the turtle's current location (x,y), as a Vec2D-vector. Aliases: pos | position No arguments. Example (for a Turtle instance named turtle): >>> turtle.pos() (0.00, 240.00) rhrßs r¯r\ÚTNavigator.pos½s€ð�~‰~ÐrÈcó •URS$)z¶Return the turtle's x coordinate. No arguments. Example (for a Turtle instance named turtle): >>> reset() >>> turtle.left(60) >>> turtle.forward(100) >>> print(turtle.xcor()) 50.0 rrhrßs r¯r}ÚTNavigator.xcorÊó€ð�~‰~˜aÑ Ð rÈcó •URS$)zÁReturn the turtle's y coordinate --- No arguments. Example (for a Turtle instance named turtle): >>> reset() >>> turtle.left(60) >>> turtle.forward(100) >>> print(turtle.ycor()) 86.6025403784 rËrhrßs r¯r~ÚTNavigator.ycorØr�rÈcón•UcUR[U65 gUR[X55 g)a»Move turtle to an absolute position. Aliases: setpos | setposition | goto: Arguments: x -- a number or a pair/vector of numbers y -- a number None call: goto(x, y) # two coordinates --or: goto((x, y)) # a pair (tuple) of coordinates --or: goto(vec) # e.g. as returned by pos() Move turtle to an absolute position. If the pen is down, a line will be drawn. The turtle's orientation does not change. Example (for a Turtle instance named turtle): >>> tp = turtle.pos() >>> tp (0.00,0.00) >>> turtle.setpos(60,30) >>> turtle.pos() (60.00,30.00) >>> turtle.setpos((20,80)) >>> turtle.pos() (20.00,80.00) >>> turtle.setpos(tp) >>> turtle.pos() (0.00,0.00) N)r_r)rÎrÅrÆs r¯rJÚTNavigator.gotoçs)€ð< ‰9Ø �J‰J”u˜a�yÕ !à �J‰J”u˜Q“{Õ #rÈcóJ•URSS5 URS5 g)zôMove turtle to the origin - coordinates (0,0). No arguments. Move turtle to the origin - coordinates (0,0) and set its heading to its start-orientation (which depends on mode). Example (for a Turtle instance named turtle): >>> turtle.home() rN)rJrerßs r¯rMÚTNavigator.home s€ð � ‰ �!�QŒØ �‰˜ÕrÈcóR•UR[XRS55 g)a-Set the turtle's first coordinate to x Argument: x -- a number (integer or float) Set the turtle's first coordinate to x, leave second coordinate unchanged. Example (for a Turtle instance named turtle): >>> turtle.position() (0.00, 240.00) >>> turtle.setx(10) >>> turtle.position() (10.00, 240.00) rËN©r_rrK)rÎrÅs r¯riÚTNavigator.setxs€ð � ‰ ”5˜ŸN™N¨1Ñ-Ó.Õ/rÈcóT•UR[URSU55 g)a/Set the turtle's second coordinate to y Argument: y -- a number (integer or float) Set the turtle's first coordinate to x, second coordinate remains unchanged. Example (for a Turtle instance named turtle): >>> turtle.position() (0.00, 40.00) >>> turtle.sety(-10) >>> turtle.position() (0.00, -10.00) rNr‰)rÎrÆs r¯rjÚTNavigator.sety*s €ð � ‰ ”5˜Ÿ™¨Ñ*¨AÓ.Õ/rÈcóü•Ub [X5n[U[5(aUnO?[U[5(a [U6nO![U[5(a URn[ WUR- 5$)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ÂrArKÚabs)rÎrÅrÆr\s r¯r<ÚTNavigator.distance<sd€ð, ‰=ܘ“+ˆCÜ �aœ× Ñ Ø‰CÜ ˜œ5× !Ñ !ܘ�)‰CÜ ˜œ:× &Ñ &Ø—+‘+ˆCÜ�3˜Ÿ™Ñ'Ó(Ð(rÈcóÊ•Ub [X5n[U[5(aUnO?[U[5(a [U6nO![U[5(a URnWUR- up[ [ R"[ R"X!55S5S-nX@R-nURURU--UR-$)aÃReturn the angle of the line from the turtle's position to (x, y). Arguments: x -- a number or a pair/vector of numbers or a turtle instance y -- a number None None call: distance(x, y) # two coordinates --or: distance((x, y)) # a pair (tuple) of coordinates --or: distance(vec) # e.g. as returned by pos() --or: distance(mypen) # where mypen is another turtle Return the angle, between the line from turtle-position to position specified by x, y and the turtle's start orientation. (Depends on modes - "standard" or "logo") Example (for a Turtle instance named turtle): >>> turtle.pos() (10.00, 10.00) >>> turtle.towards(0,0) 225.0 rŠç€v@) rrÔrÂrArKrùrãr;Úatan2rTrErGrQ)rÎrÅrÆr\Úresults r¯rvÚ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óú•URup[[R"[R"X!55S5S-nX0R -nUR URU--UR-$)z‘Return the turtle's current heading. No arguments. Example (for a Turtle instance named turtle): >>> turtle.left(67) >>> turtle.heading() 67.0 rŠr‘) rMrùrãr;r’rTrErGrQ)rÎrÅrÆr“s r¯rKÚTNavigator.headingsg€ð�|‰|‰ˆÜ”t—|’|¤D§J¢J¨qÓ$4Ó5°rÓ:¸UÑBˆØ×$Ñ$Ñ$ˆØ×!Ñ! D×$5Ñ$5°fÑ$<Ñ<À×@PÑ@PÑPÐPrÈcóœ•XR5- UR-nURnX#S- -U-US- - nURU5 g)aSet the orientation of the turtle to to_angle. Aliases: setheading | seth Argument: to_angle -- a number (integer or float) Set the orientation of the turtle to to_angle. Here are some common directions in degrees: standard - mode: logo-mode: -------------------|-------------------- 0 - east 0 - north 90 - north 90 - east 180 - west 180 - south 270 - south 270 - west Example (for a Turtle instance named turtle): >>> turtle.setheading(90) >>> turtle.heading() 90 ç@N)rKrGrQre)rÎÚto_anglerêÚfulls r¯reÚTNavigator.setheadingŽsM€ð.ŸL™L›NÑ*¨D×,=Ñ,=Ñ=ˆØ×шؘB‘w‘ Ñ$ t¨B¡wÑ.ˆØ � ‰ �UÕrÈc ó•UR(a-URRS/5 SURlUR5nUc URnUcB[ U5UR- nS[ [S[ U5S- -S5U-5-nSU-U- nS U-nS U-[R"[R"U5UR-5-nUS :aU*U*U*pvnUR5n UR5n US :XaURS S 5 OURS 5 URU5 [U5HGn URU5 UR!U5 URS 5 URU5 MI URU*5 US :XaURXš5 URU5 UR(aS URlgg) a2Draw a circle with given radius. Arguments: radius -- a number extent (optional) -- a number steps (optional) -- an integer Draw a circle with given radius. The center is radius units left of the turtle; extent - an angle - determines which part of the circle is drawn. If extent is not given, draw the entire circle. If extent is not a full circle, one endpoint of the arc is the current pen position. Draw the arc in counterclockwise direction if radius is positive, otherwise in clockwise direction. Finally the direction of the turtle is changed by the amount of extent. As the circle is approximated by an inscribed regular polygon, steps determines the number of steps to use. If not given, it will be calculated automatically. Maybe used to draw regular polygons. call: circle(radius) # full circle --or: circle(radius, extent) # arc --or: circle(radius, extent, steps) --or: circle(radius, steps=6) # 6-sided polygon Example (for a Turtle instance named turtle): >>> turtle.circle(50) >>> turtle.circle(120, 180) # semicircle ÚseqTNrËé g@g€M@r‰r‚r˜rF)rHr“rŽrprQrŽr§Úminrãrér_rTÚ_tracerrárerHra) rÎÚradiusÚextentÚstepsrpÚfracr³Úw2ÚlÚtrÚdlrJs r¯r5ÚTNavigator.circleªs¥€ð< �?�?Ø �O‰O× Ñ  % Ô )Ø'+ˆD�O‰OÔ $Ø— ‘ “ ˆØ ‰>Ø×%Ñ%ˆFØ ‰=Ü�v“;˜t×/Ñ/Ñ/ˆDØ”cœ#˜b¤ V£¨S¡Ñ0°$Ó7¸Ñ<Ó=Ñ=ˆEØ �&‰L˜5Ñ ˆØ �1‰WˆØ �&‰Lœ4Ÿ8š8¤D§L¢L°Ó$4°T×5GÑ5GÑ$GÓHÑ HˆØ �A‹:Ø�r˜A˜2 ˜s�"ˆAØ �\‰\‹^ˆØ �[‰[‹]ˆØ �A‹:Ø �L‰L˜˜AÕ à �J‰J�qŒMØ � ‰ �RÔÜ�u–ˆAØ �J‰J�uÔ Ø �H‰H�QŒKØ �J‰J�qŒMØ �L‰L˜ŽOñ ð � ‰ �b�SÔØ �A‹:Ø �L‰L˜Ô Ø � ‰ �5ÔØ �?�?Ø',ˆD�O‰OÕ $ð rÈcó•g©z/dummy method - to be overwritten by child classNrñ)rÎrís r¯rpÚTNavigator.speedëó�rÈcó•gr«rñ)rÎÚarûs r¯r ÚTNavigator._tracerír­rÈcó•gr«rñ)rÎrs r¯ráÚTNavigator._delayïr­rÈ)rErGrTrQrÈrMrKrHrÁ)r‘r>r?)2r÷rørùrúrûrrLÚ DEFAULT_MODErDrFr;rar rWr;r_rarer_ÚboolrsrDr0r`rQr\r}r~rJrMrirjr<rvrKrer5rpr rárAr4r1rcrRr]rfrgrdrürñrÈr¯rArA÷s†ññ˜#˜s“OÙ˜#˜s“OÙ˜#˜s“Oñ'Ðð€LØÐØÐà(ôòAô #ò.ô*ò0 (òò 2ò ð-¸5ò-°Dð-ÀTö-òò.ò(ò*ò* ò !ò !ô!$òF ò0ò$0ô$)ô@!QòF Qòô8=-ôB>ô>ô>ð €BØ €BØ€HØ €BØ €BØ€HØ €FØ€KØ ƒDrÈrAcóü•\rSrSrSr\S4Sjr\S\S4SjrS S jrS S jr S r S r S r S Sjr SrSrSrS!SS.S\SS4SjjjrSrSrSrS SjrS"SjrS#SjrSrSr\ r\ r\ r\ r\ r\r \r!Sr"g)$ÚTPeniýz>Drawing part of the RawTurtle. Implements drawing properties. rbcóH•XlSUl[RU5 grÁ)Ú _resizemoderHr¶Ú_reset)rÎrbs r¯r;Ú TPen.__init__s€Ø%ÔØˆŒÜ � ‰ �DÕrÈrXrBcóš•SUlSUlXlX lSUlSUlSUlSUlSUlSUl SUl g)NrËTrÓ)r‰r‰rB)r‰rBrBr‰) Ú_pensizeÚ_shownÚ _pencolorÚ _fillcolorÚ_drawingÚ_speedÚ_stretchfactorÚ _shearfactorÚ_tiltÚ _shapetrafoÚ _outlinewidth)rÎrXrBs r¯r¹Ú TPen._resetsO€àˆŒ ؈Œ Ø!ŒØ#ŒØˆŒ ؈Œ Ø&ˆÔØˆÔØˆŒ Ø+ˆÔ؈ÕrÈNcón•Uc UR$UR5nUS;aURUS9 gg)aúSet resizemode to one of the values: "auto", "user", "noresize". (Optional) Argument: rmode -- one of the strings "auto", "user", "noresize" Different resizemodes have the following effects: - "auto" adapts the appearance of the turtle corresponding to the value of pensize. - "user" adapts the appearance of the turtle according to the values of stretchfactor and outlinewidth (outline), which are set by shapesize() - "noresize" no adaption of the turtle's appearance takes place. If no argument is given, return current resizemode. resizemode("user") is called by a call of shapesize with arguments. Examples (for a Turtle instance named turtle): >>> turtle.resizemode("noresize") >>> turtle.resizemode() 'noresize' N)ÚautoÚuserrŽ©rb)r¸r~rW)rÎÚrmodes r¯rbÚTPen.resizemodes<€ð, ‰=Ø×#Ñ#Ð #Ø— ‘ “ ˆØ Ð0Ó 0Ø �H‰H ˆHÒ &ð 1rÈcó@•Uc UR$URUS9 g)aÁSet or return the line thickness. Aliases: pensize | width Argument: width -- positive number Set the line thickness to width or return it. If resizemode is set to "auto" and turtleshape is a polygon, that polygon is drawn with the same line thickness. If no argument is given, current pensize is returned. Example (for a Turtle instance named turtle): >>> turtle.pensize() 1 >>> turtle.pensize(10) # from here on lines of width 10 are drawn N)rZ)r¼rW)rÎr{s r¯rZÚ TPen.pensize0s!€ð$ ‰=Ø—=‘=Ð Ø �‰˜ˆÒrÈcóF•UR(dgURSS9 g)z”Pull the pen up -- no drawing when moving. Aliases: penup | pu | up No argument Example (for a Turtle instance named turtle): >>> turtle.penup() NF©rY©rÀrWrßs r¯r[Ú TPen.penupGs€ð�}�}Ø Ø �‰˜ˆÒrÈcóF•UR(agURSS9 g)zšPull the pen down -- drawing when moving. Aliases: pendown | pd | down No argument. Example (for a Turtle instance named turtle): >>> turtle.pendown() NTrÑrÒrßs r¯rYÚ TPen.pendownUs€ð �=�=Ø Ø �‰˜ˆÒrÈcó•UR$)zÆReturn True if pen is down, False if it's up. No argument. Example (for a Turtle instance named turtle): >>> turtle.penup() >>> turtle.isdown() False >>> turtle.pendown() >>> turtle.isdown() True )rÀrßs r¯rOÚ TPen.isdowncs€ð�}‰}ÐrÈcó²•SSSSSS.nUc UR$X;aX!nO'SUs=:aS :aO O[[U55nOSnURUS 9 g) aReturn or set the turtle's speed. Optional argument: speed -- an integer in the range 0..10 or a speedstring (see below) Set the turtle's speed to an integer value in the range 0 .. 10. If no argument is given: return current speed. If input is a number greater than 10 or smaller than 0.5, speed is set to 0. Speedstrings are mapped to speedvalues in the following way: 'fastest' : 0 'fast' : 10 'normal' : 6 'slow' : 3 'slowest' : 1 speeds from 1 to 10 enforce increasingly faster animation of line drawing and turtle turning. Attention: speed = 0 : *no* animation takes place. forward/back makes turtle jump and likewise left/right make the turtle turn instantly. Example (for a Turtle instance named turtle): >>> turtle.speed(3) rrŠrµrÓrË)ÚfastestÚfastÚnormalÚslowÚslowestNr‚g%@)rp)rÁr§rùrW)rÎrpÚspeedss r¯rpÚ TPen.speedrs]€ð6 b°1¸QÈ!ÑMˆØ ‰=Ø—;‘;Ð Ø ‹?Ø‘M‰EØ �5Õ ˜4Ö Üœ˜e› Ó%‰EàˆEØ �‰�uˆÒrÈcó8•U(a^[U5nUS:XaUS=p4OUS:XaUup4O US:XaU=p4URW5nURW5nURX4S9 gURUR5URUR 54$)aèReturn or set the pencolor and fillcolor. Arguments: Several input formats are allowed. They use 0 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)) rËrr%rÓ)rXrBN)rIrürWrr¾r¿)rÎrhr¦ÚpcolorÚfcolors r¯r:Ú TPen.color˜s“€ö< Ü�D“ ˆAØ�A‹vØ"& q¡'Ð)�˜Ø�a“Ø!%‘�˜Ø�a“Ø"&Ð&�Ø—^‘^ FÓ+ˆFØ—^‘^ FÓ+ˆFØ �H‰H˜fˆHÒ 7à—;‘;˜tŸ~™~Ó.°· ± ¸D¿O¹OÓ0LÐLÐ LrÈcó¨•U(a1URU5nX R:XagURUS9 gURUR5$)a'Return or set the pencolor. Arguments: Four input formats are allowed: - pencolor() Return the current pencolor as color specification string 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)rX)rür¾rWrrs r¯rXÚ TPen.pencolorÄsD€öB Ø—N‘N 4Ó(ˆEØŸ™Ó&ØØ �H‰H˜eˆHÒ $à—;‘;˜tŸ~™~Ó.Ð .rÈcó¨•U(a1URU5nX R:XagURUS9 gURUR5$)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¿rWrrs r¯rBÚTPen.fillcolorísD€öB Ø—N‘N 4Ó(ˆEØŸ™Ó'ØØ �H‰H˜uˆHÒ %à—;‘;˜tŸ™Ó/Ð /rÈFrkrlrmcón•UR5nU(aURSS9 URUS9 g)zOTo be overwritten by child class RawTurtle. Includes no TNavigator references. FrÑN)rOrW)rÎrÅrÆrlrYs r¯rsÚ TPen.teleport s.€ð—+‘+“-ˆÞ Ø �H‰H˜UˆHÑ #Ø �‰˜ˆÒ!rÈcó"•URSS9 g)z¡Makes the turtle visible. Aliases: showturtle | st No argument. Example (for a Turtle instance named turtle): >>> turtle.hideturtle() >>> turtle.showturtle() T©ÚshownN©rWrßs r¯roÚTPen.showturtle s€ð �‰�tˆÒrÈcó"•URSS9 g)aMakes the turtle invisible. Aliases: hideturtle | ht No argument. It's a good idea to do this while you're in the middle of a complicated drawing, because hiding the turtle speeds up the drawing observably. Example (for a Turtle instance named turtle): >>> turtle.hideturtle() FrëNrírßs r¯rLÚTPen.hideturtle, s€ð �‰�uˆÒrÈcó•UR$)z³Return True if the Turtle is shown, False if it's hidden. No argument. Example (for a Turtle instance named turtle): >>> turtle.hideturtle() >>> print(turtle.isvisible()) False )r½rßs r¯rPÚTPen.isvisible< s€ð�{‰{ÐrÈc óX•URURURURURUR UR URURURURS. nU(d U(dU$[U[5(aUnO0nURU5 0nUH nX6XV'M UR(aURRSU45 SnSU;aURUS:waSnSU;aE[US[ 5(aUR#US45US'URUS:waSnSU;aURUS:waSnU(aUR%5 SU;a USUlSU;a USUlSU;a USUlSU;a:[US[ 5(aUR#US45US'USUlS U;a US UlS U;a US UlS U;a)US n[U[&[(45(aXˆ4nX€lS U;a US UlS U;a US Ul SU;a USUlSU;a USUl S U;d SU;dS U;ayURupšURn [*R,"UR5[*R."UR5pÜX�-X«U -U --U *U -X­X¼-- -4UlUR35 g)a Return or set the pen's attributes. Arguments: pen -- a dictionary with some or all of the below listed keys. **pendict -- one or more keyword-arguments with the below listed keys as keywords. Return or set the pen's attributes in a 'pen-dictionary' with the following key/value pairs: "shown" : True/False "pendown" : True/False "pencolor" : color-string or color-tuple "fillcolor" : color-string or color-tuple "pensize" : positive number "speed" : number in range 0..10 "resizemode" : "auto" or "user" or "noresize" "stretchfactor": (positive number, positive number) "shearfactor": number "outline" : positive number "tilt" : number This dictionary can be used as argument for a subsequent pen()-call to restore the former pen-state. Moreover one or more of these attributes can be provided as keyword-arguments. This can be used to set several pen attributes in one statement. Examples (for a Turtle instance named turtle): >>> turtle.pen(fillcolor="black", pencolor="red", pensize=10) >>> turtle.pen() {'pensize': 10, 'shown': True, 'resizemode': 'auto', 'outline': 1, 'pencolor': 'red', 'pendown': True, 'fillcolor': 'black', 'stretchfactor': (1,1), 'speed': 3, 'shearfactor': 0.0} >>> penstate=turtle.pen() >>> turtle.color("yellow","") >>> turtle.penup() >>> turtle.pen() {'pensize': 10, 'shown': True, 'resizemode': 'auto', 'outline': 1, 'pencolor': 'yellow', 'pendown': False, 'fillcolor': '', 'stretchfactor': (1,1), 'speed': 3, 'shearfactor': 0.0} >>> p.pen(penstate, fillcolor="green") >>> p.pen() {'pensize': 10, 'shown': True, 'resizemode': 'auto', 'outline': 1, 'pencolor': 'red', 'pendown': True, 'fillcolor': 'green', 'stretchfactor': (1,1), 'speed': 3, 'shearfactor': 0.0} ) rìrYrXrBrZrprbÚ stretchfactorrnr¸rtrWFrYTrXrZrBrprbrôrnr¸rìrtN)r½rÀr¾r¿r¼rÁr¸rÂrÃrÆrÄrÔÚdictr-rHr“rÂrüÚ_newLiner§r¦rãrérèrÅrÜ)rÎrWÚpendictÚ_pdÚpÚ_p_bufr­ÚnewLineÚsfÚscxÚscyÚshfÚsaÚcas r¯rWÚTPen.penH sò€ð^#'§+¡+Ø"&§-¡-Ø"&§.¡.Ø"&§/¡/Ø"&§-¡-Ø"&§+¡+Ø"&×"2Ñ"2Ø"&×"5Ñ"5Ø"&×"3Ñ"3Ø"&×"4Ñ"4Ø"&§*¡*ñ ˆö–w؈Jä �cœ4× Ñ Ø‰AàˆAØ �‰�ÔàˆÛˆCØ™(ˆF‹Kñð �?�?Ø �O‰O× Ñ  %¨ Ô 1àˆØ ˜‹>Ø�}‰}  )¡ Ó,Ø�Ø ˜‹?ܘ!˜J™-¬×/Ñ/Ø $§¡°°*± Ð/?Ó @��*‘ Ø�~‰~  :¡Ó.Ø�Ø ˜‹>Ø�}‰}  )¡ Ó,Ø�Þ Ø �M‰MŒOØ ˜‹>ؘi™LˆDŒMØ ˜‹?ؘz™]ˆDŒNØ ˜‹>ؘi™LˆDŒMØ ˜!Ó Ü˜!˜K™.¬%×0Ñ0Ø!%§¡°°;±Ð0AÓ!B��+‘Ø  ™nˆDŒOØ �a‹<ؘG™*ˆDŒKØ ˜1Ó Ø  ™ˆDÔ Ø ˜aÓ Ø�?Ñ#ˆBܘ"œs¤E˜l×+Ñ+Ø�X�Ø"$Ô Ø ˜AÓ Ø ! -Ñ 0ˆDÔ Ø ˜‹>Ø!" 9¡ˆDÔ Ø �a‹<ؘG™*ˆDŒKØ �Q‹;ؘ6™ˆDŒJØ ˜aÓ  6¨Q£;°-À1Ó2DØ×*Ñ*‰HˆCØ×#Ñ#ˆCÜ—X’X˜dŸj™jÓ)¬4¯8ª8°D·J±JÓ+?�Ø!$¡¨°"©f°r©kÑ):Ø!$  R¡¨°3±6©kÑ):ð <ˆDÔ à � ‰ �rÈcó•gr«rñ©rÎÚusePoss r¯röÚ TPen._newLineÇ r­rÈcó•gr«rñ)rÎr™Úforceds r¯rÜÚ TPen._updateÉ r­rÈcó•gr«rñrgs r¯rÚ TPen._colorË r­rÈcó•gr«rñrgs r¯rüÚTPen._colorstrÍ r­rÈ) rÀr¿rÆr¾r¼r¸rÅrÃr½rÁrÂrÄrHrÁr>©T)TF)#r÷rørùrúrûr¶r;r¹rbrZr[rYrOrpr:rXrBr´rsrorLrPrWrörÜrrür{rzr^rVr>rqrNrürñrÈr¯r¶r¶ýsȆñð#' |Ñ"4ôð # :Ñ.Ø# KÑ0ô ô'ô8 ò.  ò ò ô$òL*MòX'/òR'0ðR"¸5ò"°Dð"ÀTö"ò òò ô{ô~>ô>ò>ò>ð €EØ €BØ €BØ €BØ €DØ €BØ ƒBrÈr¶có$•\rSrSrSrSrSrSrg)Ú _TurtleImageiÙ z6Helper class: Datatype to store Turtle attributes có@•XlSUlURU5 grÁ)r”rEÚ _setshape)rÎr”Ú shapeIndexs r¯r;Ú_TurtleImage.__init__Ý s€ØŒ ؈Œ Ø �‰�zÕ"rÈcóT•URnXlURSs=:XaURUR:Xag URSs=:XaURUR:Xag URS;aUR UR 5 O4URS:Xa$UR HnUR U5 M URURUlURS:XaUR 5UlgURS:Xa.URURSR5UlgURS:Xa=URURVs/sHo2R 5PM snUlggs snf)Nr{r8)r8r{r}r¦) r”rrErÆrØÚ_itemrºr:r€)rÎrr”r×s r¯rÚ_TurtleImage._setshapeâ sR€Ø—‘ˆØ$ŒØ �:‰:˜Õ F f§n¡n°ZÑ&@×&FÑ&FÔ FØ ð Gà �:‰:˜Õ D F§N¡N°:Ñ$>×$DÑ$DÔ DØ ð Eà �:‰:Ð-Ó -Ø �N‰N˜4Ÿ:™:Õ &Ø �Z‰Z˜:Ó %ØŸ œ �Ø—‘˜tÖ$ñ#à—^‘^ JÑ/×5Ñ5ˆŒ Ø �:‰:˜Ó "Ø×+Ñ+Ó-ˆD�JØ �Z‰Z˜7Ó "Ø×,Ñ,¨V¯^©^¸GÑ-D×-JÑ-JÓKˆD�JØ �Z‰Z˜:Ó %à*0¯.©.¸Ñ*D×*JÒ*JóLÚ*Jð48×,Ñ,Ö.Ù*JñLˆD�Jð&ùòLsÆF%)rrEr”rN)r÷rørùrúrûr;rrürñrÈr¯rrÙ s†ñò#õ LrÈrcó¼•\rSrSrSr/rS\S\S\S4SjrSrS r S r S r S r S r SrS=SjrSrSrSrS=SS.S\SS4SjjjrSrS>SjrS?SjrS>SjrS>SjrSrS@SjrSrS rSAS!jrS"rS#r S$r!S%r"S>S&jr#S'r$S(r%S)r&SBS*jr'S+r(S,r)S-r*S>S.jr+S/r,SCS0jr-S1r.S2r/S3r0S4r1S5r2\2r3S>S6jr4SDS7jr5SDS8jr6SDS9jr7S:r8S;r9\r:Sr¥rxrAr;rr¶rØrÎÚdrawingLineItemrr“Ú_polyÚ _creatingPolyÚ _fillitemÚ _fillpathr½Ú_hidden_from_screenÚcurrentLineItemrKÚ currentLinerÚ stampItemsÚ_undobuffersizer‰rHrÜ)rÎÚcanvasrkr‹r�r”s r¯r;ÚRawTurtle.__init__ÿ s‹€ô �fœg× &Ñ &Ø �KÜ ˜¤ × -Ñ -ØœY×.Ñ.Ó.Ü×!Ñ!×(Ñ(¨Ô0Ø �KÜ ˜¤´Ð 8× 9Ñ 9Ü#×+Ô+�Ø—9‘9 Õ&Ø"(”KÙñ,ô +¨6Ó2�” Ü×!Ñ!×(Ñ(¨¯©Õ5ä%Ð&>ÀÑ&GÓHÐ Hà—‘ˆÜ×јD§+¡+£-Ô0Ü � ‰ �dÔØ�‰×јtÔ$Ø%×1Ñ1Ó3ˆÔÜ" 6Ó1ˆŒ ؈Œ Ø"ˆÔØ*.Ð.ˆŒ˜œØŒ Ø#(ˆÔ Ø%×1Ñ1Ó3ˆÔØ ŸN™NÐ+ˆÔØ×*Ñ*Ð+ˆŒ ؈ŒØ-ÔÜ! .Ó1ˆŒØ � ‰ �rÈcó¸•[RU5 [RU5 UR 5 UR 5 UR 5 g)atDelete the turtle's drawings and restore its default values. No argument. Delete the turtle's drawings from the screen, re-center the turtle and set variables to the default values. Example (for a Turtle instance named turtle): >>> turtle.position() (0.00,-22.00) >>> turtle.heading() 100.0 >>> turtle.reset() >>> turtle.position() (0.00,0.00) >>> turtle.heading() 0.0 N)rArar¶r¹Ú_clearrrÜrßs r¯raÚRawTurtle.reset' s<€ô& ×јÔÜ � ‰ �DÔØ � ‰ Œ Ø ×ÑÔØ � ‰ �rÈcóF•UbUS::aSUlg[U5Ulg)aZSet or disable undobuffer. Argument: size -- an integer or None If size is an integer an empty undobuffer of given size is installed. Size gives the maximum number of turtle-actions that can be undone by the undo() function. If size is None, no undobuffer is present. Example (for a Turtle instance named turtle): >>> turtle.setundobuffer(42) Nr)rHr‰)rÎÚsizes r¯rhÚRawTurtle.setundobuffer@ s!€ð ‰<˜4 1›9Ø"ˆD�Oä% d›mˆD�OrÈcóR•URcgURR5$)z–Return count of entries in the undobuffer. No argument. Example (for a Turtle instance named turtle): >>> while undobufferentries(): ... undo() r)rHršrßs r¯ryÚRawTurtle.undobufferentriesS s$€ð �?‰?Ñ "ØØ�‰×*Ñ*Ó,Ð,rÈcó®•S=UlUlURHnURR U5 M URR 5Ul/UlUR(a%URRUR5 UR /UlUR5 URUR5 g)zDelete all of pen's drawingsN)rr rr”rØrÎr"r#rÀrÀrKr8rhr%rÖs r¯r)ÚRawTurtle._clear` sœ€à*.Ð.ˆŒ˜œØ—J”JˆDØ �K‰K× Ñ  Ö %ñà#Ÿ{™{×6Ñ6Ó8ˆÔØˆÔØ �=�=Ø × Ñ × #Ñ # D§N¡NÔ 3Ø×*Ñ*Ð+ˆŒ Ø ×ÑÔØ ×ј4×/Ñ/Õ0rÈcóD•UR5 UR5 g)a/Delete the turtle's drawings from the screen. Do not move turtle. No arguments. Delete the turtle's drawings from the screen. Do not move turtle. State and position of the turtle as well as drawings of other turtles are not affected. Examples (for a Turtle instance named turtle): >>> turtle.clear() N)r)rÜrßs r¯r6ÚRawTurtle.clearn s€ð � ‰ Œ Ø � ‰ �rÈcó.•URR5 URRS:wag[UR5S:”aGURR UR URURUR5 ggrÊ) r”rr×rIr#rÒr"r¾r¼rßs r¯rÚRawTurtle._update_data} so€Ø � ‰ ×!Ñ!Ô#Ø �;‰;× %Ñ %¨Ó *Ø Ü ˆt×ÑÓ  Ó "Ø �K‰K× !Ñ ! $×"6Ñ"6¸×8HÑ8HØ"&§.¡.°$·-±-õ Að #rÈcó¦•URnURS:XagURS:XaLUR5 UR5 UR 5 UR UR 5 gUR5 URS:Xa8UR5HnUR5 M UR 5 gg)z&Perform a Turtle-data update. rNrË) r”rÖrrrÜrárÉr×r,)rÎr”r3s r¯rÜÚRawTurtle._update… sŸ€ð—‘ˆØ �?‰?˜aÓ Ø Ø �_‰_ Ó !Ø × Ñ Ô Ø × Ñ Ô Ø �N‰NÔ Ø �M‰M˜&×,Ñ,Õ -à × Ñ Ô Ø×$Ñ$¨Ó)ØŸ™Ö)�AØ—M‘M–Oñ*à—‘Õ ð*rÈcó8•URRX5$)aýTurns turtle animation on/off and set delay for update drawings. Optional arguments: n -- nonnegative integer delay -- nonnegative integer If n is given, only each n-th regular screen update is really performed. (Can be used to accelerate the drawing of complex graphics.) Second arguments sets delay value (see RawTurtle.delay()) Example (for a Turtle instance named turtle): >>> turtle.tracer(8, 25) >>> dist = 2 >>> for i in range(200): ... turtle.fd(dist) ... turtle.rt(90) ... dist += 2 )r”r+)rÎÚflagrs r¯r ÚRawTurtle._tracer— s€ð&�{‰{×!Ñ! $Ó.Ð.rÈcó8•URRU5$rÁ)r”rrgs r¯rÚRawTurtle._color¬ s€Ø�{‰{×!Ñ! $Ó'Ð'rÈcó8•URRU5$rÁ)r”rürgs r¯rüÚRawTurtle._colorstr¯ s€Ø�{‰{×$Ñ$ TÓ*Ð*rÈcó²•[U[5(aU$Uup#nUR R S:Xa$X#U4Vs/sHn[SU-5PM snup#nSUs=::aS::a"O OSUs=::aS::aO OSUs=::aS::dO [ S[U5-5eSX#U4-$![[4a [ S[U5-5ef=fs snf)z,Convert colortriples to hexstrings. rór‰rôrrõrör÷)rÔrrør£rxr”rÊrù)rÎrhr˜rúrûrÅs r¯Ú_ccÚ RawTurtle._cc² sÑ€ô �dœC× Ñ ØˆKð M؉GˆA�!ð �;‰;× !Ñ ! SÓ (Ø01°a©yÓ9ªy¨!”u˜U 1™W–~©yÑ9‰GˆA�!Ø�a•˜3– Q¨!¥]¨s¦]¸¸a½À3½Ü%Ð&>ÄÀTÃÑ&JÓKÐ KØ !¨ Ñ*Ð*øô œ:Ð&ó MÜ%Ð&?Ä#ÀdÃ)Ñ&KÓLÐ Lð Müò:s™B)¾CÂ)(CFrkrlrmcóz•UR5nUR5nU(aURSS9 U(aU(dUR5 UbUOURSnUbUOURSn[ Xg5UlURUS9 U(aU(dUR 5 ggg)arInstantly move turtle to an absolute position. Arguments: x -- a number or None y -- a number None fill_gap -- a boolean This argument must be specified by name. call: teleport(x, y) # two coordinates --or: teleport(x) # teleport to x position, keeping y as is --or: teleport(y=y) # teleport to y position, keeping x as is --or: teleport(x, y, fill_gap=True) # teleport but fill the gap in between Move turtle to an absolute position. Unlike goto(x, y), a line will not be drawn. The turtle's orientation does not change. If currently filling, the polygon(s) teleported from will be filled after leaving, and filling will begin again after teleporting. This can be disabled with fill_gap=True, which makes the imaginary line traveled during teleporting act as a fill barrier like in goto(x, y). Example (for a Turtle instance named turtle): >>> tp = turtle.pos() >>> tp (0.00,0.00) >>> turtle.teleport(60) >>> turtle.pos() (60.00,0.00) >>> turtle.teleport(y=10) >>> turtle.pos() (60.00,10.00) >>> turtle.teleport(20, 30) >>> turtle.pos() (20.00,30.00) FrÑNrrË)rOrCrWr?rKrr2)rÎrÅrÆrlrYÚ was_fillingrorps r¯rsÚRawTurtle.teleportÁ s’€ðF—+‘+“-ˆØ—l‘l“nˆ Þ Ø �H‰H˜UˆHÑ #Þ žxØ �M‰MŒOØ‘]‘¨¯©°qÑ(9ˆØ‘]‘¨¯©°qÑ(9ˆÜ˜uÓ,ˆŒØ �‰˜ˆÑ!Þ žxØ �O‰OÕ ð (ˆ;rÈcóv•URnURUR5 URnSUlSUl[ U5nXlX lXl[ XRR 5UlURRU5 URURR RnUS:Xa UR5URl OžUS:Xa8URURSR5URl O`US:XaZURURR RVs/sHoQR5PM snURl UR5UlUR#5 U$s snf)zãCreate and return a clone of the turtle. No argument. Create and return a clone of the turtle with same position, heading and turtle properties. Example (for a Turtle instance named mick): mick = Turtle() joe = mick.clone() Nr{r8r¦r})r”rörÀr“rrrrØrÀrÆrErºrr:r€rÎr"rÜ)rÎr”r“ÚqÚttyper×s r¯r9ÚRawTurtle.cloneñ sM€ð—‘ˆØ � ‰ �d—m‘mÔ$à—‘ˆØˆŒ ؈Œ ä �T‹NˆàŒ ØŒ àŒÜ ¯ © ×(>Ñ(>Ó?ˆŒà�‰×јqÔ!Ø—‘˜tŸ{™{×5Ñ5Ñ6×<Ñ<ˆØ �IÓ Ø#×/Ñ/Ó1ˆA�H‰H�NØ �gÓ Ø#×0Ñ0°·±ÀÑ1H×1NÑ1NÓOˆA�H‰H�NØ �jÓ à$Ÿn™n¨T¯[©[×-CÑ-CÑD×JÒJóLÚJð8<×0Ñ0Ö2ÙJñLˆA�H‰HŒNà"×.Ñ.Ó0ˆÔØ � ‰ Œ ؈ùò LsÅ$F6cóâ•UcURR$XRR5;a[ SU-5eURR U5 UR 5 g)agSet turtle shape to shape with given name / return current shapename. Optional argument: name -- a string, which is a valid shapename Set turtle shape to shape with given name or, if name is not given, return name of current shape. Shape with name must exist in the TurtleScreen's shape dictionary. Initially there are the following polygon shapes: 'arrow', 'turtle', 'circle', 'square', 'triangle', 'classic'. To learn about how to deal with shapes see Screen-method register_shape. Example (for a Turtle instance named turtle): >>> turtle.shape() 'arrow' >>> turtle.shape("turtle") >>> turtle.shape() 'turtle' NzThere is no shape named %s)r“rr”rrxrrÜ)rÎrðs r¯rkÚRawTurtle.shape sX€ð( ‰<Ø—;‘;×)Ñ)Ð )Ø—{‘{×,Ñ,Ó.Ó.Ü%Ð&BÀTÑ&IÓJÐ JØ � ‰ ×јdÔ#Ø � ‰ �rÈcó(•Xs=La Us=LacO OURupXUR4$US:XdUS:Xa [S5eUb UcX4nO%X4nO!UbURSU4nO URnUc URnURSXCS9 g)aÏSet/return turtle's stretchfactors/outline. Set resizemode to "user". Optional arguments: stretch_wid : positive number stretch_len : positive number outline : positive number Return or set the pen's attributes x/y-stretchfactors and/or outline. Set resizemode to "user". If and only if resizemode is set to "user", the turtle will be displayed stretched according to its stretchfactors: stretch_wid is stretchfactor perpendicular to orientation stretch_len is stretchfactor in direction of turtles orientation. outline determines the width of the shapes's outline. Examples (for a Turtle instance named turtle): >>> turtle.resizemode("user") >>> turtle.shapesize(5, 5, 12) >>> turtle.shapesize(outline=8) Nrz(stretch_wid/stretch_len must not be zerorÊ)rbrôr¸)rÂrÆrxrW)rÎÚ stretch_widÚ stretch_lenr¸rôs r¯rlÚRawTurtle.shapesize4 s´€ð* Ô 8¨× 8Ñ 8Ø'+×':Ñ':Ñ $ˆKبT×-?Ñ-?Ð?Ð ?Ø ˜!Ó ˜{¨aÓ/Ü%Ð&PÓQÐ QØ Ñ "ØÑ"Ø +Ð 8‘ à +Ð 8‘ Ø Ñ $Ø ×/Ñ/°Ñ2°KÐ?‰Mà ×/Ñ/ˆMØ ‰?Ø×(Ñ(ˆGØ �‰˜FØ,ð ò ?rÈcóB•Uc UR$URSUS9 g)aNSet or return the current shearfactor. Optional argument: shear -- number, tangent of the shear angle Shear the turtleshape according to the given shearfactor shear, which is the tangent of the shear angle. DO NOT change the turtle's heading (direction of movement). If shear is not given: return the current shearfactor, i. e. the tangent of the shear angle, by which lines parallel to the heading of the turtle are sheared. Examples (for a Turtle instance named turtle): >>> turtle.shape("circle") >>> turtle.shapesize(5,2) >>> turtle.shearfactor(0.5) >>> turtle.shearfactor() >>> 0.5 NrÊ)rbrn)rÃrW)rÎÚshears r¯rnÚRawTurtle.shearfactor\ s%€ð& ‰=Ø×$Ñ$Ð $Ø �‰˜F°ˆÒ6rÈcóD•UcI[R"UR5*UR-nX R- UR -$U*UR-UR-n[R "U5[R-nURSUS9 g)aÕSet or return the current tilt-angle. Optional argument: angle -- number Rotate the turtleshape to point in the direction specified by angle, regardless of its current tilt-angle. DO NOT change the turtle's heading (direction of movement). If angle is not given: return the current tilt-angle, i. e. the angle between the orientation of the turtleshape and the heading of the turtle (its direction of movement). Examples (for a Turtle instance named turtle): >>> turtle.shape("circle") >>> turtle.shapesize(5, 2) >>> turtle.tiltangle() 0.0 >>> turtle.tiltangle(45) >>> turtle.tiltangle() 45.0 >>> turtle.stamp() >>> turtle.fd(50) >>> turtle.tiltangle(-45) >>> turtle.tiltangle() 315.0 >>> turtle.stamp() >>> turtle.fd(50) NrÊ)rbrt) rãr;rÄrGrTrQr_r\rW)rÎrêrts r¯ruÚRawTurtle.tiltangles s‡€ð8 ‰=Ü—L’L §¡Ó,Ð,¨t×/@Ñ/@Ñ@ˆDØ×-Ñ-Ñ-°×1AÑ1AÑAÐ Aà�6˜D×.Ñ.Ñ.°×1BÑ1BÑBˆDÜ—<’< Ó%¬¯©Ñ0ˆDØ �H‰H ¨TˆHÒ 2rÈcóF•URXR5-5 g)alRotate the turtleshape by angle. Argument: angle - a number Rotate the turtleshape by angle from its current tilt-angle, but do NOT change the turtle's heading (direction of movement). Examples (for a Turtle instance named turtle): >>> turtle.shape("circle") >>> turtle.shapesize(5,2) >>> turtle.tilt(30) >>> turtle.fd(50) >>> turtle.tilt(30) >>> turtle.fd(50) N)rurds r¯rtÚRawTurtle.tilt— s€ð" �‰�uŸ~™~Ó/Ñ/Õ0rÈcó•Xs=LaUs=LaUs=LacUR$ URupVpxUbUnUbUnUbUnUbUnX-X#-- S:Xa [S5eXVXx4Ul[R"U*U5[R-n [R "U 5[R "U 5pºXµ-X§-- X¶-X¨-- X¥-X·--X¦-X¸--4upÍpïXÏ4UlXß- UlX�l URSS9 g)aZSet or return the current transformation matrix of the turtle shape. Optional arguments: t11, t12, t21, t22 -- numbers. If none of the matrix elements are given, return the transformation matrix. Otherwise set the given elements and transform the turtleshape according to the matrix consisting of first row t11, t12 and second row t21, 22. Modify stretchfactor, shearfactor and tiltangle according to the given matrix. Examples (for a Turtle instance named turtle): >>> turtle.shape("square") >>> turtle.shapesize(4,2) >>> turtle.shearfactor(-0.5) >>> turtle.shapetransform() (4.0, -1.0, -0.0, 2.0) Nrz0Bad shape transform matrix: must not be singularrÊrË) rÅrxrãr’r\rérèrÂrÃrÄrW)rÎÚt11Út12Út21Út22Úm11Úm12Úm21Úm22ÚalfarrÚa11Úa12Úa21Úa22s r¯rmÚRawTurtle.shapetransformª s€ð( Ô +˜Ô + × +Ø×#Ñ#Ð #ð ,à!×-Ñ-ш�#Ø ‰? #˜CØ ‰? #˜CØ ‰? #˜CØ ‰? #˜CØ ‰9�s‘yÑ  AÓ %Ü%Ð&XÓYÐ YØ cÐ/ˆÔÜ�zŠz˜3˜$ Ó$¤t§x¡xÑ/ˆÜ—’˜$“¤§¢¨$£ˆBØ ™f r¡v™o¨r©v¸¹©Ø ™f r¡v™o¨r©v¸¹©ð@ш�#à!˜hˆÔØ™GˆÔØŒ Ø �‰˜FˆÒ#rÈc ó^•URnURup4URupV[XVUR-UR - 5nS[ U5- U-upVUVV s/sH8up‰X6U-XY--UR - -XE*U-Xi--UR- -4PM: sn n$s sn nf)z\Computes transformed polygon shapes from a shape according to current position and heading. r‰)r”rKrMrr±r°rŽ) rÎr…r”Úp0Úp1Úe0Úe1ÚerÅrÆs r¯Ú _polytrafoÚRawTurtle._polytrafoÒ s±€ð—‘ˆØ—‘‰ˆØ—‘‰ˆÜ �"˜6Ÿ=™=Ñ(¨6¯=©=Ñ8Ó 9ˆØœ˜A›‘, !Ñ#‰ˆáIMôOÚIM¹vÀð˜‘T˜"™$‘Y § ¡ Ñ-Ñ-¨r°3°q±5¸¹±:¸v¿}¹}Ñ2LÑ/LÓMÙIMòOð OùóOsÁ&?B)cóЕURRURRnURS:Xa)UR UR URS:H5$g)aReturn the current shape polygon as tuple of coordinate pairs. No argument. Examples (for a Turtle instance named turtle): >>> turtle.shape("square") >>> turtle.shapetransform(4, -1, 0, 2) >>> turtle.get_shapepoly() ((50, -20), (30, 20), (-50, 20), (-30, -20)) r{r}N)r”rÆr“rrEÚ _getshapepolyr€)rÎrks r¯rHÚRawTurtle.get_shapepolyÞ sS€ð— ‘ ×#Ñ# D§K¡K×$:Ñ$:Ñ;ˆØ �;‰;˜)Ó #Ø×%Ñ% e§k¡k°5·;±;À*Ñ3LÓMÐ Mð $rÈcó^^^^•URS:XdU(aURummmmOGURS:Xa%[SURS- 5nUSSU4ummmmOURS:XaU$[ UUUU4SjU55$)zPCalculate transformed shape polygon according to resizemode and shapetransform. rÊrÉrËg@rrŽc3óT># •UHupTU-TU--TU-TU--4v• M g7frÁrñ)rrÅrÆrWrXrYrZs €€€€r¯rÚ*RawTurtle._getshapepoly..ú s0øé€ÐJÂ'¹¸�c˜!‘e˜c !™e‘m S¨¡U¨S°©U¡]Õ3Â'ùsƒ%()r¸rÅÚmaxr¼rÂ)rÎr{r}r¦rWrXrYrZs @@@@r¯rnÚRawTurtle._getshapepolyï s†û€ð × Ñ ˜vÓ %®Ø!%×!1Ñ!1Ñ ˆC��c™3Ø × Ñ  Ó 'Ü�A�t—}‘} SÑ(Ó)ˆAØ!" A q¨! Ñ ˆC��c™3Ø × Ñ  Ó +؈NÜ×JÁ'ÓJÓJÐJrÈc ó¬•URnURURRnURnURR nUR (Ga`URS:XGaOURS:”Ga>SUl URnUS:Xa†URS:XaSnO)URS:Xa URnO URnURURU55nUR UR"p‡UR%XBXxUSS9 g US :XaUR'X@R(U5 g US :Xau[+XE5Heun up§nURURU S55n UR%XšUR-U5UR-U5URSS9 Mg g g UR(ag US:XaUR%US S S 5 O]US :Xa4UR'X@R(URSR5 O#US :XaUHn UR%U S S S 5 M SUl g )zhManages the correct rendering of the turtle with respect to its shape, resizemode, stretch and tilt etc.rFr{rŽrËrÉT©r…r¸r{rÆr8r}N©r¿r¿r¿r³r¦)r”rÆr“rrErr½r×rÖr!r€r¸r¼rÆrkrnr¿r¾rÈr>rKÚzipr@) rÎr”rkrGÚtitemÚtshaper³ÚfcÚocr×r…s r¯rÚRawTurtle._drawturtleü s €ð—‘ˆØ—‘˜tŸ{™{×5Ñ5Ñ6ˆØ— ‘ ˆØ— ‘ ×!Ñ!ˆØ �;�;ˆ;˜6×0Ñ0°AÔ5¸&¿/¹/ÈAÔ:MØ',ˆDÔ $Ø—[‘[ˆFؘ Ó!Ø×#Ñ# zÓ1°q±1Ø×%Ñ%¨Ó/°T·]±]±Ø×+Ñ+�aØŸ™¨×(:Ñ(:¸6Ó(BÓC�ØŸ™¨$¯.©.�BØ× Ñ  °BØ<=À4ð!òIà˜'Ó!Ø×!Ñ! %¯©¸Õ@ؘ*Ó$Ü,/°Ö,>Ñ(�D™.˜4 RØŸ?™?¨4×+=Ñ+=¸dÀDÓ+IÓJ�DØ×$Ñ$ T°d·h±h¸r³lØ-1¯X©X°b«\À×ASÑASÐY]ð%ó_ò-?ð%ð ×'×'ØØ˜ Ó!Ø× Ñ  Ð(@À"ÀbÕIؘ'Ó!Ø×!Ñ! %¯©Ø*0¯.©.¸Ñ*A×*GÑ*GõIà˜*Ó$Û!�DØ×$Ñ$ TÐ+CÀRÈÖLñ"à'+ˆDÕ $rÈc ó•URnURURRnURnUR nUS:Xa–UR 5nURS:XaSnO)URS:Xa URnO URnURURU55nURURp‡URXRXxUSS9 OåUS:Xa.URS5nUR!XPR"U5 O±US :Xa«/nUH$n UR 5n UR%U 5 M& ['U5n[)XT5Heun up·nURURU S55n URX«UR+U5UR+U5URSS9 Mg UR,R%W5 UR.R1S U45 U$) auStamp a copy of the turtleshape onto the canvas and return its id. No argument. Stamp a copy of the turtle shape onto the canvas at the current turtle position. Return a stamp_id for that stamp, which can be used to delete it by calling clearstamp(stamp_id). Example (for a Turtle instance named turtle): >>> turtle.color("blue") >>> turtle.stamp() 13 >>> turtle.fd(50) r{rŽrËrÉTrvr8r³r}rr)r”rÆr“rrEr€rºr¸r¼rÆrkrnr¿r¾rÈr:r>rKrÀrÂrxr@r$rHr“) rÎr”rkrGrzÚstitemr³r{r|Úelementr×r…s r¯rrÚRawTurtle.stamp$ sƀ𗑈ؗ‘˜tŸ{™{×5Ñ5Ñ6ˆØ— ‘ ˆØ—‘ˆØ �IÓ Ø×'Ñ'Ó)ˆFØ×Ñ :Ó-°1©qØ×!Ñ! VÓ+°·±©QØ×'Ñ'�!Ø—O‘O D×$6Ñ$6°vÓ$>Ó?ˆEØ—_‘_ d§n¡n�Ø × Ñ ˜V°Ø89¸tð ò Eà �gÓ Ø×(Ñ(¨Ó,ˆFØ × Ñ ˜f§n¡n°fÕ =Ø �jÓ ØˆFÛ!�Ø×)Ñ)Ó+�Ø— ‘ ˜dÖ#ñ"ô˜6“]ˆFÜ(+¨FÖ(;Ñ$�‘n�t Ø—‘ t×'9Ñ'9¸$ÀÓ'EÓF�Ø× Ñ  °$·(±(¸2³,Ø)-¯©°"«¸T×=OÑ=OÐUYð!ó[ñ)<ð �‰×јvÔ&Ø �‰×јg vÐ.Ô/؈ rÈcó|•XR;ap[U[5(a%UHnURR U5 M OURR U5 URR U5 SU4nUR nX4R;agURRU5nURR U5 XTR::a!URS- UR-Ul URRURS-UR-S/5 g)z9does the work for clearstamp() and clearstamps() rrNrË) r$rÔrÂr”rØr.rHrŒÚindexr�r‹Úinsert)rÎÚstampidÚsubitemr×Úbufrƒs r¯Ú _clearstampÚRawTurtle._clearstampQ sî€ð —o‘oÓ %ܘ'¤5×)Ñ)Û&�GØ—K‘K×'Ñ'¨Ö0ò 'ð— ‘ ×#Ñ# GÔ,Ø �O‰O× "Ñ " 7Ô +ð˜Ð!ˆØ�o‰oˆØ —z‘zÓ !Ø Ø— ‘ × Ñ  Ó&ˆØ � ‰ ×ј$ÔØ —G‘GÓ Ø—w‘w ‘{ c§k¡kÑ1ˆCŒGØ � ‰ ×ј3Ÿ7™7 1™9 c§k¡kÑ1°D°6Õ:rÈcóF•URU5 UR5 g)aDelete stamp with given stampid Argument: stampid - an integer, must be return value of previous stamp() call. Example (for a Turtle instance named turtle): >>> turtle.color("blue") >>> astamp = turtle.stamp() >>> turtle.fd(50) >>> turtle.clearstamp(astamp) N)rˆrÜ)rÎr…s r¯r7ÚRawTurtle.clearstampg s€ð ×јÔ!Ø � ‰ �rÈcóÈ•UcURSSnO%US:¼aURSUnOURUSnUHnURU5 M UR5 g)a„Delete all or first/last n of turtle's stamps. Optional argument: n -- an integer If n is None, delete all of pen's stamps, else if n > 0 delete first n stamps else if n < 0 delete last n stamps. Example (for a Turtle instance named turtle): >>> for i in range(8): ... turtle.stamp(); turtle.fd(30) ... >>> turtle.clearstamps(2) >>> turtle.clearstamps(-2) >>> turtle.clearstamps() Nr)r$rˆrÜ)rÎrÚtoDeleter×s r¯r8ÚRawTurtle.clearstampsv s_€ð$ ‰9Ø—‘¡qÐ)‰HØ �!‹VØ—‘ r¨Ð*‰Hà—‘ q rÐ*ˆHÛˆDØ × Ñ ˜TÖ "ñà � ‰ �rÈc óÞ•URURUR[UR[ 54nUR nSURXURURSSURUR5URSS44nUR(aURRU5 URnUR(Ga9URS:XGa(X- nUSUR -S-USUR"-S--nS[%US-SSUR--UR-- 5-nUS U- -n ['SU5Hyn U S:XaS n OS n XYU --UlUR(a>UR)UR*XPR4URURU 5 UR-5 M{ UR(a&UR)UR*S S URS9 UR(aURR/U5 [UR[ 5(aURR/U5 XlUR0(aUR2R/U5 [5UR5S:”aUR75 UR-5 g)z€Move the pen to the point end, thereby drawing a line if pen is down. All other methods for turtle movement depend on this one. ÚgoNrËrr%r‚rÓçš™™™™™ñ?r‰TF©r¿r¿r³©r…r{é*)rÀr¾r¼rÔr rÿr”rKr"r#rLrrHr“rÁrÖr°r±r§rHrÒrrÜrÀrrrIrö) rÎriÚgo_modesr”Ú undo_entryÚstartÚdiffÚdiffsqÚnhopsÚdeltarrÆs r¯r_ÚRawTurtle._goto’ sW€ð —]‘]Ø—^‘^Ø—]‘]Ü §¡´Ó5ð7ˆð—‘ˆØ˜DŸN™N¨CØ×+Ñ+Ø×&Ñ&¡qÐ)Ø×'Ñ'¨×(<Ñ(<Ó=Ø—j‘j¡�mð%ðˆ ð �?�?Ø �O‰O× Ñ  Ô ,Ø—‘ˆØ �;�;ˆ;˜6Ÿ?™?¨aÔ/Ø‘IˆDؘ1‘g˜fŸm™mÑ+¨aÑ/°4¸±7¸6¿=¹=Ñ3HÈ1Ñ2LÑLˆFØ”c˜6 3™;¨¨C°·±Ñ,<Ñ)=¸d¿k¹kÑ)IÑJÓKÑKˆEؘC ™IÑ&ˆEܘ1˜e–_�ؘ“6Ø‘Cà�CØ!&°©Ñ!2�”Ø—=—=Ø×$Ñ$ T×%9Ñ%9Ø&+¯^©^Ð%<Ø%)§^¡^°T·]±]ÀCôIð— ‘ –ñ%ð�}�}Ø× Ñ  ×!5Ñ!5Ð7GØ46¸d¿m¹mð!ñMð �=�=Ø × Ñ × #Ñ # CÔ (Ü �d—n‘n¤d× +Ñ +Ø �N‰N× !Ñ ! #Ô &àŒØ × × Ø �J‰J× Ñ ˜cÔ "Ü ˆt×ÑÓ  2Ó %à �M‰MŒOØ � ‰ �rÈcóŒ•Uup#pEUupgp‰Uup«pÍURn[URU- 5S:”a [S5 X lX°lU SS/:XaSnOUnUR X¬XøS9 URVs/sH$nUU ;dM URU5S:XdM"UPM& nnUH/nURU5 URRU5 M1 UnUR(GaURS:Xa÷X#- nUSUR-S -USUR-S --nS[US-S S UR--UR-- 5-nUS U- -n[!SU5H\nUS:XaS nOSnUUU--UlU(a*UR UR"UUR4XxU5 UR%5 M^ U(aUR UR"SSUS9 X lUR&(aQ[)UR*5S:”aUR*R-5 UR*/:XaSUlSUlU (aJUR./:XaSUl[S5 O'UR.bUR.R-5 UR%5 gs snf)z)Reverse a _goto. Used for undo() r‚z$undogoto: HALLO-DA-STIMMT-WAS-NICHT!r¿r³r“r¬rËrr%rÓr‘r‰TFr’NzUnwahrscheinlich in _undogoto!)r”rŽrKr¤r"r#rÒrrErØr.rÁrÖr°r±r§rHrrÜrrIrr–r )rÎÚentryÚoldÚnewr•ÚcoodataÚdrawingÚpcÚpsrCÚcLIÚcLrKrr”ÚusepcrJÚtodeleter—r˜r™ršr›rrÆs r¯Ú _undogotoÚRawTurtle._undogotoÇ s�€ð',Ñ#ˆ�(Ø#+Ñ ˆ�RØ$ш�Ø—‘ˆÜ ˆt�~‰~ Ñ#Ó $ sÓ *Ü Ð9Ô :à"ÔØÔà �&˜&Ð!Ó !؉EàˆEØ×ј uÐÑ7à#ŸzšzóDšz˜!¨a°u©n“AØ(.¯ © °Q«¸6Ñ(A÷™zˆðDãˆAØ �N‰N˜1Ô Ø �J‰J× Ñ ˜aÖ ñðˆØ �;�;ˆ;˜6Ÿ?™?¨aÓ/Ø‘9ˆDؘ1‘g˜fŸm™mÑ+¨aÑ/°4¸±7¸6¿=¹=Ñ3HÈ1Ñ2LÑLˆFØ”c˜6 3™;¨¨C°·±Ñ,<Ñ)=¸d¿k¹kÑ)IÑJÓKÑKˆEؘC ™IÑ&ˆEܘ1˜e–_�ؘ“6Ø‘Cà�CØ!$ u¨q¡y¡�”ÞØ×$Ñ$ T×%9Ñ%9Ø&+¨T¯^©^Ð%<Ø%'¨Sô2ð— ‘ –ñ%öØ× Ñ  ×!5Ñ!5Ð7GØ46¸bð!ñBðŒð × × Ü�4—:‘:‹ Ó"Ø— ‘ —‘Ô Ø�z‰z˜RÓØ%*�Ô"Ø!�” Þ Ø�~‰~ Ó#Ø!%�”ÜÐ6Õ7Ø—‘Ñ+Ø—‘×"Ñ"Ô$Ø � ‰ �ùòYDsÁ: KÂKÂKcó0•UR(a'URRSXR45 XR-nURR U5nUR R nUS:XaƒURS:”asSUR-nS[[U5U- 5-nSU-U- n[U5H3nURR U5UlUR5 M5 X lUR5 g)z&Turns pen clockwise by angle. ÚrotrËrg@r‰N) rHr“rTrMrîr”rÖrÁr§rŽrHrÜ)rÎrêÚ neworientrÚanglevelr£r›rs r¯reÚRawTurtle._rotate sÚ€ð �?�?Ø �O‰O× Ñ  %¨×0BÑ0BÐ!CÔ DØ ×#Ñ#Ñ#ˆØ—L‘L×'Ñ'¨Ó.ˆ Ø—+‘+×&Ñ&ˆØ �a‹<˜DŸK™K¨!›OؘTŸ[™[Ñ(ˆHØœœC ›J xÑ/Ó0Ñ0ˆEؘ‘I˜e‘OˆEܘ5–\�Ø#Ÿ|™|×2Ñ2°5Ó9�” Ø— ‘ –ñ"ð!Œ Ø � ‰ �rÈcóÖ•[UR5S:”a‹URRURURUR UR 5 URR5UlURRUR5 O$URRURSS9 /UlU(aUR/Ulgg)z˜Closes current line item and starts a new one. Remark: if current line became too long, animation performance (via _drawline) slowed down considerably. rËT)rÆN) rIr#r”rÒr"r¾r¼rÎrrÀrKrs r¯röÚRawTurtle._newLine s°€ô ˆt×ÑÓ  1Ó $Ø �K‰K× !Ñ ! $×"6Ñ"6¸×8HÑ8HØ&*§n¡n°d·m±mô Eà#'§;¡;×#:Ñ#:Ó#<ˆDÔ Ø �J‰J× Ñ ˜d×2Ñ2Õ 3à �K‰K× !Ñ ! $×"6Ñ"6¸DÐ !Ñ A؈ÔÞ Ø $§¡Ð/ˆDÕ ð rÈcó6•[UR[5$)zÜReturn fillstate (True if filling, False else). No argument. Example (for a Turtle instance named turtle): >>> turtle.begin_fill() >>> if turtle.filling(): ... turtle.pensize(5) ... else: ... turtle.pensize(3) )rÔr rÿrßs r¯rCÚRawTurtle.filling* s€ô˜$Ÿ.™.¬$Ó/Ð/rÈcóŠ•UR5(dDURR5UlURR UR5 UR /UlUR5 UR(a'URRSUR45 UR5 g)zÓCalled just before drawing a shape to be filled. No argument. Example (for a Turtle instance named turtle): >>> turtle.color("black", "red") >>> turtle.begin_fill() >>> turtle.circle(60) >>> turtle.end_fill() Ú beginfillN) rCr”rºrrrÀrKr rörHr“rÜrßs r¯r2ÚRawTurtle.begin_fill8 s{€ð�|‰|�~‰~Ø!Ÿ[™[×4Ñ4Ó6ˆDŒNØ �J‰J× Ñ ˜dŸn™nÔ -ØŸ.™.Ð)ˆŒØ � ‰ ŒØ �?�?Ø �O‰O× Ñ  +¨t¯~©~Ð!>Ô ?Ø � ‰ �rÈcó€•UR5(a©[UR5S:”aqURR UR URUR S9 UR(a'URRSUR 45 S=UlUlUR5 gg)zÔFill the shape drawn after the call begin_fill(). No argument. Example (for a Turtle instance named turtle): >>> turtle.color("black", "red") >>> turtle.begin_fill() >>> turtle.circle(60) >>> turtle.end_fill() r%r½ÚdofillN) rCrIr r”rÈrr¿rHr“rÜrßs r¯r?ÚRawTurtle.end_fillM sˆ€ð �<‰<�>‰>Ü�4—>‘>Ó" QÓ&Ø— ‘ ×%Ñ% d§n¡n°d·n±nØ+/¯?©?ð&ñ<à—?—?Ø—O‘O×(Ñ(¨(°D·N±NÐ)CÔDØ.2Ð 2ˆDŒN˜Tœ^Ø �L‰L�Nð rÈcóŽ•U(d‡[U[[45(a5URU5nUR[ URS5-nOnUR nU(d#UR[ URS5-nO7Uc#UR[ URS5-nURU5nUR5nUR(a-URRS/5 SURl UR5S:XaUR5 UR5 URU5 URU5 UR!S5 URU5 UR(aSURl gg!URU5 f=f)a‰Draw a dot with diameter size, using color. Optional arguments: size -- an integer >= 1 (if given) color -- a colorstring or a numeric color tuple Draw a circular dot with diameter size, using color. If size is not given, the maximum of pensize+4 and 2*pensize is used. Example (for a Turtle instance named turtle): >>> turtle.dot() >>> turtle.fd(50); turtle.dot(20, "blue"); turtle.fd(50) r´Nr�TrÉrF)rÔrrÂrür¼rsr¾rWrHr“rŽrbrNrYrZrXrD)rÎr,r:rWs r¯r=Ú RawTurtle.dota s>€öܘ$¤¤e  ×-Ñ-ØŸ™ tÓ,�Ø—}‘}¤s¨4¯=©=¸!Ó'<Ñ<‘àŸ™�ÞØŸ=™=¬3¨t¯}©}¸aÓ+@Ñ@�Døà‰|Ø—}‘}¤s¨4¯=©=¸!Ó'<Ñ<�Ø—N‘N 5Ó)ˆEà�h‰h‹jˆØ �?�?Ø �O‰O× Ñ  % Ô )Ø'+ˆD�O‰OÔ $ð Ø�‰Ó  FÓ*Ø—‘” Ø �L‰LŒNØ �L‰L˜Ô Ø �M‰M˜%Ô Ø �L‰L˜ŒOà �H‰H�SŒMØ �?�?Ø',ˆD�O‰OÕ $ð øð �H‰H�S�Mús ÄA'F1Æ1Gcó •URRURXUUR5upEUR 5 UR R U5 UR(aURRSU45 U$)z)Performs the writing for write() Úwri) r”rûrKr¾rÜrrÀrHr“)rÎrõrörór×ris r¯rûÚRawTurtle._writeŒ si€ð—K‘K×&Ñ& t§~¡~°sÀ4Ø:>¿.¹.óJ‰ ˆà � ‰ ŒØ � ‰ ×ј$ÔØ �?�?Ø �O‰O× Ñ  %¨ Ô /؈ rÈcón•UR(a-URRS/5 SURlUR[ U5UR 5U5nU(a#UR 5upgURXW5 UR(aSURlgg)a‡Write text at the current turtle position. Arguments: arg -- info, which is to be written to the TurtleScreen move (optional) -- True/False align (optional) -- one of the strings "left", "center" or right" font (optional) -- a triple (fontname, fontsize, fonttype) Write text - the string representation of arg - at the current turtle position according to align ("left", "center" or right") and with the given font. If move is True, the pen is moved to the bottom-right corner of the text. By default, move is False. Example (for a Turtle instance named turtle): >>> turtle.write('Home = ', True, align="center") >>> turtle.write((0,0), True) r�TFN)rHr“rŽrûrr~r\rf)rÎÚargÚmoverörórirÅ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ó6•UR/UlSUlg)zßStart recording the vertices of a polygon. No argument. Start recording the vertices of a polygon. Current turtle position is first point of polygon. Example (for a Turtle instance named turtle): >>> turtle.begin_poly() TN)rKrrrßs r¯r3ÚRawTurtle.begin_poly´ s€ð—n‘nÐ%ˆŒ Ø!ˆÕrÈcó•SUlg)aStop recording the vertices of a polygon. No argument. Stop recording the vertices of a polygon. Current turtle position is last point of polygon. This will be connected with the first point. Example (for a Turtle instance named turtle): >>> turtle.end_poly() FN)rrßs r¯r@ÚRawTurtle.end_poly s €ð#ˆÕrÈcóH•URb[UR5$g)z¬Return the lastly recorded polygon. No argument. Example (for a Turtle instance named turtle): >>> p = turtle.get_poly() >>> turtle.register_shape("myFavouriteShape", p) N)rrÂrßs r¯rEÚRawTurtle.get_polyÏ s"€ð �:‰:Ñ !ܘŸ™Ó$Ð $ð "rÈcó•UR$)aPReturn the TurtleScreen object, the turtle is drawing on. No argument. Return the TurtleScreen object, the turtle is drawing on. So TurtleScreen-methods can be called for that object. Example (for a Turtle instance named turtle): >>> ts = turtle.getscreen() >>> ts >>> ts.bgcolor("pink") )r”rßs r¯rGÚRawTurtle.getscreenÜ s€ð�{‰{ÐrÈcó•U$)aReturn the Turtleobject itself. No argument. Only reasonable use: as a function to return the 'anonymous turtle': Example: >>> pet = getturtle() >>> pet.fd(50) >>> pet >>> turtles() [] rñrßs r¯rIÚRawTurtle.getturtleì s €ðˆ rÈcó8•URRU5$)zDSet delay value which determines speed of turtle animation. )r”rràs r¯ráÚRawTurtle._delays€ð�{‰{× Ñ  Ó'Ð'rÈcó†•URRURRXU5 UR 5 g)aQBind fun to mouse-click event on this turtle on canvas. Arguments: fun -- a function with two arguments, to which will be assigned the coordinates of the clicked point on the canvas. btn -- number of the mouse-button defaults to 1 (left mouse button). add -- True or False. If True, new binding will be added, otherwise it will replace a former binding. Example for the anonymous turtle, i. e. the procedural way: >>> def turn(x, y): ... left(360) ... >>> onclick(turn) # Now clicking into the turtle will turn it. >>> onclick(None) # event-binding will be removed N)r”rr“rrÜr+s r¯rSÚRawTurtle.onclick s-€ð$ � ‰ ×јTŸ[™[×.Ñ.°¸#Ô>Ø � ‰ �rÈcó†•URRURRXU5 UR 5 g)awBind fun to mouse-button-release event on this turtle on canvas. Arguments: fun -- a function with two arguments, to which will be assigned the coordinates of the clicked point on the canvas. btn -- number of the mouse-button defaults to 1 (left mouse button). Example (for a MyTurtle instance named joe): >>> class MyTurtle(Turtle): ... def glow(self,x,y): ... self.fillcolor("red") ... def unglow(self,x,y): ... self.fillcolor("") ... >>> joe = MyTurtle() >>> joe.onclick(joe.glow) >>> joe.onrelease(joe.unglow) Clicking on joe turns fillcolor red, unclicking turns it to transparent. N)r”rr“rrÜr+s r¯rUÚRawTurtle.onreleases-€ð, � ‰ ×јtŸ{™{×0Ñ0°#¸CÔ@Ø � ‰ �rÈcóf•URRURRXU5 g)a2Bind fun to mouse-move event on this turtle on canvas. Arguments: fun -- a function with two arguments, to which will be assigned the coordinates of the clicked point on the canvas. btn -- number of the mouse-button defaults to 1 (left mouse button). Every sequence of mouse-move-events on a turtle is preceded by a mouse-click event on that turtle. Example (for a Turtle instance named turtle): >>> turtle.ondrag(turtle.goto) Subsequently clicking and dragging a Turtle will move it across the screen thereby producing handdrawings (if pen is down). N)r”rr“rr+s r¯rTÚRawTurtle.ondrag7s$€ð$ � ‰ ×јDŸK™K×-Ñ-¨s¸Õ=rÈcó•URcgUS:XaAUup4URU*U-UR- 5 URR5ngUS:XaUSnUR U5 gUS:XaUR U5 gUS;a<USnUR RU5 URRU5 gUS:Xa"USnUR RUSS S S 9 gUS :XaZUSnS=Ul Ul XpR;a7UR RU5 URRU5 ggUS :Xa3[RXS5 URR5 gg) z2Does the main part of the work for undo() Nr¬rrrr�)r½r=r¸rwr³r·rµrW)rHrerTr–r7r©r”rØrr.rÈrr r¶rW)rÎÚactionr‚rêÚdegPAUÚdummyrr×s r¯Ú_undoÚRawTurtle._undoLse€ð �?‰?Ñ "Ø Ø �U‹?Ø ‰MˆEØ �L‰L˜%˜ ™ t×'9Ñ'9Ñ9Ô :Ø—O‘O×'Ñ'Ó)‰EØ �wÓ Ø˜!‘WˆFØ �O‰O˜FÕ #Ø �t‹^Ø �N‰N˜4Õ Ø �~Ó %ؘ‘7ˆDØ �K‰K× Ñ  Ô %Ø �J‰J× Ñ ˜dÕ #Ø �xÓ Ø˜‘7ˆDØ �K‰K× !Ñ ! $Ð(>Ø')°2ð "ò 7à �{Ó "ؘ‘7ˆDØ.2Ð 2ˆDŒN˜Tœ^Ø—z‘zÓ!Ø— ‘ ×#Ñ# DÔ)Ø— ‘ ×!Ñ! $Õ'ð"ð�u‹_Ü �H‰H�T ™7Ô #Ø �O‰O× Ñ Õ !ðrÈcó •URcgURR5nUSnUSSnUS:Xa:U(a2UR5nURUSUSS5 U(aM1ggURX#5 g)aQundo (repeatedly) the last turtle action. No argument. undo (repeatedly) the last turtle action. Number of available undo actions is determined by the size of the undobuffer. Example (for a Turtle instance named turtle): >>> for i in range(4): ... turtle.fd(50); turtle.lt(80) ... >>> for i in range(8): ... turtle.undo() ... NrrËr�)rHr–rÙ)rÎr×rÖr‚s r¯rxÚRawTurtle.undolsy€ð" �?‰?Ñ "Ø Ø�‰×"Ñ"Ó$ˆØ�a‘ˆØ�A�BˆxˆØ �U‹?ÞØ—x‘x“z�Ø— ‘ ˜4 ™7 D¨¨ HÔ-÷’$ð �J‰J�vÕ $rÈ)rrr r!rMrrKrÅrÃr½rÂrÄr%r#r"rrr”r$r“rHr>rÁr|)NNNN)Fr)FrQ)ÚArialr­rÛrt)ò*"ò@%ð:ƒJrÈr cój•[Rc[5[l[R$)zReturn the singleton screen object. If none exists at the moment, create a new one and return it, else return the existing one.)r Ú_screenrrñrÈr¯r r �s!€ô‡~�~ÑÜ ›ŒŒÜ �>‰>ÐrÈcón•\rSrSrSrSr\SrSr\S\S\S\S4S jr S r S r S r S r Srg)ri—Nr*cóp•[Rch[5=[lUlURR[R5 URR UR 5 [Rc¬[Sn[Sn[Sn[Sn[Sn[SnURRXX45 URR5[l[RU[R5 URXXV5 gg)Nr{rƒr„r…r†r‡)rÚ_rootr~r*Ú_titler—Ú_destroyr@r¶r‡r‹r r;r')rÎr{rƒr„r…r†r‡s r¯r;Ú_Screen.__init__�sÛ€Ü �=‰=Ñ Ü).«Ð 0ŒGŒM˜DœJØ �J‰J× Ñ œWŸ^™^Ô ,Ø �J‰J× Ñ  §¡Ô /Ü �?‰?Ñ "ܘ‘MˆEܘ(‘^ˆFܘ[Ñ)ˆIܘlÑ+ˆJܘ[Ñ)ˆIܘ[Ñ)ˆIØ �J‰J× "Ñ " 5°)Ô HØ"Ÿj™j×3Ñ3Ó5ŒGŒOÜ × !Ñ ! $¬¯©Ô 8Ø �J‰J�u iÕ ;ð #rÈr{rƒr†r‡cóÈ•[URS5(dgURR5nURR5n[ U[ 5(aSUs=::aS::aO OXQ-nUcXQ- S- n[ U[ 5(aSUs=::aS::aO OXb-nUcXb- S- nURR XX45 UR5 g)a‚Set the size and position of the main window. Arguments: width: as integer a size in pixels, as float a fraction of the screen. Default is 50% of screen. height: as integer the height in pixels, as float a fraction of the screen. Default is 75% of screen. startx: if positive, starting position in pixels from the left edge of the screen, if negative from the right edge Default, startx=None is to center window horizontally. starty: if positive, starting position in pixels from the top edge of the screen, if negative from the bottom edge Default, starty=None is to center window vertically. Examples (for a Screen instance named screen): >>> screen.setup (width=200, height=200, startx=0, starty=0) sets window to 200x200 pixels, in upper left of screen >>> screen.setup(width=.75, height=0.5, startx=None, starty=None) sets window to 75% of screen by 50% of screen and centers r‘NrrËr%)Úhasattrrâr›rŸrÔr¦r‘r-)rÎr{rƒr�r�rîÚshs r¯r'Ú _Screen.setup®s¹€ô2�t—z‘z >×2Ñ2Ø Ø �Z‰Z× !Ñ !Ó #ˆØ �Z‰Z× "Ñ "Ó $ˆÜ �eœU× #Ñ #¨¨U­°a®Ø‘HˆEØ ‰>Ø‘j AÑ%ˆFÜ �fœe× $Ñ $¨¨fÕ)9¸Ö)9Ø‘YˆFØ ‰>Ø‘k QÑ&ˆFØ � ‰ ×Ñ ¨vÔ>Ø � ‰ � rÈcóz•[Rb[RRU5 U[lg)a1Set title of turtle-window Argument: titlestring -- a string, to appear in the titlebar of the turtle graphics window. This is a method of Screen-class. Not available for TurtleScreen- objects. Example (for a Screen instance named screen): >>> screen.title("Welcome to the turtle-zoo!") N)rrâr*rã)rÎÚ titlestrings r¯r*Ú _Screen.titleÖs'€ô �=‰=Ñ $Ü �M‰M× Ñ   Ô ,Ø$Œ�rÈcóЕURnU[RLa,S[lS[lS[lS[lS[ lUR5 g)NF) rârr rÙrßr@r rr–)rÎÚroots r¯räÚ_Screen._destroyçsD€Ø�z‰zˆØ ”7—=‘=Ò ØŒFŒKØ!ŒFŒNØ ŒGŒMØ"ŒGŒOØ %Œ ÔØ � ‰ �rÈcó$•UR5 g)zfShut the turtlegraphics window. Example (for a TurtleScreen instance named screen): >>> screen.bye() N)rärßs r¯rÚ _Screen.byeñs €ð � ‰ �rÈcóž^•U4SjnTRU5 [S(ag[5 g![a [ S5 gf=f)a Go into mainloop until the mouse is clicked. No arguments. Bind bye() method to mouseclick on TurtleScreen. If "using_IDLE" - value in configuration dictionary is False (default value), enter mainloop. If IDLE with -n switch (no subprocess) is used, this value should be set to True in turtle.cfg. In this case IDLE's mainloop is active also for the client script. This is a method of the Screen-class and not available for TurtleScreen instances. Example (for a Screen instance named screen): >>> screen.exitonclick() có&>•TR5 g)z&Screen.bye() with two dummy-parametersN)r)rÅrÆrÎs €r¯ÚexitGracefullyÚ+_Screen.exitonclick..exitGracefully s ø€à �H‰H�JrÈr–Nr)rSr¶rÚAttributeErrorÚexit)rÎrôs` r¯rÚ_Screen.exitonclickùsAø€õ& ð � ‰ �^Ô$Ü � × Ø ð Ü �JøÜó Ü �ŽGð ús© 4´A Á A )râ)r÷rørùrúrâr@r¶rãr;r'r*rärrrürñrÈr¯rr—sR†à €EØ€GØ �'‰]€Fò<ð"˜w™-°°X±Ø˜+Ñ&¨t°KÑ/@ô&òP%ò"òõrÈrcóB•\rSrSrSrSrSr\S\S\S4SjrSr g) r iz´RawTurtle auto-creating (scrolled) canvas. When a Turtle object is created or a function derived from some Turtle method is called a TurtleScreen object is automatically created. Nrkr‹r�có–•[Rc[5[l[R U[RUUUS9 g)N)rkr‹r�)r rßr r r;)rÎrkr‹r�s r¯r;ÚTurtle.__init__ s;€ô �>‰>Ñ !Ü#›XŒFŒNÜ×ј4¤§¡Ø!&Ø*8Ø#*ð ò ,rÈrñ) r÷rørùrúrûrÙrßr¶r;rürñrÈr¯r r s1†ñð €DØ€Gð˜G‘}Ø $Ð%5Ñ 6ؘi™÷ ,rÈr cót•0n[HnSU-n[U5RX'M! [HnSU-n[U5RX'M! [ SU-S5n[ SU55nUR S5 USSH6nUR S [U5-5 UR S X-5 M8 USnUR S [U5-5 UR S X-5 UR S 5 UR5 SSS5 g!,(df  g=f) a’Create and write docstring-dictionary to file. Optional argument: filename -- a string, used as filename default value is turtle_docstringdict Has to be called explicitly, (not used by the turtle-graphics classes) The docstring dictionary will be written to the Python script .py It is intended to serve as a template for translation of the docstrings into different languages. z_Screen.zTurtle.z%s.pyr³c3ób# •UH%nURS5S[;dM!Uv• M' g7f)ržrËN)rÚ _alias_list)rrÅs r¯rÚ&write_docstringdict..Cs+é€ð=¢˜AØŸ™ › a™´ Ñ;÷‘a¢ùs‚ /¦ /zdocsdict = { Nrz%s : z """%s """, z """%s """ z} ) Ú_tg_screen_functionsr¥rûÚ_tg_turtle_functionsrŸr(r|ÚreprÚclose)r¨ÚdocsdictÚ methodnamer­r©r s r¯rr-s€ð€Hç*ˆ ؘÑ#ˆÜ˜S› ×)Ñ)ˆ‹ ñ+÷+ˆ ؘ Ñ"ˆÜ˜S› ×)Ñ)ˆ‹ ñ+ô ˆg˜Ñ  Ô %¨Üñ=¡ó=ó=ˆà �‰Ð"Ô#ؘ˜“9ˆCØ �G‰G�Hœt C›yÑ(Ô )Ø �G‰GÐ-°± Ñ=Ö >ñð�2‰hˆØ �‰�œ4 ›9Ñ$Ô%Ø �‰Ð(¨8©=Ñ8Ô9Ø �‰�ŒØ �‰Œ ÷ &× %Ö %ús Á$BÜ×"Ñ"×.Õ.Ø× Ñ  2 e§j¡j \Ð!2×3ØÜ"Ð#?ÀÇÁÓLÐLñ.ð�D—I‘I˜iÓ(Ð)¨Ð+€Iä ˆx‹=˜)Ð #Ð#rÈcóž•SSKnUcg[SnURSU-S5nURSU-5nUR SU5nU$)z>>>>>)ÚobjÚinitrðÚ paramslistÚargslist)Úgetattrr#r¤Ú __func_bodyÚformatrÚglobalsrû) Ú functionsrÄr6r7Ú docreviserrÚpl1Úpl2Údefstrs r¯Ú_make_global_funcsrC¼sw€Ûˆ ܘÓ)ˆÜ! &Ó)‰ˆØ �"‹9Ü �(˜CÔ %Ù Ü×#Ñ#¨¸ZØ/2ð$ðBˆä ˆV”W“YÔÙ(1°&·.±.Ó(AŒ‹ �*ÑÖ%ò rÈzTurtle._screenzScreen()z Turtle._penzTurtle()Ú__main__cóL•[5(a [5 g[5 grÁ)rOr^rVrñrÈr¯Ú switchpenrFÑs€Ü �8‰8Ü �Dä �DrÈcóÞ•[5 [S5 [5 [S5 [ 5 [ S5 [ S5HunUS:Xa [5 [ S5Hn[S5 [S5 M US:Xa[S5 [5 [5 [S 5 [ 5 Mw [ S 5 [S 5 [S 5 [5 [S5 [S5 [S5 [S5 [S 5 [ 5 [SS 5 [SS 5 [S5 [ S5H/n[S5 [S5 [S5 [S5 M1 [S5 [5 [ S5H/n[S5 [S5 [S5 [S5 M1 [5 g)zDemo of old turtle.py - moduleTédrÓr%r´rãéZÚmaroonrRrËr�Fé´Ú startstartr—Úredr¯N)rar+rzr1r>r{rHr2rDrQr:r?r`r|)rJrs r¯Údemo1rN×sJ€ä ŒÜˆtŒ Ü ŒÜ�Œ Ü Œä ˆaŒÜ�q–ˆAØ�A‹vÜ” ܘ1–X�ܘ” Ü�R–ñð�A‹vÜ�h”Ü” Ü ŒDÜ �BŒKÜ ŽFñô ˆaŒÜ ˆgŒäˆuŒ Ü ŒÜ ˆbŒ Ü�Œ Ü ˆbŒ Ü�Œ Ü ˆcŒ Ü Œä ˆl˜AÔÜ ˆg�qÔÜ ˆeŒ ä�q–ˆAÜ �BŒKÜ �ŒHÜ �BŒKÜ �"ŽIñ ô ˆtŒ ÜŒ Ü�q–ˆAÜ �BŒKÜ �ŒHÜ �BŒKÜ �"ŽIñ ô � rÈcóÌ •[S5 [5 [S5 [[ SS55 [ SS5S- n[ S5 [S5Hn[5 [US5 M [S5 [5(a[5 [5(aM[5 [S5 [S 5 Sn[!S 5 [S5 [S 5 [S S 5H„nUS:”a [#5 [%S SU-- SSU-5 [S5Hn['U5 [S5 M [)5 US- n[S5 [[5S-S-5 M† [S5 [+5 ['S5 [ S5 [-5 [/SS5 [S5 [#5 [S5H0n[SS5 [ S5 ['S5 [ S5 M2 [)5 [S5 [+5 ['S5 [-5 [1S5 [35nUR5S5 [75nUR5S5 UR1S5 UR5 UR9S5 URS5 UR;5 UR=SS5 URS5 UR?5 URS5 UR/SS5 URS5 URS5 [[ U55 SnUR U5S:”a¢UR'S5 URS 5 URUR U55 UR'S5 US!-S:Xa*URA5 URA5 [5 US- nUR U5S:”aM¢URS"S#S$S%9 UR!S&5 UR!S5 S'n[BRD"S5 [5(a1UR5 UR5 [5(aM1UR'S5 URS(S)S*9 URGUS5 g+),zDemo of some new features.rËrÓrr˜rIérŠzwait a moment...rõÚgreenrKr¦r¥ééxé éFrRrMÚyellowr´é2r“rÉié(rµÚblueÚoranger%g @g333333ã?rãzCAUGHT! )rÝr¥Úboldr`)rórör�có,•[5 [5 grÁ)rr)r4r5s r¯ÚbabaÚdemo2..bababs €Ü ŒMÜ �ErÈz Click me!)ÚCourierrTr[)róN)$rprqrZrervr<rcrHrFr5r|ryrxrarRrrXr2rBrAr?r^rVr:rkrIrbr rQrzrJr>rrÚtimeÚsleeprS)r¡rÚlaengerJÚtrir“r™r]s r¯Údemo2rd s€€ä ˆaŒÜ ŒÜ�Œ Ü”7˜1˜a“=Ô!ܘ!˜Q“ Ñ#ˆÜ ˆ2ŒÜ�r–ˆAÜ ŒKÜ �6˜2Ö ñô Ð Ô!Ü×!Ñ!Ü ŒFô ×!Ó!ä ŒÜ ˆ2ŒÜ�#ŒØˆÜ�ÔÜ�Œ Ü ˆ3ŒÜ�r˜2–ˆAØ�1‹uÜ” ܘ#˜b ™d™( A r¨!¡tÔ,ܘ1–X�Ü�6” Ü�3–ñô ŒJØ �b‰LˆFÜ ˆrŒFÜ ”5“7˜1‘9˜b‘.Ö !ñô ˆ3ŒÜ ŒÜ ˆ2ŒÜ ˆ2ŒÜ ŒÜ ˆe�HÔÜ ˆaŒÜŒ Ü�q–ˆAÜ �2�rŒNÜ ˆrŒFÜ ˆrŒFÜ ˆrŽFñ ô Œ Ü ˆ2ŒÜ ŒÜ ˆ2ŒÜ ŒÜ ˆhŒä‹kˆØ �‰�vÔÜ“ˆØ×ј&Ô!Ø� ‰ �XÔØ� ‰ ŒØ� ‰ �BŒØ� ‰ �QŒØ� ‰ Œ Ø� ‰ �C˜ÔØ� ‰ �"Œ Ø� ‰ Œ Ø� ‰ �QŒØ� ‰ �V˜HÔ%Ø�‰�qÔØ � ‰ �!Œ Ü”7˜6“?Ô#؈Ø�l‰l˜6Ó" QÓ&Ø �I‰I�cŒNØ �I‰I�cŒNØ �N‰N˜3Ÿ;™; vÓ.Ô /Ø �F‰F�1ŒIØ�r‰z˜Q‹Ø— ‘ ”Ø— ‘ ” Ü” Ø �Q‰JˆEð�l‰l˜6Ó" QÕ&ð � ‰ �*Ð#8Àˆ ÑHØ � ‰ �WÔØ � ‰ �UÔò ô � Š �1Œ ä×!Ñ!Ø �H‰HŒJØ �K‰KŒMô ×!Ó!ð �‰ˆrŒ Ø � ‰ �-Ð(?ˆ ÑAØ � ‰ �D˜!ÕrÈ)rñ)Úturtle_docstringdict)ErûÚtkinterr9rrãr`rrÌÚos.pathrrrÚcopyrrÚ _tg_classesrrÚ _tg_utilitiesÚ__all__rþr¶r°r½rµr¤rÂrrr rr!r:rr>r€r~Úobjectr¢r�rxrr‰r rAr¶rr r r rr rrr Ú _LANGUAGEÚ ImportErrorr#r0r4r;rCrr€r÷rFrNrdrrñrÈr¯Úros—ðñ0KóZÛ Û Û ÛÛ ç'Ñ'ÝÝ òI€ ò)Ðò !Ðð'¨Ð/€ à Ð-Ñ -Ð0DÑ DØ ñ Ø(˜>ñ *€ò,€ ð ˆ�#ð Ø�4ð à�cð ð �cð ð �Tð  ð �Tð  ð � ð  ð �Sð ð �ð ð ˜$ð ð �ð ð �Wð ð �gð ð �zð ð �Dð ð �Ið ð ˜ð! ð""Ø)Øò' €ò,ò:ð<1ÙˆtÔô *$ˆEô*$òjòð1ð ô.ô*a#�R—X‘Xôa#ñF� §¡¨IÔ6ô)ˆB�E‰Eô)ð0 �‰€ôL5�vôL5ôh  �)ô ô˜)ôô ,1ˆFô,1ô^"6ˆfô"6ôLyÐ#ôyôvC�ôCôLYˆ6ôYôxL�6ôLô>Q��jôQðf$ €òô~ˆlô~ô@,ˆYô,ð( €ô òD3ð" �Ñ € ðMØ�IÓÙ˜ Ô"ò"$òH ò ð € ò BñÐ'¨Ø# ZÐ1BôDáÐ'¨Ø  *Ð.?ôAð€à ˆzÓòò 2òjañF „GÙ „GÙ…MðCøð]wó1Ù Ð /×0ð1ûðFtó1Ù Ð $ iÖ0ØóMÙ Ð HØBKñ LöMðMús*ÂG6ÆH Ç6HÈHÈ H/ÈH/È.H/