Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/idlelib/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/idlelib/__pycache__/zzdummy.cpython-312.opt-1.pyc

�

&Μg����dZddlmZddlmZd�ZGd�d�Zej�edk(rddl	Z	e	jd	d
d��yy)
z�Example extension, also used for testing.

See extend.txt for more details on creating an extension.
See config-extension.def for configuring an extension.
�)�idleConf��wrapsc�0��t��d�fd�	�}|S)z9Apply a formatting function to all of the selected lines.c����|jj�\}}}}tt|�dz
�D]}||}�||�||<�|jj	||||�y)N��break)�	formatter�
get_region�range�len�
set_region)	�self�event�head�tail�chars�lines�pos�line�format_lines	        ��,/usr/local/lib/python3.12/idlelib/zzdummy.py�applyzformat_selection.<locals>.applysk���#'�>�>�#<�#<�#>� ��d�E�5���U��a��(�C���:�D�$�T�4�0�E�#�J�)�	
���!�!�$��e�U�;��)Nr)rrs` r�format_selectionrs#����;������Lrc�T�eZdZdZdddgfgZd�Zed��Zed��Z	ed��Z
y	)
�ZzDummyz3Prepend or remove initial text from selected lines.�format)zZ inz<<z-in>>)zZ outz	<<z-out>>c�V�||_|j|_|j|_y)z+Initialize the settings for this extension.N)�editwin�text�fregionr
)rr s  r�__init__zZzDummy.__init__%s������L�L��	� ����rc�<�tjddd�|_y)z!Load class variables from config.�
extensionsrzz-textN)r�	GetOption�ztext)�clss r�reloadzZzDummy.reload+s���&�&�|�Y��I��	rc�"�|j�|��S)z�Insert text at the beginning of each selected line.

        This is bound to the <<z-in>> virtual event when the extensions
        are loaded.
        )r')rrs  r�
z_in_eventzZzDummy.z_in_event0s���*�*��d�V�$�$rc�p�|j|j�sdnt|j�}||dS)z�Remove specific text from the beginning of each selected line.

        This is bound to the <<z-out>> virtual event when the extensions
        are loaded.
        rN)�
startswithr'r
)rr�zlengths   r�z_out_eventzZzDummy.z_out_event9s.�� �?�?�4�:�:�6�!�C��
�
�O���G�H�~�rN)�__name__�
__module__�__qualname__�__doc__�menudefsr#�classmethodr)rr+r/�rrrrsd��=�
� �"�
�	��H�)��J��J��%��%����rr�__main__Nzidlelib.idle_test.test_zzdummy�F)�	verbosity�exit)r3�idlelib.configr�	functoolsrrrr)r0�unittest�mainr6rr�<module>r?sS���$���'�'�T�����z����H�M�M�2�a�e�L�r

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists