Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.11/tkinter/test/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.11/tkinter/test/__pycache__/widget_tests.cpython-311.pyc

�

TԚg0M���ddlZddlZddlmZmZmZmZddlZe	��Z
Gd�de��ZGd�d��ZGd�d��Z
Gd	�d
��Zd�Zd�ZdS)
�N)�AbstractTkTest�
tk_version�pixels_conv�
tcl_obj_eqc���eZdZeZdZdZed���Zd�Z	de
jfd�Ze
ddd�d�Zdd�Zd	�Zd
�Zed�d�Zd
�Zdd�d�Zd�Zd�Zdd�d�Zdd�d�Zd�Zd�Zd�Zd�Zd�ZdS)�AbstractWidgetTestNFc��	|jS#t$r7t|j�dd����|_|jcYSwxYw)N�tk�scaling)�_scaling�AttributeError�float�root�call)�selfs �6/usr/local/lib/python3.11/tkinter/test/widget_tests.pyrzAbstractWidgetTest.scalingsW��	!��=� ���	!�	!�	!�!�$�)�.�.��y�"A�"A�B�B�D�M��=� � � �	!���s�	�>A
�	A
c���|js|jr
tdkr|St|t��r(d�t
|j|����St|��S)N���� )	�
_stringify�wantobjectsr�
isinstance�tuple�join�map�_str�str)r�values  rrzAbstractWidgetTest._strsa����	�4�#3�	�
�f�8L�8L��L��e�U�#�#�	3��8�8�C��	�5�1�1�2�2�2��5�z�z��c�P�|||��rdS|�|||��dS�N)�assertEqual)r�actual�expected�msg�eqs     r�assertEqual2zAbstractWidgetTest.assertEqual2 s9��
�2�f�h���	��F������3�/�/�/�/�/r!)r&�convr(c��|||<|tur|}|r||��}|js|js9t|t��rtj|��}nt|��}|�t}|�	||||���|�	|�
|��||���|�|��}|�t|��d��|�	|d||���dS)N)r(��)�	_sentinelrrrr�tkinter�_joinrrr)�cget�	configurer$�len)r�widget�namer r&r*r(�ts        r�
checkParamzAbstractWidgetTest.checkParam%s����t���y� � ��H��	&��t�H�~�~�H��?�	)�$�"2�	)��(�E�*�*�
)�"�=��2�2����x�=�=��
�:��B����&��,��R��8�8�8����&�+�+�d�+�+�X�"��=�=�=����T�"�"������Q����#�#�#����!�A�$��R��0�0�0�0�0r!c�p�||}|�|�|��}|�tj��5}|||<ddd��n#1swxYwY|�(|�t|j��|��|�|||��|�tj��5}|�||i��ddd��n#1swxYwY|�(|�t|j��|��|�|||��dSr#)�format�assertRaisesr/�TclErrorr$r�	exceptionr2)rr4r5r �errmsg�orig�cms       r�checkInvalidParamz$AbstractWidgetTest.checkInvalidParam9s����d�|�����]�]�5�)�)�F�
�
�
�w�/�
0�
0�	!�B� �F�4�L�	!�	!�	!�	!�	!�	!�	!�	!�	!�	!�	!����	!�	!�	!�	!������S���.�.��7�7�7�������t�,�,�,�
�
�
�w�/�
0�
0�	,�B����d�E�]�+�+�+�	,�	,�	,�	,�	,�	,�	,�	,�	,�	,�	,����	,�	,�	,�	,������S���.�.��7�7�7�������t�,�,�,�,�,s#�A�A�A�C%�%C)�,C)c�0�|D]}|j|||fi|���dSr#)r7)rr4r5�values�kwargsr s      r�checkParamszAbstractWidgetTest.checkParamsHs<���	;�	;�E��D�O�F�D�%�:�:�6�:�:�:�:�	;�	;r!c��|j||g|�Ri|��|�||dd���|�||dd���|�||dd���dS)N�zexpected integer but got ""�r=�10pzexpected integer but got "10p"g������	@zexpected integer but got "3.2"�rDr@)rr4r5rBrCs     r�checkIntegerParamz$AbstractWidgetTest.checkIntegerParamLs��������9��9�9�9�&�9�9�9����v�t�R�4�	�	6�	6�	6����v�t�U�7�	�	9�	9�	9����v�t�S�7�	�	9�	9�	9�	9�	9r!�r*c��|D]}|j|||fd|i|���|�||dd���|�||dd���dS)Nr*rFz)expected floating-point number but got ""rG�spamz-expected floating-point number but got "spam"�r7r@)rr4r5r*rBrCr s       r�checkFloatParamz"AbstractWidgetTest.checkFloatParamUs����	F�	F�E��D�O�F�D�%�E�E�d�E�f�E�E�E�E����v�t�R�B�	�	D�	D�	D����v�t�V�F�	�	H�	H�	H�	H�	Hr!c���dD]}|�|||d����dD]}|�|||d����|�||dd���|�||d	d
���dS)N)Fr�false�no�offr)r&)T��true�yes�onrTrFz!expected boolean value but got ""rGrMz%expected boolean value but got "spam"rN)rr4r5r s    r�checkBooleanParamz$AbstractWidgetTest.checkBooleanParam]s���5�	=�	=�E��O�O�F�D�%�!�O�<�<�<�<�3�	=�	=�E��O�O�F�D�%�!�O�<�<�<�<����v�t�R�:�	�	<�	<�	<����v�t�V�>�	�	@�	@�	@�	@�	@r!)�allow_emptyc�j�|j||ddddddddd	d
fi|��|�||dd�
��dS)Nz#ff0000z#00ff00z#0000ffz#123456�red�green�blue�white�black�greyrMzunknown color name "spam"rGrI)rr4r5rYrCs     r�checkColorParamz"AbstractWidgetTest.checkColorParamgst�������"�I�y�)�����'�6�	#�	#�"�	#�	#�	#�	
���v�t�V�2�	�	4�	4�	4�	4�	4r!c��|j||ddddfi|��|�||d��|�||dd���dS)	N�arrow�watch�crossrF�nonerMzbad cursor spec "spam"rG)rDr7r@)rr4r5rCs    r�checkCursorParamz#AbstractWidgetTest.checkCursorParamosm�������w���"�N�N�v�N�N�N������f�-�-�-����v�t�V�/�	�	1�	1�	1�	1�	1r!c�z�d�}|||<|�||��|�||d��dS)Nc��dSr#�)�argss r�commandz5AbstractWidgetTest.checkCommandParam.<locals>.commandvs���Dr!rF)�
assertTruerD)rr4r5rls    r�checkCommandParamz$AbstractWidgetTest.checkCommandParamusN��	�	�	���t������t��%�%�%������r�*�*�*�*�*r!rGc�(�|j||g|�Ri|��|�dd|�dd�|dd����t|��dkrdnd�d|d��}|�||dd	|z�
��d|z}|�||d|�
��dS)
Nrz "{}": must be z, �����,rFz or �	ambiguousrG�badrM)rDrr3r@)rr4r5r=rBrC�errmsg2s       r�checkEnumParamz!AbstractWidgetTest.checkEnumParam|s��������9��9�9�9�&�9�9�9��>�>��D�D��I�I�f�S�b�S�k�*�*�*��v�;�;��?�?�C�C��2�2��2�J�J�	 �G�

�"�"�6�4��*5��*?�
#�
A�
A�
A��W�_�F����v�t�V�F��C�C�C�C�Cr!c�:�|�|j}|D]\}t}|}t|t��r)|r'|turt	|��|jz}t}|j|||f||d�|���]|�||dd���|�||dd���dS)N�r&r*�6xzbad screen distance "6x"rGrMzbad screen distance "spam")	�_conv_pixelsr.rrrr�roundr7r@)	rr4r5r*rBrCr r&�conv1s	         r�checkPixelsParamz#AbstractWidgetTest.checkPixelsParam�s����<��$�D��	2�	2�E� �H��E��%��%�%�
"��"�U�#�-�-�*�5�1�1�D�L�@�H�!�E��D�O�F�D�%�
2�(�!&�
2�
2�*0�
2�
2�
2�
2����v�t�T�1�	�	3�	3�	3����v�t�V�3�	�	5�	5�	5�	5�	5r!c
��|�||dddddd��d}tdkrd}|�||d	|�
��dS)N�flat�groove�raised�ridge�solid�sunkenzHbad relief "spam": must be flat, groove, raised, ridge, solid, or sunkenrrMrG)rDrr@)rr4r5r=s    r�checkReliefParamz#AbstractWidgetTest.checkReliefParam�su���������8�W�g�x�	Q�	Q�	Q�?�������F����v�t�V��	�	�	�	�	�	r!c��tj|jd���}|�|||t���|�||dd���d||<dS)N�image1)�masterr5rKrMzimage "spam" doesn't existrGrF)r/�
PhotoImagerr7rr@)rr4r5�images    r�checkImageParamz"AbstractWidgetTest.checkImageParam�sf���"�$�)�(�C�C�C�������e�#��6�6�6����v�t�V�4�	�	6�	6�	6���t���r!c�B�|�|||t���dS)NrK)r7r)rr4r5�vars    r�checkVariableParamz%AbstractWidgetTest.checkVariableParam�s"�������c���4�4�4�4�4r!c�&�|�|��|�|t��t|��dkr|�d|����|D]2}t|t��s|�d|����dS�3dS)Nr-zInvalid bounding box: )�assertIsNotNone�assertIsInstancerr3�failr�int)r�bbox�items   r�assertIsBoundingBoxz&AbstractWidgetTest.assertIsBoundingBox�s������T�"�"�"����d�E�*�*�*��t�9�9��>�>��I�I�I�D�D�:�;�;�;��	�	�D��d�C�(�(�
��	�	�	���>�?�?�?����
�	�	r!c��|���}|���}|�t|��t|�������|D]
}||�t
jjrwdddddd�}t|��}t|j	��}t||z
��D];}||vr|||vr
|||vst|jj�d|�d����:dSdS)	N�borderwidth�
background�
foreground�invalidcommand�validatecommand)�bd�bg�fg�invcmd�vcmdz.OPTIONS doesn't contain "�")
�create�keysr$�sortedr2�test�support�verbose�set�OPTIONS�print�	__class__�__name__)rr4r��k�aliasesr&s      r�	test_keyszAbstractWidgetTest.test_keys�s,���������{�{�}�}���������v�f�.>�.>�.@�.@�'A�'A�B�B�B��	�	�A��1�I�I�I��<��	8�#�"�"�*�)���G��t�9�9�D��4�<�(�(�H��D�8�O�,�,�
8�
8���W�����
�d�*�*���
�h�.�.���>�2�2�2�A�A�A�7�8�8�8��	8�	8�
8�
8r!r#)r��
__module__�__qualname__r{rz�_conv_pad_pixelsr�propertyrr�object�__eq__r)r.r7r@rDrJrrOrXrargrnrvr}r�r�r�r�r�rjr!rrrs��������L����J�
�!�!��X�!����26�&�-�0�0�0�0�
;D��$�1�1�1�1�1�(
-�
-�
-�
-�;�;�;�9�9�9�;@�H�H�H�H�H�@�@�@�<@�4�4�4�4�4�1�1�1�+�+�+�<@�D�D�D�D�D�#�5�5�5�5�5�$������5�5�5����8�8�8�8�8r!rc�J�eZdZdZd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
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!d �Z"d!�Z#d"�Z$d#�Z%d$�Z&d%�Z'd&�Z(d'�Z)d(�Z*d)�Z+d*�Z,d+�Z-d,�Z.d-�Z/d.�Z0d/�Z1d0�Z2d1�Z3d2�Z4d3�Z5d4�Z6d5�Z7d6S)7�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�Z�|���}|�|d��dS)Nr��r�ra�rr4s  r�test_configure_activebackgroundz4StandardOptionsTests.test_configure_activebackground��,�����������V�%7�8�8�8�8�8r!c
�f�|���}|�|ddddddd��dS)Nr�r��������?g333333@r���rH�r�r}r�s  r� test_configure_activeborderwidthz5StandardOptionsTests.test_configure_activeborderwidth��C�����������f�&9���c�1�b�%�	9�	9�	9�	9�	9r!c�Z�|���}|�|d��dS)Nr�r�r�s  r�test_configure_activeforegroundz4StandardOptionsTests.test_configure_activeforeground�r�r!c
�l�|���}|�|ddddddddd	d
��dS)Nr��n�ne�e�se�s�sw�w�nw�center�r�rvr�s  r�test_configure_anchorz*StandardOptionsTests.test_configure_anchor�sM�����������F�H��T�3��c�4��d�H�	F�	F�	F�	F�	Fr!c��|���}|�|d��d|jvr|�|d��dSdS)Nr�r��r�rar�r�s  r�test_configure_backgroundz.StandardOptionsTests.test_configure_background��V�����������V�\�2�2�2��4�<���� � ���.�.�.�.�.� �r!c��|���}|�|dd��|�|dd��tj�dd���}|�|dd|z��d|jj�d	d
��vrd|j���vs|�	|ddd
���dSdS)Nr��	questhead�gray50z
python.xbm�
imghdrdata)�subdir�@�aquar
�windowingsystem�AppKitrMzbitmap "spam" not definedrG)
r�r7r�r��findfilerr
r�winfo_serverr@)rr4�filenames   r�test_configure_bitmapz*StandardOptionsTests.test_configure_bitmap�s��������������+�6�6�6������(�3�3�3��<�(�(��l�(�K�K�������#��.�9�9�9��$�)�,�+�+�D�2C�D�D�D�D��D�I�2�2�4�4�4�4��"�"�6�8�V�6�
#�
8�
8�
8�
8�
8�5�4r!c
��|���}|�|ddddddd��d|jvr|�|ddddddd��dSdS)	Nr�rr��������@rr�rHr�)r�r}r�r�s  r�test_configure_borderwidthz/StandardOptionsTests.test_configure_borderwidthsu�����������f�m���c�1�b�%�	9�	9�	9��4�<����!�!�&�$��3��Q��E�J�J�J�J�J� �r!c
�f�|���}|�|ddddddd��dS)Nr��bottomr��leftrf�right�topr�r�s  r�test_configure_compoundz,StandardOptionsTests.test_configure_compoundsG�����������F�J��(�F�F�G�U�	D�	D�	D�	D�	Dr!c�Z�|���}|�|d��dS)Nr�)r�rgr�s  r�test_configure_cursorz*StandardOptionsTests.test_configure_cursor�+�����������f�h�/�/�/�/�/r!c�Z�|���}|�|d��dS)Nr�r�r�s  r�!test_configure_disabledforegroundz6StandardOptionsTests.test_configure_disabledforegrounds,�����������V�%9�:�:�:�:�:r!c�Z�|���}|�|d��dS)Nr��r�rXr�s  r�test_configure_exportselectionz3StandardOptionsTests.test_configure_exportselections,�����������v�'8�9�9�9�9�9r!c��|���}|�|dd��|�|ddd���dS)Nr�z3-Adobe-Helvetica-Medium-R-Normal--*-120-*-*-*-*-*-*rFzfont "" doesn't existrG)r�r7r@r�s  r�test_configure_fontz(StandardOptionsTests.test_configure_fontsd�������������M�	O�	O�	O����v�v�r�&>�	�	@�	@�	@�	@�	@r!c��|���}|�|d��d|jvr|�|d��dSdS)Nr�r�r�r�s  r�test_configure_foregroundz.StandardOptionsTests.test_configure_foreground&r�r!c�Z�|���}|�|d��dS)Nr�r�r�s  r�"test_configure_highlightbackgroundz7StandardOptionsTests.test_configure_highlightbackground,s,�����������V�%:�;�;�;�;�;r!c�Z�|���}|�|d��dS)Nr�r�r�s  r�test_configure_highlightcolorz2StandardOptionsTests.test_configure_highlightcolor0s,�����������V�%5�6�6�6�6�6r!c	��|���}|�|dddddd��|�|ddd|j���dS)	Nr�rr�r
rrHr�rx)r�r}r7rzr�s  r�!test_configure_highlightthicknessz6StandardOptionsTests.test_configure_highlightthickness4sk�����������f�&:���c�1�e�	5�	5�	5����� 4�b�1�!�.�	�	0�	0�	0�	0�	0r!c�Z�|���}|�|d��dS)Nr��r�r�r�s  r�test_configure_imagez)StandardOptionsTests.test_configure_image;s+�����������V�W�-�-�-�-�-r!c�Z�|���}|�|d��dS)Nr�r�r�s  r�test_configure_insertbackgroundz4StandardOptionsTests.test_configure_insertbackground?r�r!c
�f�|���}|�|ddddddd��dS)Nr�rr�r
rr�rHr�r�s  r� test_configure_insertborderwidthz5StandardOptionsTests.test_configure_insertborderwidthCr�r!c�\�|���}|�|dd��dS)Nr��d�r�rJr�s  r�test_configure_insertofftimez1StandardOptionsTests.test_configure_insertofftimeHs-�����������v���<�<�<�<�<r!c�\�|���}|�|dd��dS)Nr�r,r-r�s  r�test_configure_insertontimez0StandardOptionsTests.test_configure_insertontimeLs-�����������v�~�s�;�;�;�;�;r!c�b�|���}|�|ddddd��dS)Nr�r�r
r�rHr�r�s  r�test_configure_insertwidthz/StandardOptionsTests.test_configure_insertwidthPs3�����������f�m�S�#�r�5�I�I�I�I�Ir!c�Z�|���}|�|d��dS)Nr�rr�s  r�test_configure_jumpz(StandardOptionsTests.test_configure_jumpTs+�����������v�v�.�.�.�.�.r!c��|���}|�|ddddd���|�|ddd���dS)	Nr�rrr�z6bad justification "{}": must be left, right, or centerrGrFz:ambiguous justification "": must be left, right, or center)r�rvr@r�s  r�test_configure_justifyz+StandardOptionsTests.test_configure_justifyXso�����������F�I�v�w��0�	�	1�	1�	1�	
���v�y�"�0�	�	1�	1�	1�	1�	1r!c��|���}|�t|d��|j��|�|ddd��dS)Nr��
horizontal�vertical)r�r$r�default_orientrvr�s  r�test_configure_orientz*StandardOptionsTests.test_configure_orientasU������������V�H�-�.�.��0C�D�D�D����F�H�l�J�G�G�G�G�Gr!c
�r�|���}|�|dddddd|j���dS)Nr��皙����@�ffffff@r��12mrK�r�r}r�r�s  r�test_configure_padxz(StandardOptionsTests.test_configure_padxf�J�����������f�f�a��c�2�u�#'�#8�	�	:�	:�	:�	:�	:r!c
�r�|���}|�|dddddd|j���dS)Nr�r=r>r?r�r@rKrAr�s  r�test_configure_padyz(StandardOptionsTests.test_configure_padykrCr!c�Z�|���}|�|d��dS)Nr��r�r�r�s  r�test_configure_reliefz*StandardOptionsTests.test_configure_reliefprr!c�^�|���}|�|ddd��dS)Nr�������r-r�s  r�test_configure_repeatdelayz/StandardOptionsTests.test_configure_repeatdelayts/�����������v�}�d�C�@�@�@�@�@r!c�^�|���}|�|ddd��dS)Nr�rJrKr-r�s  r�test_configure_repeatintervalz2StandardOptionsTests.test_configure_repeatintervalxs0�����������v�'7��s�C�C�C�C�Cr!c�Z�|���}|�|d��dS)Nr�r�r�s  r�test_configure_selectbackgroundz4StandardOptionsTests.test_configure_selectbackground|r�r!c�b�|���}|�|ddddd��dS)Nr�r�r
r�rHr�r�s  r� test_configure_selectborderwidthz5StandardOptionsTests.test_configure_selectborderwidth�s4�����������f�&9�3��R��O�O�O�O�Or!c�Z�|���}|�|d��dS)Nr�r�r�s  r�test_configure_selectforegroundz4StandardOptionsTests.test_configure_selectforeground�r�r!c�Z�|���}|�|d��dS)Nr�rr�s  r�test_configure_setgridz+StandardOptionsTests.test_configure_setgrid��+�����������v�y�1�1�1�1�1r!c�`�|���}|�|dddd��dS)N�state�active�disabled�normalr�r�s  r�test_configure_statez)StandardOptionsTests.test_configure_state�s1�����������F�G�X�z�8�L�L�L�L�Lr!c�`�|���}|�|dddd��dS)Nr��0�1rF�r�rDr�s  r�test_configure_takefocusz-StandardOptionsTests.test_configure_takefocus�s1�������������c�3��;�;�;�;�;r!c�^�|���}|�|ddd��dS)Nr�rFz
any stringrar�s  r�test_configure_textz(StandardOptionsTests.test_configure_text�s/��������������\�:�:�:�:�:r!c��|���}tj|j��}|�|d|��dS)Nr�)r�r/�	StringVarrr��rr4r�s   r�test_configure_textvariablez0StandardOptionsTests.test_configure_textvariable�s?�����������	�*�*��������<�<�<�<�<r!c�Z�|���}|�|d��dS)Nr�r�r�s  r�test_configure_troughcolorz/StandardOptionsTests.test_configure_troughcolor��+�����������V�]�3�3�3�3�3r!c�`�|���}|�|dddd��dS)Nr�rrT�
r-r�s  r�test_configure_underlinez-StandardOptionsTests.test_configure_underline�s1�����������v�{�A�q�"�=�=�=�=�=r!c�\�|���}|�|dd��dS)Nr�r,r�r�s  r�test_configure_wraplengthz.StandardOptionsTests.test_configure_wraplength�s-�����������f�l�C�8�8�8�8�8r!c�Z�|���}|�|d��dS)Nr��r�rnr�s  r�test_configure_xscrollcommandz2StandardOptionsTests.test_configure_xscrollcommand��,�����������v�'7�8�8�8�8�8r!c�Z�|���}|�|d��dS)Nr�rrr�s  r�test_configure_yscrollcommandz2StandardOptionsTests.test_configure_yscrollcommand�rtr!c�Z�|���}|�|d��dS)Nrlrrr�s  r�test_configure_commandz+StandardOptionsTests.test_configure_command�rWr!c�Z�|���}|�|d��dS)N�indicatoronrr�s  r�test_configure_indicatoronz/StandardOptionsTests.test_configure_indicatoron�s+�����������v�}�5�5�5�5�5r!c�Z�|���}|�|d��dS)N�	offreliefrGr�s  r�test_configure_offreliefz-StandardOptionsTests.test_configure_offrelief�s+�����������f�k�2�2�2�2�2r!c�Z�|���}|�|d��dS)N�
overreliefrGr�s  r�test_configure_overreliefz.StandardOptionsTests.test_configure_overrelief�s+�����������f�l�3�3�3�3�3r!c�Z�|���}|�|d��dS)N�selectcolorr�r�s  r�test_configure_selectcolorz/StandardOptionsTests.test_configure_selectcolor�rkr!c�Z�|���}|�|d��dS)N�selectimager%r�s  r�test_configure_selectimagez/StandardOptionsTests.test_configure_selectimage�rkr!c�Z�|���}|�|d��dS)N�
tristateimager%r�s  r�test_configure_tristateimagez1StandardOptionsTests.test_configure_tristateimage�s+�����������V�_�5�5�5�5�5r!c�\�|���}|�|dd��dS)N�
tristatevalue�
unknowable)r�r7r�s  r�test_configure_tristatevaluez1StandardOptionsTests.test_configure_tristatevalue�s+��������������>�>�>�>�>r!c��|���}tj|j��}|�|d|��dS)N�variable)r�r/�	DoubleVarrr�rgs   r�test_configure_variablez,StandardOptionsTests.test_configure_variable�s?�����������	�*�*������
�C�8�8�8�8�8r!N)8r�r�r��STANDARD_OPTIONSr�r�r�r�r�rrrrrrrrrr!r#r&r(r*r.r0r2r4r6r;rBrErHrLrNrPrRrTrVr]rbrdrhrjrnrprsrvrxr{r~r�r�r�r�r�r�rjr!rr�r��sF��������9�9�9�9�9�9�
9�9�9�F�F�F�
/�/�/�8�8�8�K�K�K�D�D�D�
0�0�0�;�;�;�:�:�:�@�@�@�/�/�/�<�<�<�7�7�7�0�0�0�.�.�.�9�9�9�9�9�9�
=�=�=�<�<�<�J�J�J�/�/�/�1�1�1�H�H�H�
:�:�:�
:�:�:�
0�0�0�A�A�A�D�D�D�9�9�9�P�P�P�9�9�9�2�2�2�M�M�M�<�<�<�;�;�;�=�=�=�
4�4�4�>�>�>�9�9�9�9�9�9�9�9�9�2�2�2�6�6�6�3�3�3�4�4�4�4�4�4�4�4�4�6�6�6�?�?�?�9�9�9�9�9r!r�c��eZdZd�Zd�ZdS)�IntegerSizeTestsc�`�|���}|�|dddd��dS)N�heightr,���rr-r�s  r�test_configure_heightz&IntegerSizeTests.test_configure_height�s1�����������v�x��d�A�>�>�>�>�>r!c�`�|���}|�|dddd��dS)N�width��n���rr-r�s  r�test_configure_widthz%IntegerSizeTests.test_configure_width�s1�����������v�w��T�1�=�=�=�=�=r!N�r�r�r�r�r�rjr!rr�r��s2������?�?�?�>�>�>�>�>r!r�c��eZdZd�Zd�ZdS)�PixelSizeTestsc
�f�|���}|�|ddddddd��dS)Nr�r,g�����LY@gfffff�Y@r�r�3cr�r�s  rr�z$PixelSizeTests.test_configure_height�s7�����������f�h��U�E�4��D�Q�Q�Q�Q�Qr!c
�f�|���}|�|ddddddd��dS)Nr�r�gfffff6y@g�����Iy@r�r�5ir�r�s  rr�z#PixelSizeTests.test_configure_width�s7�����������f�g�s�E�5�$��4�P�P�P�P�Pr!Nr�rjr!rr�r��s:������R�R�R�Q�Q�Q�Q�Qr!r�c����fd�}|S)Nc
������jD]l}d|z}t�|��sU�D]3}t||��r!t�|t||����n �4|f�fd�	}||_t�||���m�S)N�test_configure_c�p��|���}||td|�d�j�����)NzOption "z" is not tested in )r��AssertionErrorr�)r�optionr4�clss   �rr�z5add_standard_options.<locals>.decorator.<locals>.test�sC���!%�������v���,�n�.4�f�f�c�l�l�.D�E�E�Er!)r��hasattr�setattr�getattrr�)r�r��
methodname�source_classr��source_classess`    �r�	decoratorz'add_standard_options.<locals>.decorator�s������k�	3�	3�F�*�V�3�J��3�
�+�+�

3�$2�3�3�L��|�Z�8�8����Z� '��j� A� A�C�C�C����
+1�E�E�E�E�E�E�
%/�D�M��C��T�2�2�2���
r!rj)r�r�s` r�add_standard_optionsr��s$��������$�r!c��tjjr;tj��}td|�dd��d���dSdS)Nzpatchlevel =�info�
patchlevelT)�flush)r�r�r�r/�Tclr�r)�tcls r�setUpModuler�sP���|��J��k�m�m��
�n�c�h�h�v�|�<�<�D�I�I�I�I�I�I�J�Jr!)�unittestr/�tkinter.test.supportrrrr�test.supportr�r�r.rr�r�r�r�r�rjr!r�<module>r�sW����������;�;�;�;�;�;�;�;�;�;�;�;�����
�F�H�H�	�D8�D8�D8�D8�D8��D8�D8�D8�NC9�C9�C9�C9�C9�C9�C9�C9�L>�>�>�>�>�>�>�>�Q�Q�Q�Q�Q�Q�Q�Q����0J�J�J�J�Jr!

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