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



Upload:

Command:

aptanhua@216.73.216.189: ~ $
�

�֦i<���dZddlZddlZddl�ddlmZmZddlmZddl	m
Z
ddlZddlmZ
ejdk(r
dd	lmZe�ej"j%ej"j'e��Zejd
k(ZdZdZd
ZdZdZddefZdZgd�ZdZ dZ!gd�Z"d�Z#defde
fdejffZ$Gd�de%�Z&d�Z'e(dk(re'�yy)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�)rr�bold)zLucida Console�
�normal��d)��	r�r������c��tjt�D�cgc] }|jd�r
|ddk7r|dd��"c}Scc}w)Nz.pyr�_���)�os�listdir�demo_dir�endswith)�entrys �,/usr/lib64/python3.12/turtledemo/__main__.py�getExampleEntriesr*vsL��$&�J�J�x�$8�7�$8�5��N�N�5�!�e�A�h�#�o�
�#�2�J�$8�7�7��7s�%AzTurtledemo helpzAbout turtledemozAbout turtle modulec��eZdZdd�Zd�Zd�Zd�Zd�Zdd�Zdd�Z	d	�Z
dd
�Zd�Zd�Z
d
�Zd�Zd�Zd�Zd�Zd�Zd�Zy)�
DemoWindowNc
�N�t�x|_x}t_|j	d�|jd|j�trTddl}|jdddddjtj��ddg|j|j�	�|jdd
��|jdd
��|jd
dd
�
�|jddd
�
�|jddd
�
�t!|t"d��|_|j$j'|j)|j$�dd��|j$j'|j+|j$�dd��|j$j'|j-|j$�dd��|j$|d<t/|t0dt2d��}|j5|j7|��|j5|j9|��|j;ddd��t=|d
ddddt>��|_ trjtC|d tDd!|jF�"�|_$tC|d#tDd!|jJ�"�|_&tC|d$tDd!|jN�"�|_(nltC|d tDd%d&|jF�'�|_$tC|d#tDd%d&|jJ�'�|_&tC|d$tDd%d&|jN�'�|_(|j@j;d
ddd(�)�|jHj;d
d
d*�+�|jLj;d
dd*�+�|jPj;d
dd*�+�tS|jT�jWtY��d,|_-d,|_.|r|j_|�|jatbtbtbd-d.�td|_3y)/NzPython turtle-graphics examples�WM_DELETE_WINDOWr�	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__zDemoWindow.__init__�s���*,�$�.��	�.�D�6�<��
�
�4�5����+�T�]�]�;���
�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�&�%<�!�',�.����#�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�|jj�}|jj�}|jjd|j|z
z|jz�|jjd|j|z
z|jz�y)Ng�?)�canvas�winfo_width�winfo_height�xview_moveto�	canvwidth�yview_moveto�
canvheight)r��event�cwidth�cheights    r)�onResizezDemoWindow.onResize�sx�����(�(�*���+�+�*�*�,����� � ��d�n�n�V�&;�!<�T�^�^�!K�L���� � ��d�o�o�g�&=�!>�t���!N�Or�c��t|�x|_}t|dddd��x|_}t	|�t|d��x|_}|j|d<|jtt�	�t|d
t��x|_}|j|d<|jtt�	�|j |d<|j |d
<t#t$�|d<t&rdnd}|j)d|z|j*�|j)d|z|j*�|j)d|z|j,�|j)d|z|j,�|j/d|j0�|j/d|j,�|j/d|j*�|jtt2d��|S)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�LEFT�Yrgr��xview�BOTTOM�X�set�tuple�txtfontr�bind_all�
decrease_size�
increase_size�bind�update_mousewheel�BOTH)r�rRr�rGr�r��shortcuts       r)rjzDemoWindow.makeTextFrame�s���',�T�{�2���*��
��a�%+�2�7�	7��	�D��T��$�Z�f�=�=��	�D��*�*��Y���	�	�t�!�	�$�$�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�
�|tj_d|_d|_tj
|dd|j|j�xtj_x|_}|j�|jjd|j�d|jd<tj�x|_
}tjj||�|gtj _|S)Ni�i iXz<Configure>rr6)rS�_ScreenrTr�r��ScrolledCanvas�_canvasr��
adjustScrolls�_rootwindowr�r��Screen�screen�TurtleScreenr��	RawTurtle�screens)r�rRr�r�s    r)rkzDemoWindow.makeGraphFrame�s���
 $�����������8>�8M�8M��c�3�������9A�	A�����	A���v����������
