403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
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 :  /Python315/Lib/turtledemo/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python315/Lib/turtledemo/__pycache__/__main__.cpython-315.pyc
R
>lqj{=c��Qs]PHs]PHs]QH3]QHGsGs]QHGs]QH$G
s
]PH,s]QH0Gs
\OQ6Xc]QH<Gs\2\O"O%\O"O'\22s\OQ6Hs]s]s]s]s]sQs,QNs]s]ds,QNs Q	s!Q
\1Q\
1Q\O11s"Q
Q\#2s$Qs%\&Q6Xc
\%2P!P!)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.)
)�*)�ColorDelegator�color_config)�
Percolator)�	view_text)�__doc__�win32)�
fix_win_hidpi�darwinc��[O[2Tt,tFD1oUOQ2%fJU]*Q6wfJ,UPQMJ3	to!ttoh)z.py�_���)�os�listdir�demo_dir�endswith)�entrys �(C:\Python315\\Lib\turtledemo\__main__.py�getExampleEntriesrssT��$&�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�`�\sQs]~snQQksQsQsQsQsQQks	QQks
QsQQ	ksQ
s
QsQsQ
sQsQsQsQsQsQsUsP!)�
DemoWindowc
�x�[29Um9o[mUO	Q2UOQUO2[%cV]PH"oUOQQQQQO[O22QQ,UOUOQ5UO]]Q5UO]]Q5UO]]Z]Q	5UO]]Z]Q	5UO]]Z]Q	5[!U["]Q
5UmUO$O'UO)UO$2Q]Q5UO$O'UO+UO$2Q
]Q5UO$O'UO-UO$2Q]Q5UO$UQ$[/U[0][2QQ5oUO5UO7U22UO5UO9U22UO;]]QQ5[=U]QQQ$][>Q5Um [%ck[CUQ[DQUOFQ5Um$[CUQ[DQUOJQ5Um&[CUQQUONQ5Um(Ll[CUQ[DQQUOFQ5Um$[CUQ[DQQUOJQ5Um&[CUQQQUONQ5Um(UO@O;]]QQ%Q5UOHO;]]Q Q!5UOLO;]]Q Q!5UOPO;]]Q Q!5[SUOT2OW[Y22P
Um-P
Um.U%cUO_U2UOa[b[b[bQ"Q#2[dUm3P!)&zPython turtle-graphics examples�WM_DELETE_WINDOWz/usr/bin/osascriptz-ez tell application "System Events"z>set frontmost of the first process whose unix id is {} to truezend tell)�stderr�stdout)�weight)�minsizer)�relief�borderwidth�Examples)�menu�label�	underline�Fontsize�Helprz#ddd)�orient�	sashwidth�
sashrelief�bg�news)�row�
columnspan�stickyz --- z#ddf)�height�textr'�fontrrz START z#00cc22)r-r.�fg�commandz STOP z CLEAR �whitez#fed)r-r.r/�disabledforegroundr0)r)�columnr+�padx�ew)r)r3r+zChoose example from menu�black)�Arial��normal)��)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_btnrr-�insertfilterr�dirty�exitflag�loadfile�	configGUI�DISABLED�STARTUP�state)�self�filenamer=rC�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��UOO2oUOO2oUOOQUOU*
*UO*2UOOQUOU*
*UO*2P!)g�?)�canvas�winfo_width�winfo_height�xview_moveto�	canvwidth�yview_moveto�
canvheight)rk�event�cwidth�cheights&&  r�onResize�DemoWindow.onResize�sx�����(�(�*���+�+�*�*�,����� � ��d�n�n�V�&;�!<�T�^�^�!K�L���� � ��d�o�o�g�&=�!>�t���!N�Orpc���[U29Umo[UQ]Q]-Q59Umo[	U2[UQQ59UmoUOUQ$UO[[Q5[UQ[Q59UmoUOUQ$UO[[Q5UO UQ	$UO UQ
$[#[$2UQ$[&%cQLQ
oUO)QU*UO*2UO)QU*UO*2UO)QU*UO,2UO)QU*UO,2UO/QUO02UO/QUO,2UO/QUO*2UO[2[4]Q5U!)r-�none)�namer4�wrap�width�vbar)r�r0)�side�fill�hbar)r�r$�yscrollcommand�xscrollcommandr.�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��expand)�Frame�
text_frame�Textr-r�	Scrollbarr��yview�pack�RIGHT�YrRr��xview�BOTTOM�X�set�tuple�txtfontr	�bind_all�
decrease_size�
increase_size�bind�update_mousewheel�LEFT�BOTH)rkr=r�r-r�r��shortcuts&&     rrU�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��rpc��U[OmQUmQUm[O
UQQUOUO29[Om9UmoUO2UOOQUO2]UOQ$[O29Um
o[OOV22U,[O mU!)��� �Xz<Configure>r)r>�_Screenr?rvrx�ScrolledCanvas�_canvasrr�
adjustScrolls�_rootwindowr�r|�Screen�screen�TurtleScreenrn�	RawTurtle�screens)rkr=rrr�s&&  rrV�DemoWindow.makeGraphFrame�s���
 $�����������8>�8M�8M��c�3�������9A�	A�����	A���v����������
�t�}�}�=�()����}�%�%�}�}��.���f����$�$�V�4�$*�8���� ��
rpc�~�U[]$[[2UOQ$QU*UOQ$P!)�r.zFont size %dr-)r�r�r-rZ)rk�sizes&&r�set_txtsize�DemoWindow.set_txtsizes0�����
�!�'�N��	�	�&��"0�4�"7�����rpc�j�UO[[]*]*
[22Q!�r��break)r��maxr��MINIMUM_FONT_SIZE�rk�dummys&&rr��DemoWindow.decrease_size�#������W�Q�Z�!�^�->�?�@�rpc�j�UO[[]*]*[22Q!r�)r��minr��MAXIMUM_FONT_SIZEr�s&&rr��DemoWindow.increase_sizer�rpc�~�UO]6[%(6XcUO2!UO2!)r:)�deltar	r�r�)rkrys&&rr��DemoWindow.update_mousewheels4��
�K�K�!�O�V��,��%�%�'�'��%�%�'�'rpc��[%cVUOOUQ5UOOUQ5UOOUQ5L~UOOSU[
6XcQLQQ5UOOSU[
6XcQLQQ5UOOSU[
6XcQLQQ5UOOVEQ5P!))rjz#d00z#fca)rjr')r-r/)r	r^�configr`rb�NORMALrZ)rk�start�stop�clear�txt�colors&&&&&&rrg�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��2rpc�`�[U]Q5o[2FD oU1U1QkkoUOU]UQ5J"	U!)r���tearoffc�,:�ROU2P!�N)rf)rrks&�r�load�)DemoWindow.makeLoadDemoMenu.<locals>.load)s����
�
�e�$rp�r r!r0)rJr�add_command)rk�masterrrr�sf&   rrN�DemoWindow.makeLoadDemoMenu%s@����F�A�&��&�(�E� �
%����5�A�t��D�)��rpc�h`�[U]Q5oSOQRO[%cQLQQ0Q5SOQRO[%cQLQQ0Q5UO2[FD)oU1U1Q	kkoUO[U2]UQ
5J+	U!)r:r��Decreaser��Ctrlz+-)r r0�accelerator�Increasez+=c�,:�ROU2P!r�)r�)r�rks&�r�resize�'DemoWindow.makeFontMenu.<locals>.resize7s���� � ��&rpr�)rJr�r�r	r��
add_separator�
font_sizes�str)rkr�rr�r�sf&   rrO�DemoWindow.makeFontMenu.s�����F�A�&�����z�4�3E�3E�5;�V�	��'H��%K�	�	M����z�4�3E�3E�5;�V�	��'H��%K�	�	M������J�D� �
'����3�t�9��6��J���rpc�z`�[U]Q5o[FD vq4V41U1QkkoUOV5Q5J"	U!)r:r�c�6:�[ROV2P!r�)rr=)�
help_label�	help_filerks&&�r�show�%DemoWindow.makeHelpMenu.<locals>.show@s����$�)�)�Z�;rp)r r0)rJ�help_entriesr�)rkr�rr�r�r�sf&    rrP�DemoWindow.makeHelpMenu<s>����F�A�&��%1�\�!�J� *�
<����:��<�&2��rpc�r�UO%c$UOO2P
UmP!P!�F)rdr�r��rks&r�
refreshCanvas�DemoWindow.refreshCanvasEs'���:�:�:��K�K�����D�J�rpc�f�UO2P
[OmQU*o[	U2[
OU*Um[UOOQ29^tt^2oUO2oPPP2UOOQQ2UOOQW2UOOUQ*2UO!["[$[$QQ2[&UmP!)%fhK�9h)Fzturtledemo.�rz1.0�endz# - a Python turtle graphics examplezPress start button�red)rar>r��_RUNNING�
__import__�sys�modules�module�open�__file__�readr-�delete�insertr=r@rgr�rh�READYrj)rkrl�modname�f�charss&&   rrf�DemoWindow.loadfileJs�������',����$��(�*���7���k�k�'�*���
�$�+�+�&�&��
,�
,���F�F�H�E�-��	�	�����&��	�	�����&��	�	����#H�H�I����v�x��+�U�	4���
�-�
,�s�?D � D0	�)D0	c���UO2P	UmP	[OmUO[[[QQ2UOO2UOOQ2[UmUOO2oUQ6Xc
[UmL[ UmUO[ 6Xc#UO[[[U2P!UO[6Xc+P	UmUO[[[QQ2P!P![O"c"SO$eP![ SmQoK�h9h)Tzdemo running...r6�standard�	EVENTLOOPzstopped!zuse mouse/keys or STOPr�)r�rdr>r�r�rgrhr�r�r��mode�RUNNINGrjr��main�EVENTDRIVEN�DONE�
Terminatorr=re)rk�results& rr]�DemoWindow.startDemoYs��������
�'+����$����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*� E�1E�=E�E7�E7�'
E7�6E7c���UO2UOOQ2UOO	PQ5UO[[[2P!)�all)�cursor)r�r��_deleterrr�rgr�rhr�s&rra�DemoWindow.clearCanvasvsE�����������E�"������"��%����v�x��2rpc���UO%c9UO2P
UmUO[[[QQ2P
[
OmP!)FzSTOPPED!r�)rerargr�rhr>r�r�r�s&rr_�DemoWindow.stopIt|sC���=�=�=�����!�D�M��N�N�6�8�X�%�u�
.�',����$rpc�t�P
[OmUOO	2PUmP!r�)r>r�r�r=�destroyr�s&rrB�DemoWindow._destroy�s'��',����$��	�	������	rp)rrrxrvrbrdrer�rLr�rZr=r�r^rjr`r-r�r�r�)��blue)�__name__�
__module__�__qualname__�__firstlineno__rnr|rUrVr�r�r�r�rgrNrOrPr�rfr]rar_rB�__static_attributes__�__classdictcell__)�
__classdict__s@rrr~sg����I�XP��8�(8�
��(�3�����

�<�:3�-��rprc�P�[2oUOO2P!r�)rr=�mainloop)�demos rrr�s���<�D��I�I���rp�__main__)r7��bold)zLucida Console�
r9)��	r+�r)������)'rr�r
�tkinter�idlelib.colorizerrr�idlelib.percolatorr�idlelib.textviewrr>�
turtledemo�about_turtledemo�platform�idlelib.utilr�path�dirname�abspathr�rr	rirrrr
r\r�r�r�r�rr��objectrrr�rpr�<module>rBs���T�j�	��:�)�&�
�2��<�<�7��*��O�
�7�7�?�?�2�7�7�?�?�8�4�5��	����	!��
��	��
������
��
*������
7�
�7�
�� ��)�*��F�N�N�+���I��I�X��z���F�rp

Youez - 2016 - github.com/yon3zu
LinuXploit