403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.51
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python313/Lib/turtledemo/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python313/Lib/turtledemo/__pycache__/__main__.cpython-313.pyc
�

��i�=���SrSSKrSSKrSSK7 SSKJrJr SSKJr SSK	J
r
 SSKrSSKJr
 \RS:Xa
SS	KJr \"5 \R"R%\R"R'\55r\RS
:HrSrSrS
rSrSrSr/SQrSrSr/SQr Sr!S\4S\
4S\R44r""SS\#5r$Sr%\&S:Xa\%"5 gg)a 
----------------------------------------------
    turtleDemo - Help
----------------------------------------------

This document has two sections:

(1) How to use the demo viewer
(2) How to add your own demos to the demo repository


(1) How to use the demo viewer.

Select a demoscript from the example menu.
The (syntax colored) source code appears in the left
source code window. IT CANNOT BE EDITED, but ONLY VIEWED!

The demo viewer windows can be resized. The divider between text
and canvas can be moved by grabbing it with the mouse. The text font
size can be changed from the menu and with Control/Command '-'/'+'.
It can also be changed on most systems with Control-mousewheel
when the mouse is over the text.

Press START button to start the demo.
Stop execution by pressing the STOP button.
Clear screen by pressing the CLEAR button.
Restart by pressing the START button again.

SPECIAL demos, such as clock.py are those which run EVENTDRIVEN.

    Press START button to start the demo.

    - Until the EVENTLOOP is entered everything works
    as in an ordinary demo script.

    - When the EVENTLOOP is entered, you control the
    application by using the mouse and/or keys (or it's
    controlled by some timer events)
    To stop it you can and must press the STOP button.

    While the EVENTLOOP is running, the examples menu is disabled.

    - Only after having pressed the STOP button, you may
    restart it or choose another example script.

 * * * * * * * *
 In some rare situations there may occur interferences/conflicts
 between events concerning the demo script and those concerning the
 demo-viewer. (They run in the same process.) Strange behaviour may be
 the consequence and in the worst case you must close and restart the
 viewer.
 * * * * * * * *


 (2) How to add your own demos to the demo repository

 - Place the file in the same directory as turtledemo/__main__.py
   IMPORTANT! When imported, the demo should not modify the system
   by calling functions in other modules, such as sys, tkinter, or
   turtle. Global variables should be initialized in main().

 - The code must contain a main() function which will
   be executed by the viewer (see provided example scripts).
   It may return a string which will be displayed in the Label below
   the source code window (when execution has finished.)

 - In order to run mydemo.py by itself, such as during development,
   add the following at the end of the file:

  if __name__ == '__main__':
      main()
      mainloop()  # keep window open

  python -m turtledemo.mydemo  # will then run it

 - If the demo is EVENT DRIVEN, main must return the string
   "EVENTLOOP". This informs the demo viewer that the script is
   still running and must be stopped by the user!

   If an "EVENTLOOP" demo runs by itself, as with clock, which uses
   ontimer, or minimal_hanoi, which loops by recursion, then the
   code should catch the turtle.Terminator exception that will be
   raised when the user presses the STOP button.  (Paint is not such
   a demo; it only acts in response to mouse clicks and movements.)