�t�}�}�=�()����}�%�%�}�}��.���f����$�$�V�V�4�$*�8���� ��
r�c�r�|td<tt�|jd<d|z|jd<y)NrrHzFont size %drG)r�r�rGro)r��sizes  r)�set_txtsizezDemoWindow.set_txtsizes0�����
�!�'�N��	�	�&��"0�4�"7�����r�c�V�|jttddz
t��y�Nr�break)r��maxr��MINIMUM_FONT_SIZE�r��dummys  r)r�zDemoWindow.decrease_size
�#������W�Q�Z�!�^�->�?�@�r�c�V�|jttddzt��yr�)r��minr��MAXIMUM_FONT_SIZEr�s  r)r�zDemoWindow.increase_sizer�r�c�p�|jdktk(r|j�S|j�S)Nr)�deltarr�r�)r�r�s  r)r�zDemoWindow.update_mousewheels4��
�K�K�!�O�V��,��%�%�'�'��%�%�'�'r�c���trU|jj|��|jj|��|jj|��nx|jj||t
k(rdnd��|jj||t
k(rdnd��|jj||t
k(rdnd��|jj||��y)N)rz#d00z#fca)rr@)rGrI)rrs�configrurw�NORMALro)r��start�stop�clear�txt�colors      r)r|zDemoWindow.configGUIs�����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�E��2r�c�|��t|�}t�D]"}|f�fd�	}|j|dt|���$|S)Nc�(���j|�y�N)r{)r(r�s �r)�loadz)DemoWindow.makeLoadDemoMenu.<locals>.load,s����
�
�e�$r�r�r9r:rHrJ)r_r*�add_command�menufont)r��masterr8r(r�s`    r)rczDemoWindow.makeLoadDemoMenu(sD����F�|��&�(�E� �
%����5�A�"*�D�
�
:�)�
�r�c�.��t|�}|jd�jt��|jd�jt��|j�tD]+}|f�fd�	}|jt|�dt|���-|S)NzDecrease (C-'-'))r9rJrHzIncrease (C-'+')c�(���j|�yr�)r�)r�r�s �r)�resizez'DemoWindow.makeFontMenu.<locals>.resize;s���� � ��&r�rr�)r_r�r�r�r��
add_separator�
font_sizes�str)r�r�r8r�r�s`    r)rdzDemoWindow.makeFontMenu2s�����F�|�����1�4�;M�;M�&�	�	(����1�4�;M�;M�&�	�	(������D� �
'����3�t�9��"*�F�
�
<��
�r�c�z��t|�}tD]%\}}||f�fd�	}|j|t|���'|S)Nc�4��t�j||�yr�)rrR)�
help_label�	help_filer�s  �r)�showz%DemoWindow.makeHelpMenu.<locals>.showEs����$�)�)�Z��;r�)r9rHrJ)r_�help_entriesr�r�)r�r�r8r�r�r�s`     r)rezDemoWindow.makeHelpMenuAsA����F�|��%1�!�J�	� *�i�
<����:�H�d��K�&2��r�c�`�|jr"|jj�d|_yy�NF)ryr�r��r�s r)�
refreshCanvaszDemoWindow.refreshCanvasJs%���:�:��K�K�����D�J�r�c�,�|j�dtj_d|z}t	|�t
j||_t|jjd�5}|j�}ddd�|jjdd�|jjd�|jj|dz�|j!t"t$t$dd�t&|_y#1swY��xYw)	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{zDemoWindow.loadfileOs�������',����$��(�*���7���k�k�'�*���
�$�+�+�&�&��
,���F�F�H�E�-��	�	�����&��	�	�����&��	�	����#H�H�I����v�x��+�U�	4���
�-�
,�s�.D
�
Dc���|j�d|_dtj_|jtttdd�|jj�|jjd�t|_	|jj�}|dk(rt|_nt |_|jt k(r!|jttt|�y|jtk(r)d|_|jtttdd�yy#tj"$r|j$�Yyt |_d}Y��wxYw)	NTzdemo running...rP�standard�	EVENTLOOPzstopped!zuse mouse/keys or STOPr�)r�ryrSr�r�r|r}r�r�r��mode�RUNNINGrr��main�EVENTDRIVEN�DONE�
TerminatorrRrz)r��results  r)rrzDemoWindow.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�6D6�6E'�
E'�&E'c���|j�|jjd�|jj	d��|jttt�y)N�all�)�cursor)r�r��_deleter�r�r|r�r}r�s r)rvzDemoWindow.clearCanvas{sE�����������E�"������"��%����v�x��2r�c��|jr8|j�d|_|jtttdd�dt
j_y)NFzSTOPPED!r�)rzrvr|r�r}rSr�r�r�s r)rtzDemoWindow.stopIt�sA���=�=�����!�D�M��N�N�6�8�X�%�u�
.�',����$r�c�p�dtj_|jj	�d|_yr�)rSr�r�rR�destroyr�s r)rWzDemoWindow._destroy�s'��',����$��	�	������	r�r�)r�blue)�__name__�
__module__�__qualname__r�r�rjrkr�r�r�r�r|rcrdrer�r{rrrvrtrW�r�r)r,r,�s_��I�XP��8�(8�
��(�3��
���

�<�:3�-�r�r,c�L�t�}|jj�yr�)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�abspathr�r&rr~r�rr	rr�r�rqr�r�r�r�r*r��objectr,rrrr�r)�<module>r)s���T�j�	��:�)�&�
�2��<�<�7��*��O�
�7�7�?�?�2�7�7�?�?�8�4�5��	����	!��
��	��
�������R�� ��
��
*������
7�
�7�
�� ��)�*��F�N�N�+���K��K�\��z���F�r�

Filemanager

Name Type Size Permission Actions
__init__.cpython-312.opt-1.pyc File 468 B 0644
__init__.cpython-312.opt-2.pyc File 146 B 0644
__init__.cpython-312.pyc File 468 B 0644
__main__.cpython-312.opt-1.pyc File 20.97 KB 0644
__main__.cpython-312.opt-2.pyc File 17.82 KB 0644
__main__.cpython-312.pyc File 20.97 KB 0644
bytedesign.cpython-312.opt-1.pyc File 8.01 KB 0644
bytedesign.cpython-312.opt-2.pyc File 7.54 KB 0644
bytedesign.cpython-312.pyc File 8.01 KB 0644
chaos.cpython-312.opt-1.pyc File 2.42 KB 0644
chaos.cpython-312.opt-2.pyc File 2.42 KB 0644
chaos.cpython-312.pyc File 2.42 KB 0644
clock.cpython-312.opt-1.pyc File 6.17 KB 0644
clock.cpython-312.opt-2.pyc File 5.94 KB 0644
clock.cpython-312.pyc File 6.17 KB 0644
colormixer.cpython-312.opt-1.pyc File 3.24 KB 0644
colormixer.cpython-312.opt-2.pyc File 3.24 KB 0644
colormixer.cpython-312.pyc File 3.24 KB 0644
forest.cpython-312.opt-1.pyc File 4.96 KB 0644
forest.cpython-312.opt-2.pyc File 4.65 KB 0644
forest.cpython-312.pyc File 4.96 KB 0644
fractalcurves.cpython-312.opt-1.pyc File 5.64 KB 0644
fractalcurves.cpython-312.opt-2.pyc File 5.34 KB 0644
fractalcurves.cpython-312.pyc File 5.64 KB 0644
lindenmayer.cpython-312.opt-1.pyc File 3.68 KB 0644
lindenmayer.cpython-312.opt-2.pyc File 3.18 KB 0644
lindenmayer.cpython-312.pyc File 3.68 KB 0644
minimal_hanoi.cpython-312.opt-1.pyc File 3.88 KB 0644
minimal_hanoi.cpython-312.opt-2.pyc File 3.3 KB 0644
minimal_hanoi.cpython-312.pyc File 3.88 KB 0644
nim.cpython-312.opt-1.pyc File 13.17 KB 0644
nim.cpython-312.opt-2.pyc File 12.97 KB 0644
nim.cpython-312.pyc File 13.17 KB 0644
paint.cpython-312.opt-1.pyc File 2.02 KB 0644
paint.cpython-312.opt-2.pyc File 1.4 KB 0644
paint.cpython-312.pyc File 2.02 KB 0644
peace.cpython-312.opt-1.pyc File 1.77 KB 0644
peace.cpython-312.opt-2.pyc File 1.55 KB 0644
peace.cpython-312.pyc File 1.77 KB 0644
penrose.cpython-312.opt-1.pyc File 7.03 KB 0644
penrose.cpython-312.opt-2.pyc File 6.63 KB 0644
penrose.cpython-312.pyc File 7.03 KB 0644
planet_and_moon.cpython-312.opt-1.pyc File 6.14 KB 0644
planet_and_moon.cpython-312.opt-2.pyc File 5.71 KB 0644
planet_and_moon.cpython-312.pyc File 6.14 KB 0644
rosette.cpython-312.opt-1.pyc File 2.75 KB 0644
rosette.cpython-312.opt-2.pyc File 2.42 KB 0644
rosette.cpython-312.pyc File 2.75 KB 0644
round_dance.cpython-312.opt-1.pyc File 2.75 KB 0644
round_dance.cpython-312.opt-2.pyc File 2.17 KB 0644
round_dance.cpython-312.pyc File 2.75 KB 0644
sorting_animate.cpython-312.opt-1.pyc File 10 KB 0644
sorting_animate.cpython-312.opt-2.pyc File 9.55 KB 0644
sorting_animate.cpython-312.pyc File 10 KB 0644
tree.cpython-312.opt-1.pyc File 2.47 KB 0644
tree.cpython-312.opt-2.pyc File 1.91 KB 0644
tree.cpython-312.pyc File 2.47 KB 0644
two_canvases.cpython-312.opt-1.pyc File 2.23 KB 0644
two_canvases.cpython-312.opt-2.pyc File 2.03 KB 0644
two_canvases.cpython-312.pyc File 2.23 KB 0644
yinyang.cpython-312.opt-1.pyc File 1.62 KB 0644
yinyang.cpython-312.opt-2.pyc File 1.44 KB 0644
yinyang.cpython-312.pyc File 1.62 KB 0644