Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/test/test_tkinter/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/test/test_tkinter/__pycache__/widget_tests.cpython-312.opt-1.pyc

�

)Μg�X���ddlZddlZddlmZmZmZmZmZddlZ	e
�ZGd�de�ZGd�d�Z
Gd�d�ZGd	�d
�Zd�Zd�Zy)
�N)�AbstractTkTest�requires_tk�
tk_version�pixels_conv�
tcl_obj_eqc��eZdZedk\rdnedk\rdndZeZdZdZdZ	dZ
dZdZe
d��Zd	�Zdej"fd
�Zeddd�d�Zdd
�Zd�Zd�Zed�d�Zd�Zdd�d�Zd�Zd�Zddddd�d�Zdd�d�Zdd�d�Z d�Z!d�Z"d�Z#d�Z$y) �AbstractWidgetTest)�	r�������NFTc��	|jS#t$r9t|jj	dd��|_|jcYSwxYw)N�tk�scaling)�_scaling�AttributeError�float�root�call)�selfs �;/usr/local/lib/python3.12/test/test_tkinter/widget_tests.pyrzAbstractWidgetTest.scalingsE��	!��=�=� ���	!�!�$�)�)�.�.��y�"A�B�D�M��=�=� �	!�s��?A�Ac���|js|jrtdk\r|St|t�r%djt
|j|��St|�S)N�r
�� )	�
_stringify�wantobjectsr�
isinstance�tuple�join�map�_str�str)r�values  rr$zAbstractWidgetTest._strsK�����4�#3�#3�
�f�8L��L��e�U�#��8�8�C��	�	�5�1�2�2��5�z��c�>�|||�ry|j|||�y�N)�assertEqual)r�actual�expected�msg�eqs     r�assertEqual2zAbstractWidgetTest.assertEqual2%s!��
�f�h��������3�/r')r,�convr.c���|||<|tur|}|r||�}|js|js1t|t�rtj|�}nt|�}|�t}|j||||��|j|j|�||��|j|�}|jt|�d�|j|d||��y)N)r.��)�	_sentinelrrr r!�tkinter�_joinr%rr/�cget�	configurer*�len)r�widget�namer&r,r0r.�ts        r�
checkParamzAbstractWidgetTest.checkParam*s�����t���y� ��H���H�~�H��?�?�$�"2�"2��(�E�*�"�=�=��2���x�=��
�:��B����&��,��R��8����&�+�+�d�+�X�"��=����T�"������Q���#����!�A�$��R��0r'c���||}|�3|jtjt|���}d|�d�}|j	t
j|xsd�5|||<ddd�|j|||�|j	t
j|xsd�5|j||i�ddd�|j|||�y#1swY�txYw#1swY�+xYw)Nz\Az\Zr)	�format�re�escaper%�assertRaisesRegexr5�TclErrorr*r8)rr:r;r&�errmsg�origs      r�checkInvalidParamz$AbstractWidgetTest.checkInvalidParam>s����d�|�����]�]�2�9�9�S��Z�#8�9�F��6�(�"�%�F�
�
#�
#�G�$4�$4�f�l��
C� �F�4�L�D�������t�,�
�
#�
#�G�$4�$4�f�l��
C����d�E�]�+�D�������t�,�D�
C��D�
C�s�C�&C$�C!�$C-c�<�|D]}|j|||fi|���yr))r=)rr:r;�values�kwargsr&s      r�checkParamszAbstractWidgetTest.checkParamsJs#���E��D�O�O�F�D�%�:�6�:�r'c��|j||g|��i|��d}|j||d|��|j||d|��|j||d|��y)N�expected integer but got "{}"r�rD�10p皙����	@�rJrF)rr:r;rHrIrDs      r�checkIntegerParamz$AbstractWidgetTest.checkIntegerParamNsh��������9��9�&�9�0�����v�t�R���?����v�t�U�6��B����v�t�S���@r'�r0c��|D]}|j|||fd|i|���d}|j||d|��|j||d|��y)Nr0z+expected floating-point number but got "{}"rrM�spam�r=rF)rr:r;r0rHrIr&rDs        r�checkFloatParamz"AbstractWidgetTest.checkFloatParamUs[���E��D�O�O�F�D�%�E�d�E�f�E��>�����v�t�R���?����v�t�V�F��Cr'c���dD]}|j|||d���dD]}|j|||d���d}|j||d|��|j||d	|��y)
N)Fr�false�no�offr�r,)T��true�yes�onr\z#expected boolean value but got "{}"rrMrTrU)rr:r;r&rDs     r�checkBooleanParamz$AbstractWidgetTest.checkBooleanParam\sq��5�E��O�O�F�D�%�!�O�<�6�3�E��O�O�F�D�%�!�O�<�4�6�����v�t�R���?����v�t�V�F��Cr'��allow_emptyc�j�|j||ddddddddd	d
fi|��|j||dd�
�y)Nz#ff0000z#00ff00z#0000ffz#123456�red�green�blue�white�black�greyrTzunknown color name "spam"rMrP)rr:r;rbrIs     r�checkColorParamz"AbstractWidgetTest.checkColorParamesT��������"�I�y�)�����'�6�	#�"�	#�	
���v�t�V�2�	�	4r'c��|j||ddddfi|��|j||d�|j||dd��y)	N�arrow�watch�crossr�nonerTzbad cursor spec "spam"rM)rJr=rF)rr:r;rIs    r�checkCursorParamz#AbstractWidgetTest.checkCursorParammsM��������w���"�N�v�N������f�-����v�t�V�/�	�	1r'c�b�d�}|||<|j||�|j||d�y)Nc��yr)�)�argss r�commandz5AbstractWidgetTest.checkCommandParam.<locals>.commandts��r'r)�
assertTruerJ)rr:r;rus    r�checkCommandParamz$AbstractWidgetTest.checkCommandParamss2��	���t������t��%������r�*r')rDrb�fullname�sortc��|j||g|��i|��|��|r4|drtt|��}ntt|dd��dz}d|xs|�ddj|dd��t	|�dkDrdnd�d	|dxsd
��}	d|vr|s|j||dd|	z��d
|	z}|j||d|��y)Nr�rrz "{}": must be �, ��,rz or �""�	ambiguousrM�badrT)rJr!�sortedr"r9rF)
rr:r;rDrbrxryrHrI�errmsg2s
          r�checkEnumParamz!AbstractWidgetTest.checkEnumParamzs���	������9��9�&�9��>���"�:�"�6�&�>�2�F�"�6�&��"�+�#6�7�%�?�F���$��$��I�I�f�S�b�k�*��v�;��?�C��2��2�J�&�$�&�	(�G�
�����&�&�v�t�R�.9�G�.C�'�E��W�_�F����v�t�V�F��Cr'c�6�|�|j}|D]Z}t}|}t|t�r(|r&|turt	|�|j
z}t}|j|||f||d�|���\d}	|j||d|	��|j||d|	��y)N�r,r0z7(bad|expected) screen distance ((or "" )?but got )?"{}"�6xrMrT)	�_conv_pixelsr4r r%rr�roundr=rF)
rr:r;r0rHrIr&r,�conv1rDs
          r�checkPixelsParamz#AbstractWidgetTest.checkPixelsParam�s����<��$�$�D��E� �H��E��%��%��U�#�-�*�5�1�D�L�L�@�H�!�E��D�O�O�F�D�%�
2�(�!&�
2�*0�
2��K�����v�t�T�&��A����v�t�V�F��Cr'c��d}|r|dz
}|j||g|���ddj|dd��d|dxsd��}tdkrd}|j||d	|�
�y)N)�flat�groove�raised�ridge�solid�sunkenr{zbad relief "{}": must be r|rz, or rrrTrM)rJr"rrF)rr:r;rbrHrDs      r�checkReliefParamz#AbstractWidgetTest.checkReliefParam�sx��I����e�O�F�������/��/��	�	�&��"�+�&��r�
�"�d�"�$������F����v�t�V�F��Cr'c��tj|jd��}|j|||t��|j||dd��d||<y)N�image1)�masterr;rRrTzimage "spam" doesn't existrMr)r5�
PhotoImagerr=r%rF)rr:r;�images    r�checkImageParamz"AbstractWidgetTest.checkImageParam�sQ���"�"�$�)�)�(�C�������e�#��6����v�t�V�4�	�	6���t�r'c�6�|j|||t��y)NrR)r=r%)rr:r;�vars    r�checkVariableParamz%AbstractWidgetTest.checkVariableParam�s�������c���4r'c���|j|�|j|t�t|�dk7r|j	d|���|D](}t|t�r�|j	d|���yy)Nr3zInvalid bounding box: )�assertIsNotNone�assertIsInstancer!r9�failr �int)r�bbox�items   r�assertIsBoundingBoxz&AbstractWidgetTest.assertIsBoundingBox�s`�����T�"����d�E�*��t�9��>��I�I�D�:�;��D��d�C�(��	�	��>�?��r'c���|j�}|j�}|jt|�t|j	���|D]}||�	t
jjruddddddd�}t|�}t|j�}t||z
�D]:}||vr|||vr|||vr�t|jj�d|�d	���<yy)
N�borderwidth�
background�backgroundimage�
foreground�invalidcommand�validatecommand)�bd�bg�bgimg�fg�invcmd�vcmdz.OPTIONS doesn't contain "�")
�create�keysr*r�r8�test�support�verbose�set�OPTIONS�print�	__class__�__name__)rr:r��k�aliasesr,s      r�	test_keyszAbstractWidgetTest.test_keys�s���������{�{�}��������v�f�.>�.>�.@�'A�B��A��1�I���<�<���#�"�*�"�*�)�
�G��t�9�D��4�<�<�(�H��D�8�O�,���W����
�d�*���
�h�.���>�>�2�2�A�7�8�	-� r'r))%r��
__module__�__qualname__r�_default_pixelsr�r��_conv_pad_pixelsr�_clip_highlightthickness�	_clip_pad�_clip_borderwidth�_allow_empty_justify�propertyrr$�object�__eq__r/r4r=rFrJrQrrVr`rjrprwr�r�r�r�r�r�r�rsr'rr	r	s���&�&�0�b�J�&�<P�b�VX�O��L����J�#���I��� ��
�!��!��26�&�-�-�0�
;D��$�1�(
-�;�A�;@�D�D�<@�4�1�+�#���!�D�,#�D�"=B�
D��5��8r'r	c���eZdZdZd�Zd�Zd�Zd�Zd�Zd�Z	e
dd	�d
��Zd�Zd�Z
d
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d �Z!e
dd	�d!��Z"e
dd	�d"��Z#d#�Z$d$�Z%d%�Z&d&�Z'd'�Z(d(�Z)d)�Z*d*�Z+d+�Z,d,�Z-d-�Z.e
dd	�d.��Z/d/�Z0d0�Z1d1�Z2d2�Z3d3�Z4d4�Z5d5�Z6d6�Z7d7�Z8d8�Z9d9�Z:d:�Z;d;�Z<d<�Z=y=)>�StandardOptionsTests)*�activebackground�activeborderwidth�activeforeground�anchorr��bitmapr��compound�cursor�disabledforeground�exportselection�fontr��highlightbackground�highlightcolor�highlightthicknessr��insertbackground�insertborderwidth�
insertofftime�insertontime�insertwidth�jump�justify�orient�padx�pady�relief�repeatdelay�repeatinterval�selectbackground�selectborderwidth�selectforeground�setgrid�	takefocus�text�textvariable�troughcolor�	underline�
wraplength�xscrollcommand�yscrollcommandc�H�|j�}|j|d�y)Nr��r�rj�rr:s  r�test_configure_activebackgroundz4StandardOptionsTests.test_configure_activebackground������������V�%7�8r'c
�T�|j�}|j|ddddddd�y)Nr�r��������?g333333@r���rN�r�r�r�s  r� test_configure_activeborderwidthz5StandardOptionsTests.test_configure_activeborderwidth��-����������f�&9���c�1�b�%�	9r'c�H�|j�}|j|d�y)Nr�r�r�s  r�test_configure_activeforegroundz4StandardOptionsTests.test_configure_activeforeground�r�r'c�H�|j�}|j|d�y)N�activerelief�r�r�r�s  r�test_configure_activereliefz0StandardOptionsTests.test_configure_activerelief�s����������f�n�5r'c
�Z�|j�}|j|ddddddddd	d
�y)Nr��n�ne�e�se�s�sw�w�nw�center�r�r�r�s  r�test_configure_anchorz*StandardOptionsTests.test_configure_anchor�s3����������F�H��T�3��c�4��d�H�	Fr'c��|j�}|j|d�d|jvr|j|d�yy)Nr�r��r�rjr�r�s  r�test_configure_backgroundz.StandardOptionsTests.test_configure_background�>����������V�\�2��4�<�<��� � ���.� r'r
rc�H�|j�}|j|d�y)Nr��r�r�r�s  r�test_configure_backgroundimagez3StandardOptionsTests.test_configure_backgroundimages����������V�%6�7r'c��|j�}|j|dd�|j|dd�tjj	dd��}|j|dd|z�d|j
jjd	d
�vrd|j
j�vs|j|ddd
��yy)Nr��	questhead�gray50z
python.xbm�
imghdrdata)�subdir�@�aquar�windowingsystem�AppKitrTzbitmap "spam" not definedrM)
r�r=r�r��findfilerrr�winfo_serverrF)rr:�filenames   r�test_configure_bitmapz*StandardOptionsTests.test_configure_bitmaps�������������+�6������(�3��<�<�(�(��l�(�K�������#��.�9��$�)�)�,�,�+�+�D�2C�D�D��D�I�I�2�2�4�4��"�"�6�8�V�6�
#�
8�5r'c	�>�|j�}|j|dddddd�|jrdnd}|j|dd||j��d	|j
vr8|j|d	ddddd�|j|d	d||j��yy)
Nr�rr��������@rrNr�r�r�)r�r�r�r=r�r��rr:r,s   r�test_configure_borderwidthz/StandardOptionsTests.test_configure_borderwidths�����������f�m���c�1�e�	5��.�.�1�B������
�r�H�!�.�.�	�	0��4�<�<���!�!�&�$��3��Q��F��O�O�F�D�"�x�!%�!2�!2�
�
4� r'c
�T�|j�}|j|ddddddd�y)Nr��bottomr
�leftro�right�toprr�s  r�test_configure_compoundz,StandardOptionsTests.test_configure_compound$s-����������F�J��(�F�F�G�U�	Dr'c�H�|j�}|j|d�y)Nr�)r�rpr�s  r�test_configure_cursorz*StandardOptionsTests.test_configure_cursor)�����������f�h�/r'c�H�|j�}|j|d�y)Nr�r�r�s  r�!test_configure_disabledforegroundz6StandardOptionsTests.test_configure_disabledforeground-s����������V�%9�:r'c�H�|j�}|j|d�y)Nr��r�r`r�s  r�test_configure_exportselectionz3StandardOptionsTests.test_configure_exportselection1s����������v�'8�9r'c��|j�}|j|dd�|jjdk(}|s|j	|ddd��yy)Nr�z3-Adobe-Helvetica-Medium-R-Normal--*-120-*-*-*-*-*-*�tkinter.ttkrzfont "" doesn't existrM)r�r=r�r�rF)rr:�is_ttks   r�test_configure_fontz(StandardOptionsTests.test_configure_font5s\������������M�	O��!�!�,�,�
�=����"�"�6�6�2�*B�
#�
D�r'c��|j�}|j|d�d|jvr|j|d�yy)Nr�r�rr�s  r�test_configure_foregroundz.StandardOptionsTests.test_configure_foreground>rr'c�H�|j�}|j|d�y)Nr�r�r�s  r�"test_configure_highlightbackgroundz7StandardOptionsTests.test_configure_highlightbackgroundDs����������V�%:�;r'c�H�|j�}|j|d�y)Nr�r�r�s  r�test_configure_highlightcolorz2StandardOptionsTests.test_configure_highlightcolorHs����������V�%5�6r'c	��|j�}|j|dddddd�|jrdnd}|j|dd||j��y)	Nr�rr�r%rrNr�r�)r�r�r�r=r�r&s   r�!test_configure_highlightthicknessz6StandardOptionsTests.test_configure_highlightthicknessLs]����������f�&:���c�1�e�	5��5�5�1�2������ 4�b�8�!�.�.�	�	0r'c�H�|j�}|j|d�y)Nr�rr�s  r�test_configure_imagez)StandardOptionsTests.test_configure_imageTs����������V�W�-r'c�H�|j�}|j|d�y)Nr�r�r�s  r�test_configure_insertbackgroundz4StandardOptionsTests.test_configure_insertbackgroundXr�r'c
�T�|j�}|j|ddddddd�y)Nr�rr�r%rr�rNr�r�s  r� test_configure_insertborderwidthz5StandardOptionsTests.test_configure_insertborderwidth\r�r'c�J�|j�}|j|dd�y)Nr��d�r�rQr�s  r�test_configure_insertofftimez1StandardOptionsTests.test_configure_insertofftimeas����������v���<r'c�J�|j�}|j|dd�y)Nr�rIrJr�s  r�test_configure_insertontimez0StandardOptionsTests.test_configure_insertontimees����������v�~�s�;r'c�P�|j�}|j|ddddd�y)Nr�r�r%r�rNr�r�s  r�test_configure_insertwidthz/StandardOptionsTests.test_configure_insertwidthis%����������f�m�S�#�r�5�Ir'c�H�|j�}|j|d�y)Nr�r4r�s  r�test_configure_jumpz(StandardOptionsTests.test_configure_jumpms����������v�v�.r'c�x�|j�}d}|jr|dz
}|j|dg|��ddi�y)N)r*r+r
r{r�rx�
justification)r�r�r�)rr:rHs   r�test_configure_justifyz+StandardOptionsTests.test_configure_justifyqsG�������,���$�$��e�O�F�����F�I�	6��	6�%4�	6r'c��|j�}|jt|d�|j�|j	|ddd�y)Nr��
horizontal�vertical)r�r*r%�default_orientr�r�s  r�test_configure_orientz*StandardOptionsTests.test_configure_orientysA�����������V�H�-�.��0C�0C�D����F�H�l�J�Gr'c	���|j�}|j|ddddd|j��|jrdnd}|j	|dd||j�	�y)
Nr��皙����@�ffffff@�12mrRrr�r��r�r�r�r�r=r&s   r�test_configure_padxz(StandardOptionsTests.test_configure_padx~�d����������f�f�a��c�5�#'�#8�#8�	�	:����1�B��������X�!�2�2�	�	4r'c	���|j�}|j|ddddd|j��|jrdnd}|j	|dd||j�	�y)
Nr�r[r\r]r^rRrr�r�r_r&s   r�test_configure_padyz(StandardOptionsTests.test_configure_pady�rar'c�J�|j�}|j|dd�y)N�placeholder�xxx�r�r=r�s  r�test_configure_placeholderz/StandardOptionsTests.test_configure_placeholder�s�����������
�u�5r'c�H�|j�}|j|d�y)N�placeholderforegroundr�r�s  r�$test_configure_placeholderforegroundz9StandardOptionsTests.test_configure_placeholderforeground�s����������V�%<�=r'c�H�|j�}|j|d�y)Nr�rr�s  r�test_configure_reliefz*StandardOptionsTests.test_configure_relief�r0r'c�L�|j�}|j|ddd�y)Nr�������rJr�s  r�test_configure_repeatdelayz/StandardOptionsTests.test_configure_repeatdelay�s!����������v�}�d�C�@r'c�L�|j�}|j|ddd�y)Nr�rorprJr�s  r�test_configure_repeatintervalz2StandardOptionsTests.test_configure_repeatinterval�s"����������v�'7��s�Cr'c�H�|j�}|j|d�y)Nr�r�r�s  r�test_configure_selectbackgroundz4StandardOptionsTests.test_configure_selectbackground�r�r'c�P�|j�}|j|ddddd�y)Nr�r�r%r�rNr�r�s  r� test_configure_selectborderwidthz5StandardOptionsTests.test_configure_selectborderwidth�s&����������f�&9�3��R��Or'c�H�|j�}|j|d�y)Nr�r�r�s  r�test_configure_selectforegroundz4StandardOptionsTests.test_configure_selectforeground�r�r'c�H�|j�}|j|d�y)Nr�r4r�s  r�test_configure_setgridz+StandardOptionsTests.test_configure_setgrid������������v�y�1r'c�N�|j�}|j|dddd�y)N�state�active�disabled�normalrr�s  r�test_configure_statez)StandardOptionsTests.test_configure_state�s#����������F�G�X�z�8�Lr'c�N�|j�}|j|dddd�y)Nr��0�1r�r�rJr�s  r�test_configure_takefocusz-StandardOptionsTests.test_configure_takefocus�s#������������c�3��;r'c�L�|j�}|j|ddd�y)Nr�rz
any stringr�r�s  r�test_configure_textz(StandardOptionsTests.test_configure_text�s!�������������\�:r'c��|j�}tj|j�}|j	|d|�y)Nr�)r�r5�	StringVarrr��rr:r�s   r�test_configure_textvariablez0StandardOptionsTests.test_configure_textvariable�s3�����������	�	�*��������<r'c�H�|j�}|j|d�y)N�tiler4r�s  r�test_configure_tilez(StandardOptionsTests.test_configure_tile�s����������v�v�.r'c�H�|j�}|j|d�y)Nr�r�r�s  r�test_configure_troughcolorz/StandardOptionsTests.test_configure_troughcolor������������V�]�3r'c��|j�}|j|dddd�tdk\r�|jjdk(}|j|dd|rdn|j��|j|dd	|rd	nd
��|j|dd|rdnd��|j|dd
d
��|j|ddd��d}nd}|j|dd|��|j|dd|��|j|dd|��y)Nr�rr\�
rr7rr[z5+2rz5-2r[�endzend-2zObad index "{}": must be integer\?\[\+-\]integer\?, end\?\[\+-\]integer\?, or ""rLrMrNrO)r�rJrr�r�r=r�rF)rr:r8rDs    r�test_configure_underlinez-StandardOptionsTests.test_configure_underline�s������������a��B�7�����%�%�0�0�M�A�F��O�O�F�K��+1�R�t�7K�7K�
�
M��O�O�F�K��.4�U�!�
�
=��O�O�F�K��.4�U�!�
�
=��O�O�F�K���O�G��O�O�F�K��7�O�K�6�F�5�F��"�"�6�;��6�"�J����v�{�E�&��I����v�{�C���Gr'c�J�|j�}|j|dd�y)Nr�rIr�r�s  r�test_configure_wraplengthz.StandardOptionsTests.test_configure_wraplength�s����������f�l�C�8r'c�H�|j�}|j|d�y)Nr��r�rwr�s  r�test_configure_xscrollcommandz2StandardOptionsTests.test_configure_xscrollcommand������������v�'7�8r'c�H�|j�}|j|d�y)Nr�r�r�s  r�test_configure_yscrollcommandz2StandardOptionsTests.test_configure_yscrollcommand�r�r'c�H�|j�}|j|d�y)Nrur�r�s  r�test_configure_commandz+StandardOptionsTests.test_configure_command�r|r'c�H�|j�}|j|d�y)N�indicatoronr4r�s  r�test_configure_indicatoronz/StandardOptionsTests.test_configure_indicatoron�s����������v�}�5r'c�H�|j�}|j|d�y)N�	offreliefrr�s  r�test_configure_offreliefz-StandardOptionsTests.test_configure_offrelief�s����������f�k�2r'c�Z�|j�}|j|dtdk\��y)N�
overreliefrra)r�r�rr�s  r�test_configure_overreliefz.StandardOptionsTests.test_configure_overrelief�s-����������f�l�+5��+?�	�	Br'c�H�|j�}|j|d�y)N�selectcolorr�r�s  r�test_configure_selectcolorz/StandardOptionsTests.test_configure_selectcolorr�r'c�H�|j�}|j|d�y)N�selectimagerr�s  r�test_configure_selectimagez/StandardOptionsTests.test_configure_selectimager�r'c�H�|j�}|j|d�y)N�
tristateimagerr�s  r�test_configure_tristateimagez1StandardOptionsTests.test_configure_tristateimage
s����������V�_�5r'c�J�|j�}|j|dd�y)N�
tristatevalue�
unknowablergr�s  r�test_configure_tristatevaluez1StandardOptionsTests.test_configure_tristatevalues�������������>r'c��|j�}tj|j�}|j	|d|�y)N�variable)r�r5�	DoubleVarrr�r�s   r�test_configure_variablez,StandardOptionsTests.test_configure_variables3�����������	�	�*������
�C�8r'N)>r�r�r��STANDARD_OPTIONSr�r�r�rrrrrr#r'r-r/r2r5r9r;r=r?rArCrErGrKrMrOrQrTrYr`rcrhrkrmrqrsrurwryr{r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rsr'rr�r��s�����9�9�
9�6�F�
/���A��8��8�8�
4�D�
0�;�:�D�/�<�7�0�.�9�9�
=�<�J�/�6�H�
4�4���A��6��6���A��>��>�0�A�D�9�P�9�2�M�<�;�=�
��A��/��/�4�H�*9�9�9�2�6�3�B�
4�4�6�?�9r'r�c��eZdZd�Zd�Zy)�IntegerSizeTestsc�N�|j�}|j|dddd�y)N�heightrI���rrJr�s  r�test_configure_heightz&IntegerSizeTests.test_configure_heights#����������v�x��d�A�>r'c�N�|j�}|j|dddd�y)N�width��n���rrJr�s  r�test_configure_widthz%IntegerSizeTests.test_configure_widths#����������v�w��T�1�=r'N�r�r�r�r�r�rsr'rr�r�s��?�>r'r�c��eZdZd�Zd�Zy)�PixelSizeTestsc
�T�|j�}|j|ddddddd�y)Nr�rIg�����LY@gfffff�Y@r�r�3cr�r�s  rr�z$PixelSizeTests.test_configure_height#s)����������f�h��U�E�4��D�Qr'c
�T�|j�}|j|ddddddd�y)Nr�r�gfffff6y@g�����Iy@r�r�5ir�r�s  rr�z#PixelSizeTests.test_configure_width's)����������f�g�s�E�5�$��4�Pr'Nr�rsr'rr�r�"s��R�Qr'r�c����fd�}|S)Nc
������jD][}d|z}t�|�r��D]'}t||�s�t�|t||���@|f�fd�	}||_t�||��]�S)N�test_configure_c�d��|j�}||td|�d�j����)NzOption "z" is not tested in )r��AssertionErrorr�)r�optionr:�clss   �rr�z5add_standard_options.<locals>.decorator.<locals>.test:s3���!%������v��,�.4�c�l�l�.D�E�Er')r��hasattr�setattr�getattrr�)r�r��
methodname�source_classr��source_classess`    �r�	decoratorz'add_standard_options.<locals>.decorator0sz����k�k�F�*�V�3�J��3�
�+�$2�L��|�Z�8���Z� '��j� A�C��	%3�+1�E�
%/�D�M��C��T�2�"� �
r'rs)r�r�s` r�add_standard_optionsr�,s����$�r'c��tjjr3tj�}td|j
dd�d��yy)Nzpatchlevel =�info�
patchlevelT)�flush)r�r�r�r5�Tclr�r)�tcls r�setUpModuler�Ds6���|�|����k�k�m��
�n�c�h�h�v�|�<�D�I�r')r@r5�test.test_tkinter.supportrrrrr�test.supportr�r�r4r	r�r�r�r�r�rsr'r�<module>r�s`��
��;�;��
�H�	�L8��L8�^z9�z9�z	>�>�Q�Q��0Jr'

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