�N)�*)�ColorDelegator�color_config)�
Percolator)�	view_text)�__doc__�win32)�
fix_win_hidpi�darwin�����)�Arial��bold)zLucida Console�
�normal��d)��	r�r������c��[R"[5Vs/sH+nURS5(dMUSS:wdM&USSPM- sn$s snf)Nz.pyr�_���)�os�listdir�demo_dir�endswith)�entrys �(C:\Python313\\Lib\turtledemo\__main__.py�getExampleEntriesr*usT��$&�J�J�x�$8�7�$8�5��N�N�5�!�
�&+�A�h�#�o�
�E�#�2�J�$8�7�7��7s�A�A�	AzTurtledemo helpzAbout turtledemozAbout turtle modulec��\rSrSrSSjrSrSrSrSrSSjr	SS	jr
S
rSSjrSr
S
rSrSrSrSrSrSrSrSrg)�
DemoWindow�Nc
���[5=Ul=n[lUR	S5 URSUR5 [(aRSSKnURSSSSSR[R"55SS/URURS	9 URSS
S9 URSS
S9 URS
SS
S
9 URSSS
S
9 URSSS
S
9 [!U["SS9UlUR$R'UR)UR$5SSS9 UR$R'UR+UR$5SSS9 UR$R'UR-UR$5SSS9 UR$US'[/U[0S[2SS9nUR5UR7U55 UR5UR9U55 UR;SSSS9 [=US
SSSS[>S9Ul [(aa[CUS [DS!URFS"9Ul$[CUS#[DS!URJS"9Ul&[CUS$[DS!URNS"9Ul(Oc[CUS [DS%S&URFS'9Ul$[CUS#[DS%S&URJS'9Ul&[CUS$[DS%S&URNS'9Ul(UR@R;S
SSS(S)9 URHR;S
S
S*S+9 URLR;S
SS*S+9 URPR;S
SS*S+9 [SURT5RW[Y55 S,Ul-S,Ul.U(aUR_U5 URa[b[b[bS-S.5 [dUl3g)/NzPython turtle-graphics examples�WM_DELETE_WINDOWrz/usr/bin/osascriptz-ez tell application "System Events"z>set frontmost of the first process whose unix id is {} to truezend tell)�stderr�stdoutr)�weight�Z)�minsizer2r
r)�relief�borderwidth�Examples)�menu�label�	underline�Fontsize�Helpr8rz#ddd)�orient�	sashwidth�
sashrelief�bgr�news)�row�
columnspan�stickyz --- z#ddf)r�r)�height�textr@�fontr6r5z START z#00cc22)rGrH�fg�commandz STOP z CLEAR �whitez#fed)rGrHrI�disabledforegroundrJ)rr)rB�columnrD�padx�ew)rBrMrDFzChoose example from menu�black)4�Tk�root�turtle�_root�title�wm_protocol�_destroyr�
subprocess�run�formatr$�getpid�DEVNULL�grid_rowconfigure�grid_columnconfigure�Menu�RAISED�mBar�add_cascade�makeLoadDemoMenu�makeFontMenu�makeHelpMenu�PanedWindow�
HORIZONTAL�SOLID�add�
makeTextFrame�makeGraphFrame�grid�Label�RIDGE�
output_lbl�Button�btnfont�	startDemo�	start_btn�stopIt�stop_btn�clearCanvas�	clear_btnrrG�insertfilterr�dirty�exitflag�loadfile�	configGUI�DISABLED�STARTUP�state)�self�filenamerRrX�panes     r)�__init__�DemoWindow.__init__�s���*,�$�.��	�.�D�6�<��
�
�4�5����+�T�]�]�;��6��
�N�N�,��@��6�6<�f�R�Y�Y�[�6I��j��&�-�-�%�-�-�
�	
0�	
���q���+��!�!�!�A�!�.��!�!�!�R��!�:��!�!�!�R��!�:��!�!�!�R��!�:���f�!�<��	��	�	���4�#8�#8����#C�$.�!�	�	=��	�	���4�#4�#4�T�Y�Y�#?�$.�!�	�	=��	�	���4�#4�#4�T�Y�Y�#?�$*�a�	�	9��y�y��V���4�
�a�&+��8������#�#�D�)�*�����$�$�T�*�+��	�	�a�A�f�	�5���a�g�&�%<�!�',�.����6�#�D�y�w�'0�$�.�.�J�D�N�"�4�h�W�&/����F�D�M�#�D�y�w�'0�D�<L�<L�N�D�N�$�D�y�w�'.�V�,0�N�N�<�D�N�#�4�h�W�&-�F�+/�;�;�8�D�M�$�D�y�w�'.�6�.2�.>�.>�@�D�N�	
������1�V�%��H�������!�D��9��
�
���q��4��8�������!�D��9��4�9�9��*�*�>�+;�<���
���
���M�M�(�#����x��8�1�7�	<���
�c�L�URR5nURR5nURRSURU-
-UR-5 URRSURU-
-UR-5 g)Ng�?)�canvas�winfo_width�winfo_height�xview_moveto�	canvwidth�yview_moveto�
canvheight)r��event�cwidth�cheights    r)�onResize�DemoWindow.onResize�sx�����(�(�*���+�+�*�*�,����� � ��d�n�n�V�&;�!<�T�^�^�!K�L���� � ��d�o�o�g�&=�!>�t���!N�Or�c��[U5=Uln[USSSSS9=Uln[	U5 [USS9=UlnURUS'UR[[S	9 [US
[S9=UlnURUS'UR[[S	9 UR US'UR US
'[#[$5US'[&(aSOSnUR)SU-UR*5 UR)SU-UR*5 UR)SU-UR,5 UR)SU-UR,5 UR/SUR05 UR/SUR,5 UR/SUR*5 UR[2[4SS9 U$)NrGr�none�-)�namerN�wrap�width�vbar)r�rJ)�side�fill�hbar)r�r=�yscrollcommand�xscrollcommandrH�Command�Controlz
<%s-minus>z<%s-underscore>z
<%s-equal>z	<%s-plus>z<Control-MouseWheel>z<Control-Button-4>z<Control-Button-5>r)r�r��expand)�Frame�
text_frame�TextrGr�	Scrollbarr��yview�pack�RIGHT�Yrgr��xview�BOTTOM�X�set�tuple�txtfontr�bind_all�
decrease_size�
increase_size�bind�update_mousewheel�LEFT�BOTH)r�rRr�rGr�r��shortcuts       r)rj�DemoWindow.makeTextFrame�s���',�T�{�2���*��
��a�%+�2�7�	7��	�D��T��$�Z�f�=�=��	�D��*�*��Y���	�	�u�1�	�%�$�Z�f�Z�P�P��	�D��*�*��Y���	�	�v�A�	�&�!%����
��!%����
���W�~��V�� &��9�I���
�
�l�X�-�t�/A�/A�B��
�
�'�(�2�D�4F�4F�G��
�
�l�X�-�t�/A�/A�B��
�
�k�H�,�d�.@�.@�A��	�	�(�$�*@�*@�A��	�	�&��(:�(:�;��	�	�&��(:�(:�;��	�	�t�$�q�	�1��r�c��U[RlSUlSUl[R
"USSURUR5=[Rl=UlnUR5 URRSUR5 SURS'[R"5=Ul
n[RRX25 U/[R lU$)Ni�i iXz<Configure>rr6)rS�_ScreenrTr�r��ScrolledCanvas�_canvasr��
adjustScrolls�_rootwindowr�r��Screen�screen�TurtleScreenr��	RawTurtle�screens)r�rRr�r�s    r)rk�DemoWindow.makeGraphFrame�s���
 $�����������8>�8M�8M��c�3�������9A�	A�����	A���v����������
�t�}�}�=�()����}�%�%�}�}��.���f����$�$�V�4�$*�8���� ��
r�c�r�U[S'[[5URS'SU-URS'g)NrrHzFont size %drG)r�r�rGro)r��sizes  r)�set_txtsize�DemoWindow.set_txtsizes0�����
�!�'�N��	�	�&��"0�4�"7�����r�c�V�UR[[SS-
[55 g�Nr�break)r��maxr��MINIMUM_FONT_SIZE�r��dummys  r)r��DemoWindow.decrease_size	�#������W�Q�Z�!�^�->�?�@�r�c�V�UR[[SS-[55 gr�)r��minr��MAXIMUM_FONT_SIZEr�s  r)r��DemoWindow.increase_size
r�r�c�z�URS:[(+:XaUR5$UR5$)Nr)�deltarr�r�)r�r�s  r)r��DemoWindow.update_mousewheels4��
�K�K�!�O�V��,��%�%�'�'��%�%�'�'r�c���[(aLURRUS9 URRUS9 URRUS9 OrURRUU[
:XaSOSS9 URRUU[
:XaSOSS9 URRUU[
:XaSOSS9 URRXES9 g)N)rz#d00z#fca)rr@)rGrI)rrs�configrurw�NORMALro)r��start�stop�clear�txt�colors      r)r|�DemoWindow.configGUIs����6��N�N�!�!��!�.��M�M� � �t� �,��N�N�!�!��!�.��N�N�!�!��/4���V�F�
"�
L��M�M� � �t�.2�f�n�F�&�
!�
J��N�N�!�!��/4���V�F�
"�
L������C��2r�c�r^�[USS9n[5HnU4U4SjjnURUSUS9 M U$)Nr��tearoffc�(>�TRU5 g�N)r{)r(r�s �r)�load�)DemoWindow.makeLoadDemoMenu.<locals>.load+s����
�
�e�$r�r�r9r:rJ)r_r*�add_command)r��masterr8r(r�s`    r)rc�DemoWindow.makeLoadDemoMenu's@����F�A�&��&�(�E� �
%����5�A�t��D�)��r�c�H^�[USS9nURSTR[(aSOSS3S9 URSTR[(aSOSS	3S9 UR5 [H&nU4U4S
jjnUR[U5SUS9 M( U$)Nrr��Decreaser��Ctrlz+-)r9rJ�accelerator�Increasez+=c�(>�TRU5 gr�)r�)r�r�s �r)�resize�'DemoWindow.makeFontMenu.<locals>.resize9s���� � ��&r�r�)r_r�r�rr��
add_separator�
font_sizes�str)r�r�r8r�r�s`    r)rd�DemoWindow.makeFontMenu0s�����F�A�&�����z�4�3E�3E�5;�V�	��'H��%K�	�	M����z�4�3E�3E�5;�V�	��'H��%K�	�	M������D� �
'����3�t�9��6��J���r�c�j^�[USS9n[Hup4X44U4SjjnURX5S9 M U$)Nrr�c�2>�[TRX5 gr�)rrR)�
help_label�	help_filer�s  �r)�show�%DemoWindow.makeHelpMenu.<locals>.showBs����$�)�)�Z�;r�)r9rJ)r_�help_entriesr�)r�r�r8r�r�r�s`     r)re�DemoWindow.makeHelpMenu>s<����F�A�&��%1�!�J� *�
<����:��<�&2��r�c�j�UR(a"URR5 SUlgg�NF)ryr�r��r�s r)�
refreshCanvas�DemoWindow.refreshCanvasGs%���:�:��K�K�����D�J�r�c�6�UR5 S[RlSU-n[	U5 [
RUUl[URRS5nUR5nSSS5 URRSS5 URRSW5 URRUS-5 UR!["[$[$SS5 [&Ulg!,(df   N�=f)	NFzturtledemo.�rz1.0�endz# - a Python turtle graphics examplezPress start button�red)rvrSr��_RUNNING�
__import__�sys�modules�module�open�__file__�readrG�delete�insertrRrUr|r�r}�READYr)r�r��modname�f�charss     r)r{�DemoWindow.loadfileLs�������',����$��(�*���7���k�k�'�*���
�$�+�+�&�&��
,���F�F�H�E�-��	�	�����&��	�	�����&��	�	����#H�H�I����v�x��+�U�	4���
�-�
,�s�.D
�

Dc���UR5 SUlS[RlUR[[[SS5 URR5 URRS5 [UlURR5nUS:Xa[UlO[ UlUR[ :Xa!UR[[[U5 gUR[:Xa)SUlUR[[[SS5 gg![R"a UR$cg[ UlSnN�f=f)	NTzdemo running...rP�standard�	EVENTLOOPzstopped!zuse mouse/keys or STOPr	)rryrSr�r
r|r}r�r�r��mode�RUNNINGrr�main�EVENTDRIVEN�DONE�
TerminatorrRrz)r��results  r)rr�DemoWindow.startDemo[s��������
�'+����$����x���(�'�	3�������������$���
�
	 ��[�[�%�%�'�F���$�(��
�!��
��:�:����N�N�6�8�V�!�
#�
�Z�Z�;�
&� �D�M��N�N�8�V�X�3�U�
<�'��� � �	 ��y�y� ���D�J��F�		 �s�+D:�;D:�:!E-�
E-�,E-c���UR5 URRS5 URR	SS9 UR[[[5 g)N�all�)�cursor)rr��_deleter�r�r|r�r}rs r)rv�DemoWindow.clearCanvasxsE�����������E�"������"��%����v�x��2r�c��UR(a8UR5 SUlUR[[[SS5 S[
Rlg)NFzSTOPPED!r	)rzrvr|r�r}rSr�r
rs r)rt�DemoWindow.stopIt~sA���=�=�����!�D�M��N�N�6�8�X�%�u�
.�',����$r�c�p�S[RlURR	5 SUlgr)rSr�r
rR�destroyrs r)rW�DemoWindow._destroy�s'��',����$��	�	������	r�)r�r�r�rwryrzr�rarrorRr�rsrrurGr�r�r�)r&�blue)�__name__�
__module__�__qualname__�__firstlineno__r�r�rjrkr�r�r�r�r|rcrdrerr{rrrvrtrW�__static_attributes__�r�r)r,r,�s_��I�XP��8�(8�
��(�3�����

�<�:3�-�r�r,c�L�[5nURR5 gr�)r,rR�mainloop)�demos r)rr�s���<�D��I�I���r��__main__)'rrr$�tkinter�idlelib.colorizerrr�idlelib.percolatorr�idlelib.textviewrrS�
turtledemo�about_turtledemo�platform�idlelib.utilr
�path�dirname�abspathrr&rr~rrr rrqr�r�r�r�r*r��objectr,rr0r5r�r)�<module>rFs���T�j�	��:�)�&�
�2��<�<�7��*��O�
�7�7�?�?�2�7�7�?�?�8�4�5��	����	!��
��	��
������
��
*������
7�
�7�
�� ��)�*��F�N�N�+���I��I�X��z���F�r�

Youez - 2016 - github.com/yon3zu
LinuXploit