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 :  C:/Python315/Lib/test/test_tkinter/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/test_tkinter/__pycache__/test_misc.cpython-315.opt-2.pyc
R
>lqj�/c�F�]PHs]PHs]PHs]PHs]PHs]PHs]PHs]PH s]PH$s	]QH$G
s
]PH,s]QH0G
s
]QH8Gs]QH@Gs]QHHGs]QHHGsGsGsGsGs\
O2Q2QQ	\\O42sQ
Q\\O42sQQ
\\O42sQQ\\O42sQQ\\O42sQQ\\O42s QQ\\O42s!QQks"\#Q6Xc\OH2P!P!)�)�TclError)�support)�	os_helper)�assert_python_ok)�setUpModule)�AbstractTkTest�AbstractDefaultRootTest�requires_tk�get_tk_patchlevel�tcl_version�guic�d`�\sQs]snQsQsQsQs\]]]2Q2s	\]]]2Q2s
QsQsQ	s
Q
sQsQsQ
sQsQsQsQsQsQsQsQsQsQsQsQsQsQsQs Qs!Qs"Qs#Q s$Q!s%Q"s&Q#s'Q$s(Q%s)Q&s*Q's+Q(s,Q)s-Q*s.Q+s/Q,s0Q-s1Q.s2Us3P!)/�MiscTestc��UOQ[O2UOQ[O2UO[O2UOQ[O2UOQ[O2UOQ[O2UOQ[O2UOQ[O2P!)�Widget�CASCADE�re�sys�	constants�_tkerror�wantobjects)�assertIn�tkinter�__all__�assertIsNotNoner�assertNotIn��selfs&�0C:\Python315\\Lib\test\test_tkinter\test_misc.py�test_all�MiscTest.test_alls����
�
�h����0��
�
�i����1����W�_�_�-�����w���/��������0�����g�o�o�6�����W�_�_�5��������8�c��[OUOQQ5o[OUQQ5oUO	[U2Q2P!)�top��name�childz!<tkinter.Frame object .top.child>)r�Toplevel�root�Frame�assertEqual�repr)r�t�fs&  r�	test_repr�MiscTest.test_repr&s=�����T�Y�Y�U�3���M�M�!�'�*������a��"E�Fr!c
���QQ[O2o[OUO2o[OU2o[OU2oUO[
U2[
U22[OU2oUU2o[
U2OQ2[
U2OQ2*FD-oUOUO2[U2Q5J/	[OU2oUU2o	UO[[
U2[
U2[
U2[
U	2.2]2P!)c��\sQs],sQsP!)�.MiscTest.test_generated_names.<locals>.Button2�)�__name__�
__module__�__qualname__�__firstlineno__�__static_attributes__r3r!r�Button2r2,s��r!r9�.)�msg)
r�Buttonr'r(r)�assertNotEqual�str�split�assertFalse�isidentifierr+r*�len)
rr9r,r-�f2�b�b2r%�b3�b4s
&         r�test_generated_names�MiscTest.test_generated_names+s��	�g�n�n�	�
���T�Y�Y�'���M�M�!���
�]�]�1�
�����C��F�C��G�,��N�N�2���
�R�[����F�L�L��%��B��
�
�c�(:�:�:�D����T�.�.�0�d�4�j��A�;�
�^�^�B�
��
�R�[������c�!�f�c�"�g�s�2�w��B��@�A�1�Er!c�
�[OQ2o[QU2vq#oUOUO	2Q2[
O%f'UOQU2UOQU2P!P!)a�
            import threading
            import tkinter
            root = tkinter.Tk()
            root.destroy()
            # Let another thread drop the last reference.
            ready = threading.Event()
            t = threading.Thread(target=lambda obj: ready.wait(), args=(root,))
            t.start()
            del root
            ready.set()
            t.join()
            print('ok')
        z-csoksRuntimeWarningsgh-83274)�textwrap�dedentrr*�stripr�Py_GIL_DISABLEDr)r�script�rc�out�errs&    r�test_dealloc_in_wrong_thread�%MiscTest.test_dealloc_in_wrong_thread;so�����
"�

��(��f�5�����������e�,��&�&�&�

�M�M�+�S�1��M�M�+�s�+�
'r!c��UOo[OUQQ5o[OU2oUO2UO2[OU2oUO2UO2UO
[Q29^tt^2UOQQ5PPP2UO
[Q29^tt^2UOQ2PPP2UO
[Q29^tt^2UOQ2PPP2UOUO2[2UOUO22UOUO22UOUO22UOUO22UOV"O!22UOV"O!Q22UO#V"O!Q22UO%2UOUO22UOUO!22QoUO
[U29^tt^2UO2PPP2UO
[U29^tt^2UO%2PPP2P!)%fhCK@9h)%fhCK9h)%fhCK�9h)%fhK�9h)%fhP!9h)	�myframer$zunknown option "-spam"�eggs��spamrYz*.m?f*mez*spam�can(no|')t find busy window.*)r(rr)�packr<�tk_busy_hold�assertRaisesRegexr�tk_busy_configure�tk_busy_cget�assertIsInstance�dict�
assertTrue�tk_busy_statusr@r�tk_busy_currentr�tk_busy_forget)rr(r-rCrD�errmsgs&     r�test_tk_busy�MiscTest.test_tk_busyVsK���y�y���M�M�$�Y�/��
�]�]�4�
 ��	����
���	��N�N�1���	����	����
�
#�
#�H�.F�
G�
G�
���V��,�H�
�
#�
#�H�.F�
G�
G�
�N�N�6�"�H�
�
#�
#�H�.F�
G�
G�
����'�H����a�1�1�3�T�:�����(�(�*�+�����,�,�.�/�����*�*�,�-�����)�)�+�,��
�
�a�*�*�,�-��
�
�a�*�*�:�6�7�����-�-�g�6�7�	��������)�)�+�,�����*�*�,�-�1��
�
#�
#�H�f�
5�
5�
���!�6�
�
#�
#�H�f�
5�
5�
����6�
5�-H�
G�
G��
G�
G�
G��
G�
G�
G�� 6�
5��
5�
5�
5�sZ�0K:�)L�!L"�(L6�M	�:L	�L	�L	�L	�"L3	�+L3	�6M	�?M	�	M	�M	c���UOoUOQ6XcUOQ2[OUQQ5oUO2UO
QQ5UOUOQ2Q2UOQQ5UOUOQ2Q2UOUO2Q*]*Q2UOUOQ2]*Q2UO2QoUO[U29^tt^2UOQ2PPP2P!)%fhP!9h)	�aquaz.the cursor option is not supported on OSX/AquarVr$�gumby)�cursorrl�heartrZ)
r(�_windowingsystem�skipTestrr)r[r\r*r_r^rer]r)rr(r-rfs&   r�test_tk_busy_with_cursor�!MiscTest.test_tk_busy_with_cursorys���y�y��� � �F�*��M�M�J�K��M�M�$�Y�/��	����	���g��&��������1�7�;�	���7��+��������1�7�;�����,�,�.�x�8��;�W�E�����,�,�X�6�q�9�7�C�	����1��
�
#�
#�H�f�
5�
5�
�N�N�8�$�6�
5�
5�
5�s�E � E1	�)E1	c��UOoUOQ2UOUQ*Q2UOQ2UOUQ*Q2UO[O
QUOQ2UOQQ5UOUQ*Q2UOQQQ5UOUQ*Q2UOUQ	*Q2UOQQQ5UOUQ*Q2UOUQ	*Q2UO[O
QUOQQ5UO[O
Q
UOQQ5UO[O
Q
UOQQ5P!)
�black�
background�whitez^unknown color name "spam"$rY)rt�blue�yellow)rt�highlightColor�highlightcolorz!^must specify a background color$rX)rx)r(�
tk_setPaletter*r]rr�rr(s& r�test_tk_setPalette�MiscTest.test_tk_setPalette�s����y�y�����7�#�����l�+�W�5����7�#�����l�+�W�5����w�/�/�-��"�"�F�	,�	
���g��.�����l�+�W�5����f�X��F�����l�+�V�4�����.�/��:����h�v��F�����l�+�X�6�����.�/��8����w�/�/�-��"�"�v�	�	7�	
���w�/�/�3��"�"��	�	2�	
���w�/�/�3��"�"�6�	�	;r!c��`�UOoQQ]-U1QkkkoUOUO]22]nUO]U2oUOV1OOQQ22UOO
UOOQQU22vqEUO2UOR]2UO[O29^tt^2UOOU2PPP2]nUO]U]*]2oUO2UOR]52UOQU2oUOV1OOQQ22UOO
UOOQQU22vqEUOU2UOR]52UO[O29^tt^2UOOU2PPP2]nUO][OU]*]22oUO2UOR]52]nUO]U]*]]Q5oUO2UOR]62P!)%fhCK�9h)%fhK�9h)r�endc�(:�V*U*nP!�Nr3��start�stepr�counts&&$�r�callback�%MiscTest.test_after.<locals>.callback������L�3�&�Er!�after�info���r�r�r�)r(�assertIsNoner�r�tk�call�	splitlist�updater*�assertRaisesrr�after_cancel�	functools�partial)rr(r��timer1rO�_r�s&     @r�
test_after�MiscTest.test_after�s1����y�y��	'�Q�	'�	'�
	
���$�*�*�Q�-�(������A�x�(���
�
�f�g�g�l�l�7�F�;�<��g�g�'�'������W�f�f�(M�N������
������"�
�
�
�w�/�/�
0�
0��G�G�L�L�� �1������A�x��R�0�����
������#����D�(�+���
�
�f�g�g�l�l�7�F�;�<��g�g�'�'������W�f�f�(M�N������&�!������#�
�
�
�w�/�/�
0�
0��G�G�L�L�� �1������A�y�0�0��2�r�B�C�����
������#������A�x��"�!��<�����
������#�91�
0�
0��1�
0�s$�;K�K�K	�K	�K&	�K&	c��`�UOoQQ]-U1Qkkko]nUOU2oUOV1OO	QQ22UOOUOO	QQU22vqEUO
2UOR]2UO[O29^tt^2UOO	U2PPP2]nUOU]*]2oUO
2UOR]52UOU2oUOV1OO	QQ22UOOUOO	QQU22vqEUOU2UOR]52UO[O29^tt^2UOO	U2PPP2]nUOU]*]]Q5oUO2UOR]62P!)%fhCKe9h)%fhK_9h)rrc�(:�V*U*nP!r�r3r�s&&$�rr��*MiscTest.test_after_idle.<locals>.callback�r�r!r�r�r�r�)
r(�
after_idlerr�r�r��update_idletasksr*r�rrr�r�)rr(r��idle1rOr�r�s&     @r�test_after_idle�MiscTest.test_after_idle�s�����y�y��	'�Q�	'�	'�
������)���
�
�e�W�W�\�\�'�6�:�;��g�g�'�'������W�f�e�(L�M������������"�
�
�
�w�/�/�
0�
0��G�G�L�L�� �1�������"�b�1�����������#�����)���
�
�e�W�W�\�\�'�6�:�;��g�g�'�'������W�f�e�(L�M������%� ������#�
�
�
�w�/�/�
0�
0��G�G�L�L�� �1�������"�2�1��=�����
������#�-1�
0�
0��1�
0�s$�I�3I&�I#	�I#	�&I6	�/I6	c�R`�UOoU1QkoUOQU2oUOU2oUO[29^tt^2UOP2PPP2]nUOOUOOQQU22vqVUOOU2UOR]2UOU2UO[O29^tt^2UOOU2PPP2UOR]2UO[O29^tt^2UOOQQU2PPP2UOU2]nUOOUOOQQU22vqVUOOU2UOR]2UOU2UO[O29^tt^2UOOU2PPP2UOR]2UO[O29^tt^2UOOQQU2PPP2P!)%fhCKh9h)%fhCK�9h)%fhCKn9h)%fhK�9h)%fhP!9h)c�:�R]*
nP!�r�r3)r�s�rr��,MiscTest.test_after_cancel.<locals>.callbacks����Q�J�Er!�r�r�)r(r�r�r��
ValueErrorr�r�r�r�r*rr)rr(r�r�r�rOr�r�s&      @r�test_after_cancel�MiscTest.test_after_cancel�s3����y�y��	����D�(�+������)���
�
�z�
*�
*����d�#�+����g�g�'�'������W�f�f�(M�N��������V�������"����&�!�
�
�
�w�/�/�
0�
0��G�G�L�L�� �1������"�
�
�
�w�/�/�
0�
0��G�G�L�L��&�&�1�1�	
���&�!����g�g�'�'������W�f�e�(L�M��������V�������"����%� �
�
�
�w�/�/�
0�
0��G�G�L�L�� �1������"�
�
�
�w�/�/�
0�
0��G�G�L�L��&�%�0�1�
0�7+�
*�
*��1�
0�
0��1�
0�
0��1�
0��1�
0�
0�sZ�K�K�+K.�L�L�K	�K	�K+	�#K+	�.K?	�7K?	�L	�L	�L&	�L&	c�P�UOoUOUO2Q2UO]Q2oUOUO2U12UO	U2UOQQ2oUOQQ2oUOQ2oUOUO2VTU12UOU2oUO[
U2]2UOU]*Q2UOU2oUO[
U2]2UOU]*Q2UO	U2UO[O29^tt^2UOU2PPP2UO	U2UO[O29^tt^2UOU2PPP2UO	U2UO[O29^tt^2UOU2PPP2UOUO2Q2P!)%fhK�9h)%fhK�9h)%fhKX9h)	r�c��Q!��breakr3r3r!r�<lambda>�*MiscTest.test_after_info.<locals>.<lambda>.s��gr!r�c��Q!r�r3r3r!rr�r�4���'r!c��Q!r�r3r3r!rr�r�5r�r!c��Q!r�r3r3r!rr�r�6s��r!�timer�idler3)
r(r*�
after_infor�r�r�rBr�rr)rr(r�r��timer2r��timer1_info�
idle1_infos&       r�test_after_info�MiscTest.test_after_info's����y�y��	
������*�B�/��
�
�1�o�.��	
������*�U�I�6����%� ����D�/�2�����D�/�2������0��������*�U�F�,C�D��o�o�f�-������[�)�1�-�����Q���1��_�_�U�+�
�����Z��!�,�����A���/����&�!�
�
�
�w�/�/�
0�
0��O�O�F�#�1����&�!�
�
�
�w�/�/�
0�
0��O�O�F�#�1����%� �
�
�
�w�/�/�
0�
0��O�O�E�"�1�	
������*�B�/�1�
0��1�
0��1�
0�s6�I/�!J�3J�/I?	�8I?	�J	�J	�J%	�J%	c���UOoUO2UOQ2UOUO	2Q2UOQ2UOUO	2Q2UO2UO[O29^tt^2UO	2PPP2P!)%fhP!9h)uÙñîuçōđěuÙñîçōđě�r(�clipboard_clear�clipboard_appendr*�
clipboard_getr�rrr{s& r�test_clipboard�MiscTest.test_clipboardOs����y�y���������h�'�����+�+�-�x�8����j�)�����+�+�-�/?�@�����
�
�
�w�/�/�
0�
0���� �1�
0�
0�
0���7C�C#	�C#	c���UOoUO2UOQ2UOUO	2Q2UOQ2UOUO	2Q2UO2UO[O29^tt^2UO	2PPP2P!)%fhP!9h)u𝔘𝔫𝔦u𝔠𝔬𝔡𝔢u𝔘𝔫𝔦𝔠𝔬𝔡𝔢r�r{s& r�test_clipboard_astral�MiscTest.test_clipboard_astralZs����y�y���������n�-�����+�+�-�~�>����0�1�����+�+�-�/M�N�����
�
�
�w�/�/�
0�
0���� �1�
0�
0�
0�r�c�`�UOUOOQ2]*2UOUOO]*2]*2UOUOOQ2Q2UO[UOOQ2P!)�42z-5rY���)r*r(�getintr�r�rs&r�test_getint�MiscTest.test_getintes{��������)�)�$�/��4�������)�)�"�-�r�2�������)�)�$�/��4����*�d�i�i�&6�&6��?r!c�
�UOUOOQ2Q2UOUOO]2Q2UO[UOOQ2P!)z3.5g@g@rY)r*r(�	getdoubler�r�rs&r�test_getdouble�MiscTest.test_getdoubleks\��������,�,�U�3�S�9�������,�,�Q�/��5����*�d�i�i�&9�&9�6�Br!c��UOOQQ2UOUOOQ2Q2P!)�test_var�hello)r(�setvarr*�getvarrs&r�test_getvar�MiscTest.test_getvarps5���	�	����W�-�������)�)�*�5�w�?r!c�`�,nU1QkoUOOU2oUOU[2UO	UOO
O
U2Q2UO	R],2UOOU2UO[UOO
OU2P!)c�,:�RO]2Q!)r�rY��append)�results�rr��(MiscTest.test_register.<locals>.callbackvs����M�M�!��r!rY)
r(�registerr`r>r*r�r��
deletecommandr�r)rr�r%r�s&  @r�
test_register�MiscTest.test_registerts������	��y�y�!�!�(�+�����d�C�(���������*�*�4�0�&�9�����!��%��	�	����%����(�D�I�I�L�L�$5�$5�t�<r!c��[O2oQo[OU2oUOOQU2==[O2UOU22P!)c��P!��r3r3r!rr��5MiscTest.test_createcommand_no_leak.<locals>.<lambda>�s��2r!�cb)	r�Tcl�weakref�refr��
createcommandr�
gc_collectr�)r�interpr�r�s&   r�test_createcommand_no_leak�#MiscTest.test_createcommand_no_leak�sW����������k�k�(�#���	�	����h�/��f��������#�%� r!c���UOUOO2UOOQQ2[O
UO2oUO
UOQQ2Q2UO
UOQQ2P2UOO2UO
UOQQ2P2P!)z*Button.background�redrt�
Background�
foreground�
Foreground)�
addCleanupr(�option_clear�
option_addrr<r*�
option_get�rrDs& r�test_option�MiscTest.test_option�s�������	�	�.�.�/��	�	���1�5�9��N�N�4�9�9�%��������l�L�A�5�I�������l�L�A�2�F��	�	��� �������l�L�A�2�Fr!c�R�UOUOO2UO[O[O
2[
[O
Q29^tt^2oUOQ2PPP2UOO[O
2[OUO2oUOUOQQ2Q2UO[UOO[O
Q*2UO[UOO2UO[UOOQQQ2P!)%fhCK9h)	�wz*Button.background: red
rtr�r��.nonexistent�arD�c)r�r(r�r�unlink�TESTFN�open�write�option_readfilerr<r*r�r�r�	TypeError�rr-rDs&  r�test_option_readfile�MiscTest.test_option_readfile�s������	�	�.�.�/����	�(�(�)�*:�*:�;�
�)�"�"�C�
(�
(�A�
�G�G�/�0�)��	�	�!�!�)�"2�"2�3��N�N�4�9�9�%��������l�L�A�5�I����(�D�I�I�$=�$=�#�*�*�^�;�	=����)�T�Y�Y�%>�%>�?����)�T�Y�Y�%>�%>��S�#�N�)�
(�
(�s�7F�F&	�F&	c�`�[OUOQQ5oUOUOO	Q2U2UOUOO	[U22U2UO
[UOOQ2P!)�btnr$r)rr<r(�assertIs�nametowidgetr>r��KeyErrorr�s& r�test_nametowidget�MiscTest.test_nametowidget�sp���N�N�4�9�9�5�1���
�
�d�i�i�,�,�U�3�Q�7��
�
�d�i�i�,�,�S��V�4�a�8����(�D�I�I�$:�$:�N�Kr!c�f```�[ORO2o[OU]Q5oUOQUQ5[OU]Q5oUOQUQ5UROQ$ROO	2VU.o,nUUU1QknRQ2RO[9PIcQR2D%fJP	L	P
LQR222RFD.oROROOU2U2J0	P!)	r��tearoff�File)�label�menu�Morerc��:�ROOOROOOQQU22FDoRO	U2RU2J	P!)�winfo�children)r(r�r�r�r�)�parentr%�clones�collectrs& ���rr�6MiscTest.test_nametowidget_menu_clone.<locals>.collect�sO����	�	���.�.��I�I�L�L�%�%�g�z�6�B�D���
�
�d�#���
�Dr!r:c3�8�SF �DoQU7w�	J
	P!3h)�#r3)�.0r%s& r�	<genexpr>�8MiscTest.test_nametowidget_menu_clone.<locals>.<genexpr>�s��F���F�D�C�4�K�F�s�)	r�Menur(�add_cascader�rb�anyrr)r�menubar�filemenu�submenu�	originalsr%rrsf     @@r�test_nametowidget_menu_clone�%MiscTest.test_nametowidget_menu_clone�s����
�,�,�t�y�y�)���<�<���3�����&�x��8��,�,�x��3�����6���8�#��	�	�&���	�	�"�"�$���0�	���	�
	��������;�F�;����;�F�;�;�<��D��M�M�$�)�)�0�0��6�	�B�r!c�:�[OUO]�]dQ5oUO2UOO	2UOO2UO
2UOO2UOUOO2U2UOUOO2U2UOUO2U2[OU2oUO2UOO2UO2UOO2UOUOO2U2P!)���width�height)rr)r(r[�wait_visibilityr��focus_forcer�r�	focus_get�focus_displayof�
focus_lastforr<�	focus_setr	s&  r�test_focus_methods�MiscTest.test_focus_methods�s���M�M�$�)�)�3�s�;��	�����	�	�!�!�#��	�	�"�"�$�	�
�
���	�	�����
�
�d�i�i�)�)�+�Q�/��
�
�d�i�i�/�/�1�1�5��
�
�a�o�o�'��+��N�N�1���	�����	�	����	���
��	�	�����
�
�d�i�i�)�)�+�Q�/r!c���[OUO]Q5oUOQQ5UOOOQ[
U2]]2oUOUOOO
QU2UOO2UO[UOOU2UOOOQQU2UOO2UOUOO22UOUOO22P!)r�r�Hello)rztk::TearOffMenu�destroy�focusz-force)rr&r(�add_commandr�r�r>r�r�r�rrr�r6r7)rrrs&  r�test_focus_methods_unresolvable�(MiscTest.test_focus_methods_unresolvable�s����|�|�D�I�I�q�1�����w��'��)�)�,�,�#�#�$5�s�4�y�!�Q�G������	�	���)�)�9�g�>��	�	�������(�D�I�I�$:�$:�G�D��	�	�����'�8�W�5��	�	�������$�)�)�-�-�/�0����$�)�)�3�3�5�6r!c��[OUO2oUO2UOO	2UOUOO
22UOUO22UO2UOUO2Q2UOUOO
2U2UO2UOUO22UOUOO
22P!)�local)rr)r(r[r4r��grab_current�grab_status�grab_setr*r�grab_release�rr-s& r�	test_grab�MiscTest.test_grab�s����M�M�$�)�)�$��	�����	�	�!�!�#����$�)�)�0�0�2�3����!�-�-�/�*�	�
�
���������'�2��
�
�d�i�i�,�,�.��2�	�������!�-�-�/�*����$�)�)�0�0�2�3r!c�X�UOO2UOUOO2UO2[O
UO2oUO2UOUOO2U2P!r�)r(�
selection_ownr�selection_own_getrr)rIs& r�test_selection_own�MiscTest.test_selection_own�sh���	�	���!��
�
�d�i�i�1�1�3�T�Y�Y�?��M�M�$�)�)�$��	�����
�
�d�i�i�1�1�3�Q�7r!c��UOUOOQ2UOOQQQ2UO	UOOQ2Q2UO
QUOO22UOOQQ2UO	UOOQ2Q2UOOQ2UO	UOOQ2Q2UO[UOO2P!)z
<<TestEvent>>z<Control-z>z<Control-y>)�<Control-Key-z>z<Control-Key-y>)rRr3)	r�r(�event_delete�	event_addr*�
event_inforr�rrs&r�test_event_add_delete_info�#MiscTest.test_event_add_delete_info�s�������	�	�.�.��@��	�	���O�]�M�J�������-�-�o�>�?�	A��
�
�o�t�y�y�';�';�'=�>��	�	����
�>�������-�-�o�>�-�	/��	�	����/�������-�-�o�>��C����)�T�Y�Y�%;�%;�<r!c��UOO2UOOUOQ5P!)��	displayof)r(�bellrs&r�	test_bell�MiscTest.test_bells&���	�	�����	�	�������+r!c�B�[OUO2oUO2[	]2Tt,tFDo[O
U2MJ	ooSFDoUO2J	UP*O
2UOU]*O2U]*2UOU]*O2U]*2UOU]*O2U]*2UOU]*O2U]*2UO[U]*OQ2UO[U]*OQ2P!ttoh)��x)rr)r(r[�range�Entryr4r�tk_focusNext�tk_focusPrevr�r)rr-r��entries�entrys&    r�test_tk_focusNext_focusPrev�$MiscTest.test_tk_focusNext_focusPrevs���M�M�$�)�)�$��	����-2�1�X�6�X��7�=�=��#�X��6��E��J�J�L��	���#�#�%��
�
�g�a�j�-�-�/����<��
�
�g�a�j�-�-�/����<��
�
�g�a�j�-�-�/����<��
�
�g�a�j�-�-�/����<����)�W�Q�Z�%<�%<�c�B����)�W�Q�Z�%<�%<�c�B��7s�!Fc��UOUOOP
2UOUOO2P
2UOUOOP	2P	2UOUOO2P	2UOUOOP
2P
2UO	[
UOO]]2P!)F)r�r(�tk_strictMotifrr�rrs&r�test_tk_strictMotif�MiscTest.test_tk_strictMotifs�������	�	�0�0�%�8��
�
�d�i�i�.�.�0�%�8��
�
�d�i�i�.�.�t�4�d�;��
�
�d�i�i�.�.�0�$�7��
�
�d�i�i�.�.�u�5�u�=����)�T�Y�Y�%=�%=�q�!�Dr!c��[O2oUOUO2UO	2UOUQ*Q2UO
[UOQ2P!)rtz#ffe4c4r`)r�Tkr�r>�	tk_bisquer*r�rr{s& r�test_tk_bisque�MiscTest.test_tk_bisquesT���z�z�|��������%���������l�+�Y�7����)�T�^�^�S�9r!c��[OUO2oUOUOOUOO
2UOO
]UOQ2UOOU2UOUO2Q2P!)r��done)	r�	StringVarr(r*�waitvar�
wait_variabler��set�get)r�vars& r�test_wait_variable�MiscTest.test_wait_variable'sz������	�	�*��������*�*�D�I�I�,C�,C�D��	�	����3�7�7�F�+��	�	����$��������F�+r!c��[OUO2oUOO]UO2UOOU2UO
UO22P!r�)rr'r(r�r>�wait_windowr@�winfo_exists)rr#s& r�test_wait_window�MiscTest.test_wait_window.sU�����t�y�y�)���	�	����3�;�;�'��	�	���c�"�����)�)�+�,r!c�<�UOO2P!r�)r(�tk_focusFollowsMousers&r�test_tk_focusFollowsMouse�"MiscTest.test_tk_focusFollowsMouse4s���	�	�&�&�(r!c���[OUO2oQoUOU2UO	2UOUO
2Q2P!)c�R�Q[U2[U2[U2*!)�PAYLOAD)�int)�offset�lengths&&r�handler�/MiscTest.test_selection_handle.<locals>.handler9s ���S��[��V��s�6�{�)B�C�Cr!r�)rr)r(�selection_handlerMr*�
selection_get)rr-r�s&  r�test_selection_handle�MiscTest.test_selection_handle7sI���M�M�$�)�)�$��	D�	���7�#�	����������*�I�6r!c��UO[UOOQ2UO	Q29^tt^2UOO
Q6wcUO
Q2[OUO2oUO[QUO2PPP2P!)%fhP!9h)�extraznon-viewable window�x11zonly X11 fails the grabzgrab failed)r�rr(�grab_set_global�subTestrnrorr)r]rrIs& r�test_grab_set_global�MiscTest.test_grab_set_global?s���	
���)�T�Y�Y�%>�%>��H�
�\�\�/�
0�
0��y�y�)�)�U�2��
�
�7�8��
�
�d�i�i�(�A��"�"�8�]�A�<M�<M�N�
1�
0�
0�
0�s�B>�"AB>�>C	�C	c��UOOQ6wcUOQ2UO[QUOO
QQ2P!)r�zsend is only supported on X11zno application named�no_such_interp_xyzzyzset x 1)r(rnror]r�sendrs&r�	test_send�MiscTest.test_sendKsE���9�9�%�%��.��M�M�9�:����x�)?�#�y�y�~�~�/E�y�	Rr!c�V�[O2oQUmQUmQUmQUm]UmQUmQUmQUm	QUm
PUmQUmQUm
QUmQUmQUmQUm]UmUO'[)U2Q2P!)�90�??��[�100z<100 event>)r�Event�serial�numr3�keycode�state�timer2r`�y�char�keysym�
keysym_num�type�widget�x_root�y_root�deltar*r+�r�es& r�test_event_repr_defaults�!MiscTest.test_event_repr_defaultsQs����M�M�O�������������	��������������������������������������������a��-�0r!c��[O2oQUm]UmP	Um]�Um]AUmQUmQUmQUm	]
Um
]UmQUmP	Um
QUm[Q2Um[O"O$UmQUmQUmQUmPUmUO1[3U2Q	2P!)
r�ir��,�AzKey-Az.text���z�<Configure event send_event=True state=Shift|Control|Button3|0x30000 keysym=Key-A keycode=65 char='A' num=3 delta=-1 focus=True x=10 y=20 width=300 height=200>)rr�r�r�r?r3r�r�r�r2r`r�r��
send_eventr��ordr��	EventType�	Configurer�r�r�r�r�r*r+r�s& r�test_event_repr�MiscTest.test_event_reprfs����M�M�O����������������	��������������������������3�x����"�"�,�,�������������������a��<�	=r!c��QQ[O2o[OU[O2P!)c��\sQsQsQs\sQsQs\sQs	Qs
QsQsQ	s
Q
sQsQsQ
sQsQsQsQsQsQsQsQsQsQsQsQsQsQsQs Qs!Qs"Qs#Q s$Q!s%Q"s&Q#s'Q$s(Q%s)Q&s*Q's+P!)(�6MiscTest.test_eventtype_enum.<locals>.CheckedEventType��2�3�4�5�6�7�8�9�10�11�12�13�14�15�16�17�18�19�20�21�22�23�24�25�26�27�28�29�30�31�32�33�34�35�36�37�38r3),r4r5r6r7�KeyPress�Key�
KeyRelease�ButtonPressr<�
ButtonRelease�Motion�Enter�Leave�FocusIn�FocusOut�Keymap�Expose�GraphicsExpose�NoExpose�
Visibility�Create�Destroy�Unmap�Map�
MapRequest�Reparentr��ConfigureRequest�Gravity�
ResizeRequest�	Circulate�CirculateRequest�Property�SelectionClear�SelectionRequest�	Selection�Colormap�
ClientMessage�Mapping�VirtualEvent�Activate�
Deactivate�
MouseWheelr8r3r!r�CheckedEventTyper��s����H��C��J��K� �F��M��F��E��E��G��H��F��F�!�N��H��J��F��G��E��C��J��H��I�#���G� �M��I�#���H�!�N�#���I��H� �M��G��L��H��J��Jr!r)�enum�StrEnum�_test_simple_enumrr�)rrs& r�test_eventtype_enum�MiscTest.test_eventtype_enum�s,��'	�t�|�|�'	�P	
���/��1B�1B�Cr!c�4�QFD.oUOUOOU2P	2J0	QFD.oUOUOOU2P
2J0	UO[UOOQ2UO[UOOP2UO[
UOOP2UO[
UOOQ2P!)�true�yea)r�yes�on�1r,r�r�T)�false�no�off�0r-�nrFr3)rr(�
getbooleanr�r�r)r�vs& r�test_getboolean�MiscTest.test_getboolean�s���<�A��M�M�$�)�)�.�.�q�1�4�8�=�>�A��M�M�$�)�)�.�.�q�1�5�9�?����*�d�i�i�&:�&:�E�B����*�d�i�i�&:�&:�B�?����)�T�Y�Y�%9�%9�4�@����)�T�Y�Y�%9�%9�2�>r!c�^``�,nUU1QkoROO]dU2ROO]2ROR,2ROO]2ROR],2RO	ROO22P!)c�:�RO]2ROO]dROO2P!r�)r�r(r��quit)�logrs��rr��(MiscTest.test_mainloop.<locals>.callback�s(����J�J�q�M��I�I�O�O�C������0r!)r(r��mainloopr*rbr~)rr�r&sf @r�
test_mainloop�MiscTest.test_mainloop�s������	1�	
�	�	����X�&��	�	���1������b�!��	�	���1������q�c�"�����	�	�.�.�0�1r!c��UOO2o[OUO2oUO	UO2U2UOUQ*[2UO	[U2]2UOU]*[2UOU]*[2UOU]*[2UOU]*Q2UOU]*[2UOUO[2UOUO[2UOUO[2UOUOQ2UOUO[2UO	U]*UO2UO	U]*UO2UO	U]*UO2UO	U]*UO2UO	U]*UO2UOUQ6�2UOQ6XcUO	UO]2LUO	UO]2UO![#U2UOQUO02P!):NNN�finalr:)�alpha�beta�	candidater,)r-r.r,)r�rr)r(�info_patchlevelrr)r*r`�tuplerBr�r�major�minor�micro�releaselevelr�rb�assertStartsWithr>)r�vir-s&  r�test_info_patchlevel�MiscTest.test_info_patchlevel�s��
�Y�Y�
&�
&�
(���M�M�$�)�)�$������*�*�,�b�1����b��e�U�+�����R��!�$����b��e�S�)����b��e�S�)����b��e�S�)��
�
�b��e�D�E����b��e�S�)����b�h�h��,����b�h�h��,����b�h�h��,��
�
�b�o�o�'A�B����b�i�i��-�����A�����)�����A�����)�����A�����)�����A�����0�����A���	�	�*�����W��%�
�?�?�g�%����R�Y�Y��*����R�X�X�q�)����c�"�g�"�(�(��1�R�X�X�J�'?�@r!c�X�[OUO2oUO]Q2UO	]Q2UOUO
2Q2UO]Q2UO	]Q2UOUO
2Q2P!)rzabcdefru€u€abcdef)rrbr(�insert�selection_ranger*r��rr�s& r�test_embedded_null�MiscTest.test_embedded_null�s������t�y�y�)���
�
�a��$����q�%�(�����-�-�/��>��
�
�a��$����q�%�(�����-�-�/�1E�Fr!c���[OUO2oUO[O[O
O2UO[O[O
O2UOU[O
O2UOU[O
O2UO[Q29^tt^2[U2PPP2UO[Q29^tt^2V7PPP2P!)%fhK=9h)%fhP!9h)zis not iterablezis not a container or iterable)rrbr(�assertNotIsSubclass�collections�abc�Iterable�	Container�assertNotIsInstancer]r�iterr=s& r�test_iterable_protocol�MiscTest.test_iterable_protocol�s������t�y�y�)��� � �������0H�0H�I�� � �������0I�0I�J�� � �����)A�)A�B�� � �����)B�)B�C�
�
#�
#�I�/@�
A�
A���L�B�
�
#�
#�I�/O�
P�
P���Q�
P�B�
A��
P�
P�
P�s$�E�6E�E	�E	�E)	�!E)	r3)4r4r5r6r7rr.rHrSr	rgrpr|r�r�r�r�r�r�r�r�r�r�r�r�r
rr-r:rArJrOrVr\rgrkrprzrr�r�r�r�r�r�rr!r)r8r>rHr8�__classdictcell__��
__classdict__s@rrrs1����9�G�
F� ,�6��A�q�� �� �D��A�q��%��%�&;�8-$�^$$�L'1�R&0�P	!�	!�@�C�
@�
=�	!�G�O�L�C�40�"7� 4�8�=�,�
C�E�:�,�-�)�7�
O�R�1�*=�8)D�V?�
2�A�:G�	�	r!rc�.`�\sQsQsnQsQsQsUsP!)�TkTest�c
��QQQQ
-oUOUOOOQP2UOUOOOQP2[O
29^tt^2o[O29^tt^2oV#Q$UO2FDmvovqVQU8QU8Q0o[[OOV$2Q29^tt^2oUOUOU22PPP2Jo	UOOQ	Q
2PPP2PPP2UOUOO Q2UOUOO"Q2P!)%fhJ�9h)%fhKz9h)%fhK�9h)z.RpClass.pyz
.rpbase.py�
_rp_latin1�_rp_utf8�HOMEz# -*- coding: z -*-
�
�wb�rpbase�RpClassucafé)zlatin-1uself._rp_latin1 = 'café')zutf-8uself._rp_utf8 = 'café')r�r(�__dict__�popr�temp_dir�EnvironmentVarGuard�itemsr�os�path�joinr�encode�readprofiler*rQrR)	r�profiles�home�env�filename�encoding�bodyrOr-s	&        r�test_readprofile�TkTest.test_readprofile�sT��
�E��@�
��	
����	�	�*�*�.�.��d�C�����	�	�*�*�.�.�
�D�A�� � �"�"�d��+�+�-�-����K�.6�n�n�.>�*��*�8�T�9A�4�H���"�'�'�,�,�t�6��=�=���G�G�F�M�M�(�3�4�>�=�/?�
�I�I�!�!�(�I�6�
.�#�	
������-�-�y�9�������+�+�Y�7�	>�=�=��	.�-��#�"�sO�G
�%AF:	�?!F&� (F:	�G
�&F7�/F7�1	F:	�:G

�G

�G
�
G	�G	c��QQ,o[Q6�cUOQ2SFDMvq#[OUQ5oUO	UO2U2UO
2JO	[Q6c)UO[[OQQ5P!P!SO
2h9h)�fooBAR)�	classNameu𐐨)rk�Foobar)uéÉuÉé��	r)u𐐨𐐀u𐐀𐐨)	rr�rrnr*�winfo_classr>r�r�)r�casesrl�klassr(s&    r�test_className�TkTest.test_classNames���
!��
���&� ��L�L�I�J� %��I��:�:�	�2�D�
�� � ��!1�!1�!3�U�;�����!&����
���j�'�*�*���M� ������s� B+�+B=r3)r4r5r6r7rhrsr8rJrKs@rrNrN�s����8�(N�Nr!rNc�p`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sQ
sQs
QsQ
sQsQsUsP!)�	WinfoTest�!c�@`�U1QkoROoUOoROUQ2Q2ROUQ2Q2ROUQ2Q	2UUQ2Q
2UUQ2Q2RO[O
29^tt^2UQ2PPP2RO[O
29^tt^2UQ2PPP2P!)%fhKJ9h)%fhP!9h)
c�Z:�[V2FDvq#ROV#]!Q5J	P!)�!)r�)�zip�assertAlmostEqual)�col1�col2�col1_channel�col2_channelrs&&  �r�assertApprox�.WinfoTest.test_winfo_rgb.<locals>.assertApprox%s)���/2�$�o�*���&�&�|��&�L�/>r!r�zdark slate bluez#F0Fz#4a3c8cz
#dede14143939z#123456789a)�rr)iHHi==i��)r�rr�)iJJi<<i��)i��ii99)�o�N�7)r(�	winfo_rgbr*r�rr)rr�r(�rgbsf   r�test_winfo_rgb�WinfoTest.test_winfo_rgb#s����	M��y�y���n�n��	
����U��]�3�����.�/�1F�G�����V��&>�?��S��^�%=�>��S��)�+C�D�
�
�
�w�/�/�
0�
0��
��1��
�
�w�/�/�
0�
0��
��1�
0�1�
0��1�
0�
0�s$�.	C9�&	D�9D		�D		�D	�D	c�t�[OUO2o[OU2oUO	2oUOU[2UOUOO[U22[U22UOUOO[U2PQ5[U22UOUOO[U2UQ5[U22UOUOOU2[U22UOUOOUPQ5[U22UOUOOV1Q5[U22P!)NrY)rr'r(r<�winfo_idr`r�r*�winfo_pathname�hexr>)rr,r��wids&   r�test_winfo_pathname�WinfoTest.test_winfo_pathname>s0�����T�Y�Y�'���N�N�1����j�j�l�����c�3�'�������1�1�#�c�(�;�S��V�D�������1�1�#�c�(�d�1�K�S�QR�V�T�������1�1�#�c�(�a�1�H�#�a�&�Q�������1�1�#�6��A��?�������1�1�#��1�F��A��O�������1�1�#�1�C�S��V�Lr!c��[OUO2o[OU2oUO	UO2Q2UO	UO2Q2UO	UO
2[U2OQ]2P*2UO	UO2[U22UO	UO2[UO22UOUO2UO2[OUO2oUO[OU2O2U2UO	UOOUO22U2P!)r)r<r:)rr)r(r<r*rp�
winfo_namer>�rsplit�winfo_parentr�winfo_toplevelr'r)rr-rDr,s&   r�test_winfo_class_name_parent�&WinfoTest.test_winfo_class_name_parentJs'���M�M�$�)�)�$���N�N�1����������'�2��������(�3���������Q����s�A�)>�r�)B�C�������)�3�q�6�2�������)�3�t�y�y�>�:��
�
�a�&�&�(�$�)�)�4����T�Y�Y�'���
�
�g�n�n�Q�'�6�6�8�!�<�������/�/����0@�A�1�Er!c�`�UOUOO2,2[OUO2o[O
U2oUOUOO2U,2UOUO2U,2P!r�)r*r(�winfo_childrenrr)r<r	s&  r�test_winfo_children�WinfoTest.test_winfo_childrenWsy��������1�1�3�R�8��M�M�$�)�)�$���N�N�1���������1�1�3�a�S�9�����)�)�+�a�S�1r!c��[OUO2oUOUO	2[
2UOUO
2[
2UOUO2[2UOUO2[2UOUO2[2UOO2oUOU[2SFD1vq4UOU[2UOU[
2J3	P!r�)rr)r(r`�winfo_depthr��winfo_cells�winfo_visualr>�winfo_visualid�winfo_colormapfull�bool�winfo_visualsavailable�list)rr-�visualsr%�depths&    r�test_winfo_visual_info� WinfoTest.test_winfo_visual_info^s����M�M�$�)�)�$�����a�m�m�o�s�3����a�m�m�o�s�3����a�n�n�.��4����a�.�.�0�#�6����a�2�2�4�d�;��)�)�2�2�4�����g�t�,�"�K�D��!�!�$��,��!�!�%��-�#r!c�8�[OUO2oUOUO	22UO2UO
2UOO2UOUO	22P!r�)	rr)r(r@�winfo_viewabler[r4r�rbrIs& r�test_winfo_viewable�WinfoTest.test_winfo_viewablekse���M�M�$�)�)�$������)�)�+�,�	����	�����	�	��������(�(�*�+r!c���UOOQ2oUOU[2UO	UOOU2Q2UO	UOOVOQ5Q2UO	UOOQUOQ5U2UO
[QUOO
Q2P!)�PRIMARYrYzno atom existsiʚ;)r(�
winfo_atomr`r�r*�winfo_atomnamer]r)r�atoms& r�test_winfo_atom�WinfoTest.test_winfo_atomss����y�y�#�#�I�.�����d�C�(�������1�1�$�7��C�����I�I�$�$�T�Y�Y�$�?��	L�����I�I� � ��d�i�i� �@�$�	H����x�)9�#�y�y�7�7��	Br!c���UOUOO2[2UOUOO	2[2UOO2oUOU[2UO[U2]2SO[9PIc(QU2D%cJP
2P!	P	2P!QU222P!)�c3�N�SF �Do[U[2w�	J	P!3hr�)�
isinstancer�)r#r s& rr$�/WinfoTest.test_winfo_pointer.<locals>.<genexpr>�s������1�J�q�#�.�.��s�%)r`r(�winfo_pointerxr��winfo_pointery�winfo_pointerxyr1r*rBrb�all)r�xys& r�test_winfo_pointer�WinfoTest.test_winfo_pointer~s������d�i�i�6�6�8�#�>����d�i�i�6�6�8�#�>�
�Y�Y�
&�
&�
(�����b�%�(�����R��!�$������;��;���<��<��;��;�;�<r!c��UOO2UOUOOQQ22UOUOOQQUOQ52P!)i'rYi���)r(r�r��winfo_containingrs&r�test_winfo_containing�WinfoTest.test_winfo_containing�s]���	�	�������$�)�)�4�4�V�V�D�E�����I�I�&�&�v�v����&�K�	Mr!c�F�UOUOOQ2[2UO	UOOQ2UOOQ22UO[QUOOQ2P!)�1i�72pz&(bad|expected) screen distance.*"spam"rY)r`r(�
winfo_fpixels�floatr|r]rrs&r�test_winfo_fpixels�WinfoTest.test_winfo_fpixels�sw�����d�i�i�5�5�d�;�U�C����t�y�y�6�6�t�<�#�y�y�6�6�u�=�	?�	
���x�H�#�y�y�6�6��	@r!c��QFDFo[UOU22oUOU[2UO	U]2JH	UOUOO2[2UOUOO2[2UOUOO2[2P!)�winfo_screenwidth)r��winfo_screenheight�winfo_screenmmwidth�winfo_screenmmheight�winfo_screencells�winfo_screendepth)	�getattrr(r`r��
assertGreater�winfo_screenvisualr>�winfo_screen�winfo_server)rr%�values&  r�test_winfo_screen�WinfoTest.test_winfo_screen�s���?�D��D�I�I�t�,�.�E��!�!�%��-����u�a�(�?�	
���d�i�i�:�:�<�c�B����d�i�i�4�4�6��<����d�i�i�4�4�6��<r!c�z�QFD2oUO[UOU22[2J4	P!)�winfo_vrootwidth)r��winfo_vrootheight�winfo_vrootx�winfo_vrooty)r`r�r(r�)rr%s& r�test_winfo_vroot�WinfoTest.test_winfo_vroot�s,��5�D��!�!�'�$�)�)�T�":�"<�c�B�5r!c�v�UOO2oUOU[2UOOQ6Xc7UOUOOOQQ2U2UOUOOUOQ5U2P!)r�r��appnamerY)	r(�
winfo_interpsr`r1rnrr�r�r*)r�interpss& r�test_winfo_interps�WinfoTest.test_winfo_interps�s����)�)�)�)�+�����g�u�-��9�9�%�%��.��M�M�$�)�)�,�,�+�+�D�)�<�g�F�������0�0�4�9�9�0�E�w�Or!r3)r4r5r6r7r�r�r�r�r�r�r�r�r�r�r�r�r�r8rJrKs@rrvrv!sS�����6
M�F�2�.�,�	B�=�M�@�	=�C�
P�Pr!rvc�`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sQ
sQs
QsQ
sQsQsQsQsQsQsQsQsQsQsQsQsUsP!)�WmTest�c�b�UOoUOP	Q5oUOU[2UO2oUOU[2SOUQ*[9PIc,QU2DMJ	3LQU222UOUQ*[	UO
222UOP2oUO%cUOVC2LUOU[2SFD*oUOUOU2V%*2J,	SFD1oUOUOQU*2V%*2J3	UOQU2UOQU2UOQU2UOQ	6Xc7UOQ
U2UOQU2UOQU2UOQ
6XcIUOQU2UOQU2UOQU2UOQU2UOQ6Xc%UOQU2UOQU2UOQQ5SOUOQ2UO%cQLQ2UOQQ5SOUOQ2UO%cQLQ2UOQQ2SOUOQ2UO%cQLQ2UOQQ5SOUOQ2UO%c	Q2P!Q2P!)T)�return_python_dict:NNr�c3�@�SF �DoQU*w�	J	P!3h)�-r3)r#�ks& rr$�+WmTest.test_wm_attribute.<locals>.<genexpr>�s��
���
�1�s�Q�w�w�
�s�:r�Nr�r�r-�
fullscreen�topmost�win32�disabled�
toolwindow�transparentcolorrj�modified�notify�	titlepath�transparentr�r��zoomedg�?)r-z0.5g�?z1.0z-alpha)r(�
wm_attributesr`rar1r*�valuesrr>rrn)rr��
attributes�attributes2�attributes3r%s&     r�test_wm_attribute�WmTest.test_wm_attribute�s����I�I���_�_��_�=�
����j�$�/��o�o�'�����k�5�1�����S�)���;�
�;���;�
�;�;�	=�����T�*�E�*�2C�2C�2E�,F�G��o�o�d�+���������[�6��!�!�+�s�3��D����Q�_�_�T�2�J�4D�E���D����Q�_�_�S�4�Z�8�*�:J�K��	
�
�
�g�z�*��
�
�l�J�/��
�
�i��,�����(��M�M�*�j�1��M�M�,�
�3��M�M�,�j�9�����'��M�M�*�j�1��M�M�(�J�/��M�M�+�z�2��M�M�-��4�����&��M�M�&�*�-��M�M�(�J�/�	���c��"��������1� $� 0� 0� 0��e�	=�	���c��"��������1� $� 0� 0� 0��e�	=�	
����#�&��������1� $� 0� 0� 0��e�	=�	���c��"��������1� $� 0� 0� 0��	=�6;�	=r!c��[OUO2o[U2oUOQ6Xcr[
OQ6Xc][O2Q6XcC[O2]*OQ2%cUOQ2UOUO2P2UOQ2P
oUOQ6XcUQ6fQ	St96:cQ
6cLLP	oU%f!UOUO2Q2UOUOO2P2UOP2UOUO2P2UOQ6Xc�UOQQ5UOUO2Q2UOUOO2P2UOPQ5UOUO2P2UO2P!)rj�darwin�x86_64z26.z%wm iconbitmap hangs on macOS 26 Intel�	hourglassr�)�default)���rn)rorr�)rr'r(r
rnr�platform�machine�mac_ver�
startswithror*�
wm_iconbitmapr>)rr,�
patchlevel�bugs&   r�test_wm_iconbitmap�WmTest.test_wm_iconbitmap�s������T�Y�Y�'��&�q�)�
�
���&�(�����(�� � �"�h�.�� � �"�1�%�0�0��7�7�

�M�M�A�B�������*�B�/�	����$�������'��J�&�&�J�*J��*J�������Q�_�_�.��<�������0�0�2�B�7�	�����������*�B�/�����(�
�O�O�K�O�0����Q�_�_�.��<����T�Y�Y�4�4�6��;�
�O�O�B�O�'����Q�_�_�.��3�	�	�	�r!c��[OUO2o[OU]]Q5oUO	P
U2UO	P	U2UO[OUOP
Q2P!)�)�masterr2r3rY)rr'r(�
PhotoImage�wm_iconphotor�r)rr,�imgs&  r�test_wm_iconphoto�WmTest.test_wm_iconphotosd�����T�Y�Y�'��� � ���B�?��	���u�c�"�	���t�S�!����'�*�*�A�N�N�E�6�Jr!c�L�[OUO2oUOQ2UO	UO2Q2UO	UO2Q2UOQ2UO	UO2Q2P!)r=�Spam)rr'r(�titler*�wm_title�rr,s& r�
test_wm_title�WmTest.test_wm_titlesp�����T�Y�Y�'��	������������G�,��������w�/�	�
�
�6���������F�+r!c�&�[OUO2oUOQ2UO	2UOUO2Q2UO
UO2UO22P!)z
200x100+10+20z^200x100\+-?\d+\+-?\d+$)rr'r(�geometryr��assertRegexr*�wm_geometryr s& r�test_wm_geometry�WmTest.test_wm_geometrys^�����T�Y�Y�'��	�
�
�?�#�	���
��������'A�B��������!�*�*�,�7r!c��[OUO2oUO]�]d2UO	UO2Q2UOQQ2UO	UO2Q2P!)r0���X)r0�d)r*r+)rr'r(�minsizer*�maxsizer s& r�test_wm_minsize_maxsize�WmTest.test_wm_minsize_maxsize"s^�����T�Y�Y�'��	�	�	�#�s���������j�1�	�	�	�#�s���������j�1r!c���[OUO2oUOP
P	2UO	UO2Q2UO[QUOQP	2P!)Fzexpected boolean valuerYr�)rr'r(�	resizabler*r]rr s& r�test_wm_resizable�WmTest.test_wm_resizable*sX�����T�Y�Y�'��	���E�4� ���������/����x�)A� �{�{�F�D�	:r!c���[OUO2oUOUO	2P2UO	]]]]2UOUO	2Q2P!)N)r�r�r_�)rr'r(r*�aspectr s& r�test_wm_aspect�WmTest.test_wm_aspect1sT�����T�Y�Y�'���������T�*�	����A�q�!���������\�2r!c��[OUO2oUO]
]
]]2UO	UO2Q2P!)�
)r;r;�r<)rr'r(�wm_gridr*r s& r�test_wm_grid�WmTest.test_wm_grid7s>�����T�Y�Y�'��	�	�	�"�b�!�Q���������n�5r!c��[OUO2oUOQ2UO	UO2Q2UOQ2UO	UO2Q2P!)�user�program)rAr�)rBr�)rr'r(�positionfromr�sizefromr s& r�test_wm_positionfrom_sizefrom�$WmTest.test_wm_positionfrom_sizefrom<sW�����T�Y�Y�'��	���v���
�
�a�n�n�&��5�	�
�
�9���
�
�a�j�j�l�O�4r!c�,�[OUO2oUOUO	2Q2UO	Q2UOUO	2Q2UO[UOQ2P!)�passive�activerY)rr'r(r*�
focusmodelr�rr s& r�test_wm_focusmodel�WmTest.test_wm_focusmodelDsd�����T�Y�Y�'����������3�	���X����������2����(�A�L�L�&�9r!c��[OUO2oUOQ2UO	UO2Q2P!)�Icon)rNr�)rr'r(�iconnamerr s& r�test_wm_iconname�WmTest.test_wm_iconnameKs6�����T�Y�Y�'��	�
�
�6���
�
�a�j�j�l�L�1r!c���[OUO2oUO]]2UOQ6Xc#UOUO2Q2P!P!)r_r�)r_r6)rr'r(�wm_iconpositionrnr*r s& r�test_wm_iconposition�WmTest.test_wm_iconpositionQsR�����T�Y�Y�'��	���!�Q������&����Q�.�.�0�&�9�'r!c��UOOQ6wcUOQ2[OUO2oUOQ2[OUO2oUO
U2UO[UO
22[U22P!)r�z(iconmask and iconwindow are X11-specific�gray50)	r(rnrorr'�wm_iconmask�
wm_iconwindowr*r>)rr,�icons&  r�test_wm_iconmask_iconwindow�"WmTest.test_wm_iconmask_iconwindowWs����9�9�%�%��.��M�M�D�E����T�Y�Y�'��	�
�
�h������	�	�*��	���������Q�_�_�.�/��T��;r!c	��UOOQ6wcUOQ2[OUO2oUOUO
2,2[OU2oUO
U2SOUO
2Tt,tFDo[U2MJ	to[U2,2P!ttoh)r�zcolormapwindows is X11-specific)	r(rnrorr'r*�wm_colormapwindowsr)r>)rr,r-r�s&   r�test_wm_colormapwindows�WmTest.test_wm_colormapwindows`s����9�9�%�%��.��M�M�;�<����T�Y�Y�'������-�-�/��4��M�M�!���	���Q�����!�*>�*>�*@�A�*@�Q�#�a�&�*@�A�C��F�8�L��As�1Cc��[OUO2oUOOU2UOO	U2P!r�)rr)r(�	wm_manage�	wm_forgetrIs& r�test_wm_manage_forget�WmTest.test_wm_manage_forgetis8���M�M�$�)�)�$���	�	���A���	�	���A�r!c�2�[OUO2oUOQ2UO	Q2UO
Q6XcCUO
UO2Q2UO
UO	2Q2P!P!)�myhostzmyapp -xr�)rr'r(�client�
wm_commandrnr*r s& r�test_wm_client_command�WmTest.test_wm_client_commandnso�����T�Y�Y�'��	�����	���Z� �
����&����Q�X�X�Z��2����Q�\�\�^�Z�8�'r!c���[OUO2oUOUO	22UO	P	2UOUO	22P!�T)rr'r(r@�overrideredirectrbr s& r�test_wm_overrideredirect�WmTest.test_wm_overrideredirectxsP�����T�Y�Y�'������+�+�-�.�	���4� �����*�*�,�-r!c���[OUO2oUO2UO	UO2Q2UO
2UO	UO2Q2UO2UO2UO	UO2Q2UO[UO
Q2P!)�normal�	withdrawnrY)
rr'r(r�r*r��withdraw�	deiconifyr�rr s& r�
test_wm_state�WmTest.test_wm_state~s������T�Y�Y�'��	���
��������H�-�	�
�
���������K�0�	���
�	���
��������H�-����(�A�G�G�V�4r!c��[OUO2oUO2UO	UO2[2P!r�)rr'r(r�r`�framer>r s& r�
test_wm_frame�WmTest.test_wm_frame�s5�����T�Y�Y�'��	���
����a�g�g�i��-r!c���[OUO2oUOUO2UO	UO2[UO2P12P!r�)rr'r(�grouprr>r s& r�
test_wm_group�WmTest.test_wm_group�sG�����T�Y�Y�'��	����	�	���
�
�a�g�g�i�#�d�i�i�.�"�!5�6r!c�6�[OUO2oUOUO	2[
2UO	QQ2UO
QUO	22UOUO	Q22P!)�WM_SAVE_YOURSELFc��P!r�r3r3r!rr��)WmTest.test_wm_protocol.<locals>.<lambda>�s��tr!)rr'r(r`�protocolr1rrbr s& r�test_wm_protocol�WmTest.test_wm_protocol�sf�����T�Y�Y�'�����a�j�j�l�E�2�	�
�
�%�|�4��
�
�(�!�*�*�,�7�����
�
�#5�6�7r!c�6�[OUO2oUOUO	2P2UO	UO2UO[UO	22[UO22P!r�)rr'r(r*�	transientr>r s& r�test_wm_transient�WmTest.test_wm_transient�s_�����T�Y�Y�'����������+�	���D�I�I������Q�[�[�]�+�S����^�<r!r3)r4r5r6r7rrrr!r'r/r3r8r>rErKrPrTr[r_rdrjrorvrzr~r�r�r8rJrKs@rr�r��s�����2=�h#�JK�,�8�2�:�3�6�
5�:�2�:�<�M��
9�.�	5�.�
7�8�=�=r!r�c�R`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sQ
sUs
P!)�	EventTesti�c��[OUO]�]dQ5oUO2UOO	2UOO2,oUO
QUO2UO2UOO2UO[U2]U2U]*oUOUO[OO2UOUO U2UO#UO$[&2UOUO(Q2UOUO*P
2UO-UQ2UOUO.Q2UOUO0Q2UOUO2Q2UOUO4Q2UOUO6Q2UOUO8Q2UOUO:Q2UOUO<Q2UOUO>Q2UOUO@Q2UOUOBQ2UOUODQ2UOUOF]2UOUOHQ2UOUOJQ2UO[MU2Q2P!)r0r1z	<FocusIn>r�r?�NotifyAncestorz<FocusIn event>)'rr)r(r[r4r��bindr�r5r�r*rBrr�r�r�r�r`r�r�r�r��assertNotHasAttrr�r�r�r�r�r�r2r3r`r�r�r�r��	user_data�detailr+�rr-�eventsr�s&   r�
test_focus�EventTest.test_focus�sL���M�M�$�)�)�3�s�;��	�����	�	�!�!�#��	�	�"�"�$���	���{�F�M�M�*�	�
�
���	�	��������V��a��0��1�I���
�
�a�f�f�g�/�/�7�7�8��
�
�a�h�h��"����a�h�h��,��������&��
�
�a�l�l�E�*����a��)��������%�������$�'��������&�������D�)�������4�(�������t�,�������$�'�������4�(�������d�#�������d�#�������4�(�������4�(�������!�$�������d�+�������#3�4�����a��"3�4r!c�t�[OUO]�]dQ5oUO2UOO	2UOO2,oUO
QUO2UO]x]
Q5UO[U2]U2U]*oUOUO[OO2UOUOU2UO!UO"[$2UOUO&Q2UOUO(P
2UO+UQ2UOUO,Q2UOUO.Q2UOUO0Q2UOUO2Q2UOUO4Q2UOUO6Q2UOUO8]�2UOUO:]d2UOUO<]2UOUO>]2UOUO@Q2UOUOBQ2UOUOD]2UOUOFQ2UOUOHQ2UO[KU2Q2P!)r0r1z<Configure>)r3�borderwidthr�r?z.<Configure event x=0 y=0 width=150 height=100>)&rr)r(r[r4r�r�r��	configurer*rBrr�r�r�r�r`r�r�r�r�r�r�r�r�r�r�r�r2r3r`r�r�r�r�r�r�r+r�s&   r�test_configure�EventTest.test_configure�sB���M�M�$�)�)�3�s�;��	�����	�	�!�!�#��	�	�"�"�$���	���}�f�m�m�,�	���3�B��/�����V��a��0��1�I���
�
�a�f�f�g�/�/�9�9�:��
�
�a�h�h��"����a�h�h��,��������&��
�
�a�l�l�E�*����a��)��������%�������$�'��������&�������D�)�������4�(�������t�,�������#�&�������3�'�������a� �������a� �������4�(�������4�(�������!�$�������d�+�������4�(�����a��"R�Sr!c���[OUO]�]dQ5oUO2UOO	2UOO2,oUO
QUO2UO2UOQ2UO[U2]U2U]*oUOUO[OO2UOUO U2UO#UO$[&2UOUO(]2UOUO*P
2UO-UQ2UOUO.Q2UO#UO0[&2UO3UO0]2UOUO4Q2UO#UO6[&2UO3UO6]2UOUO8Q2UOUO:[=Q22UOUO>Q2UOUO@Q2UOUOBPUOE2*
2UOUOFPUOI2*
2UOUOJP2UOUOLP2UOUON]2UOUOPQ2UOUORQ2UO[UU2QUO0Q
Q	UO6Q
UOBQUOFQ0	2P!)
r0r1z
<KeyPress>z<Alt-z>r?r��zz<KeyPress event state=z#xz keysym=z keycode=z char='z' x=z y=�>)+rr)r(r[r4r�r�r�r5�event_generater*rBrr�r�r�r�r`r�r�r�r�r�r�r�r=r�r�r�r�r�r2r3r`�winfo_rootxr��winfo_rootyr�r�r�r�r�r+r�s&   r�test_event_generate_key_press�'EventTest.test_event_generate_key_press�s����M�M�$�)�)�3�s�;��	�����	�	�!�!�#��	�	�"�"�$���	���|�V�]�]�+�	�
�
��	����#�����V��a��0��1�I���
�
�a�f�f�g�/�/�8�8�9��
�
�a�h�h��"����a�h�h��,��������#��
�
�a�l�l�E�*����a��)��������%����a�g�g�s�+����A�G�G�Q�'��������%����a�i�i��-����A�I�I�q�)�������3�'�������s�3�x�0�������$�'�������4�(�������b�1�=�=�?�2�3�������b�1�=�=�?�2�3�������2�&�������2�&�������!�$�������d�+�������4�(�����a��$�Q�W�W�R�L�1 � !�	�	�{�,�q�s�s�e�3�q�s�s�e�1�
F�	Gr!c�*�[OUO]�]dQ5oUO2UOO	2UOO2,oUO
QUO2UOQ]d]2Q5UO[U2]U2U]*oUOUO[OO2UOUOU2UO!UO"[$2UOUO&]2UOUO(P
2UOUO*P
2UOUO,Q2UOUO.]2UOUO0Q2UOUO2Q2UOUO4Q2UOUO6Q2UOUO8Q2UOUO:Q2UOUO<]d2UOUO>]22UOUO@]dUOC2*2UOUOD]2UOG2*2UOUOH]2UOUOJQ2UOUOLQ2UO[OU2Q2UOQ]d]2QQ5UO[U2]U2U]*oUOUO[OO2UOUOJQ2UOUOLQ2P!)	r0r1�<Enter>�r`r�r�r�z$<Enter event focus=False x=100 y=50>�
NotifyPointer)r`r�r�)(rr)r(r[r4r�r�r�r�r*rBrr�r�r�r�r`r�r�r�r�r?r�r�r�r�r�r�r2r3r`r�r�r�r�r�r�r�r�r+r�s&   r�test_event_generate_enter�#EventTest.test_event_generate_enters����M�M�$�)�)�3�s�;��	�����	�	�!�!�#��	�	�"�"�$���	���y�&�-�-�(�	����c�R��0�����V��a��0��1�I���
�
�a�f�f�g�/�/�5�5�6��
�
�a�h�h��"����a�h�h��,��������#��
�
�a�l�l�E�*��
�
�a�g�g�u�%��������%�������!�$��������&�������D�)�������4�(�������t�,�������$�'�������4�(�������c�"�������b�!�������3�����#8�9�������2��
�
��#7�8�������!�$�������d�+�������#3�4�����a��"H�I�	����c�R���H�����V��a��0��1�I���
�
�a�f�f�g�/�/�5�5�6�������d�+�������?�3r!c���[OUO]�]dQ5oUO2UOO	2UOO2,oUO
QUO2UO2UOQ]d]2Q5UO[U2]U2U]*oUOUO[OO2UOUO U2UO#UO$[&2UOUO(]2UOUO*P
2UO-UQ2UOUO.]2UOUO0]2UOUO2Q2UOUO4Q2UOUO6Q2UOUO8Q2UOUO:Q2UOUO<Q2UOUO>]d2UOUO@]22UOUOBUOE2]d*2UOUOFUOI2]2*2UOUOJ]2UOUOLQ2UOUONQ2UO[QU2Q2P!)r0r1z
<ButtonPress>z
<Button-1>r�r?r�z$<ButtonPress event num=1 x=100 y=50>))rr)r(r[r4r�r�r�r5r�r*rBrr�r�r�r�r`r�r�r�r�r�r�r�r�r�r�r�r2r3r`r�r�r�r�r�r�r�r�r+r�s&   r� test_event_generate_button_press�*EventTest.test_event_generate_button_press>sf���M�M�$�)�)�3�s�;��	�����	�	�!�!�#��	�	�"�"�$���	�����
�
�.�	�
�
��	�������3�����V��a��0��1�I���
�
�a�f�f�g�/�/�;�;�<��
�
�a�h�h��"����a�h�h��,��������#��
�
�a�l�l�E�*����a��)��������"�������!�$��������&�������D�)�������4�(�������t�,�������$�'�������4�(�������c�"�������b�!�������1�=�=�?�S�#8�9�������1�=�=�?�R�#7�8�������!�$�������d�+�������4�(�����a��"H�Ir!c���[OUO]�]dQ5oUO2UOO	2UOO2,oUO
QUO2UO2UOQ]d]2Q5UO[U2]U2U]*oUOUO[OO2UOUO U2UO#UO$[&2UOUO(]2UOUO*P
2UO-UQ2UOUO.Q2UOUO0Q2UOUO2Q2UOUO4Q2UOUO6Q2UOUO8Q2UOUO:Q2UOUO<Q2UOUO>]d2UOUO@]22UOUOBUOE2]d*2UOUOFUOI2]2*2UOUOJ]2UOUOLQ2UOUONQ2UO[QU2Q2P!)	r0r1z<Motion>z<B1-Motion>r�r?r��z'<Motion event state=Button1 x=100 y=50>))rr)r(r[r4r�r�r�r5r�r*rBrr�r�r�r�r`r�r�r�r�r�r�r�r�r�r�r�r2r3r`r�r�r�r�r�r�r�r�r+r�s&   r�test_event_generate_motion�$EventTest.test_event_generate_motionbsf���M�M�$�)�)�3�s�;��	�����	�	�!�!�#��	�	�"�"�$���	���z�6�=�=�)�	�
�
��	����#���4�����V��a��0��1�I���
�
�a�f�f�g�/�/�6�6�7��
�
�a�h�h��"����a�h�h��,��������#��
�
�a�l�l�E�*����a��)��������%�������%�(��������&�������D�)�������4�(�������t�,�������$�'�������4�(�������c�"�������b�!�������1�=�=�?�S�#8�9�������1�=�=�?�R�#7�8�������!�$�������d�+�������4�(�����a��"K�Lr!c���[OUO]�]dQ5oUO2UOO	2UOO2,oUO
QUO2UO2UOQ]d]2QQ5UO[U2]U2U]*oUOUO[OO2UOUO U2UO#UO$[&2UOUO(P
2UO+UQ2UOUO,]2UOUO.Q2UOUO0]2UOUO2Q2UOUO4Q2UOUO6Q2UOUO8Q2UOUO:Q2UOUO<Q2UOUO>]d2UOUO@]22UOUOBUOE2]d*2UOUOFUOI2]2*2UOUOJQ2UOUOLQ2UOUONQ2UO[QU2Q2P!)r0r1z<MouseWheel>)r`r�r�r?r�z&<MouseWheel event delta=-5 x=100 y=50>r�))rr)r(r[r4r�r�r�r5r�r*rBrr�r�r
r�r`r�r�r�r�r�r�r�r�r�r�r�r2r3r`r�r�r�r�r�r�r�r�r+r�s&   r�test_event_generate_mouse_wheel�)EventTest.test_event_generate_mouse_wheel�sh���M�M�$�)�)�3�s�;��	�����	�	�!�!�#��	�	�"�"�$���	���~�v�}�}�-�	�
�
��	����3�"�B��?�����V��a��0��1�I���
�
�a�f�f�g�/�/�:�:�;��
�
�a�h�h��"����a�h�h��,��
�
�a�l�l�E�*����a��)��������#��������%�������!�$��������&�������D�)�������4�(�������t�,�������$�'�������4�(�������c�"�������b�!�������1�=�=�?�S�#8�9�������1�=�=�?�R�#7�8�������"�%�������d�+�������4�(�����a��"J�Kr!c��[OUO]�]dQ5oUO2UOO	2UOO2,oUO
QUO2UO2UOQ]2Q5UO[U2]U2U]*oUOUO[OO2UOUO U2UO#UO$[&2UOUO(]2UOUO*P
2UO-UQ2UOUO.Q2UOUO0]2UOUO2Q2UOUO4Q2UOUO6Q2UOUO8Q2UOUO:Q2UOUO<Q2UOUO>]22UOUO@]2UOUOBUOE2]2*2UOUOFP2UOUOH]2UOUOJP2UOUOLQ2UO[OU2Q2UOQQQ5UO[U2]U2U]*oUOUO[OO2UOUOJQ2UOUOLQ2P!)	r0r1z<<Spam>>)r`r?r�z<VirtualEvent event x=50 y=0>rY)�data)(rr)r(r[r4r�r�r�r5r�r*rBrr�r�r
r�r`r�r�r�r�r�r�r�r�r�r�r�r2r3r`r�r�r�r�r�r�r�r+r�s&   r�!test_event_generate_virtual_event�+EventTest.test_event_generate_virtual_event�s����M�M�$�)�)�3�s�;��	�����	�	�!�!�#��	�	�"�"�$���	���z�6�=�=�)�	�
�
��	����r��*�����V��a��0��1�I���
�
�a�f�f�g�/�/�<�<�=��
�
�a�h�h��"����a�h�h��,��������#��
�
�a�l�l�E�*����a��)��������%�������!�$��������&�������D�)�������4�(�������t�,�������$�'�������4�(�������b�!�������a� �������1�=�=�?�R�#7�8�������2�&�������!�$�������b�)�������4�(�����a��+�	.�	
����&��1�����V��a��0��1�I���
�
�a�f�f�g�/�/�<�<�=�������f�-�������4�(r!r3)r4r5r6r7r�r�r�r�r�r�r�r�r8rJrKs@rr�r��s>����"5�H!T�F&G�P(4�T"J�H"M�H"L�H*)�*)r!r�c�``�\sQsQsnU1QksQsQsQsQsQs	Qs
Q	sQ
sQs
QsQ
sQsQsQsQsQsQsQsQsQsQsQsQsQsUsU9s!)�BindTesti�c��:�[RU_2UOo[OUOQ]�]dQ5UmUO
O
2P!)�Test��class_r2r3)�super�setUpr(rr)ryr[)rr(�	__class__s& �rr��BindTest.setUp�s@���
��
���y�y���]�]�4�9�9�V�),�S�:��
��
�
���r!c�V�UO[UOU2U12P!r��r*�_info_commandsr(�r�funcids&&r�assertCommandExist�BindTest.assertCommandExist�s�������	�	�6�:�V�I�Fr!c�T�UO[UOU2Q2P!)Nr3r�r�s&&r�assertCommandNotExist�BindTest.assertCommandNotExist�s�������	�	�6�:�B�?r!c�L�QoUOoUOUO2Q2UOUOU2P2QoQoUOV2oUOUO2U12UOU2oUOVV2UO	U2UOVP	Q5oUOU2oUOVV2UOVv2UO	U2UO	U2P!)�<Control-Alt-Key-a>c��P!r�r3�r�s&r�test1�!BindTest.test_bind.<locals>.test1����dr!c��P!r�r3r�s&r�test2�!BindTest.test_bind.<locals>.test2�r�r!��addr3)ryr*r�rr�)r�eventr-r�r�r�rO�funcid2s&       r�	test_bind�BindTest.test_bind�s���%���J�J���������2�&����������+�������%���������E�8�,��������
�
�f�%�����'��&�&��4�&�0���������
�
�f�%��
�
�g�&�����'�����(r!c���QoUOoUOUO2Q2UOUOU2P2QoQoUOV2oUOVP	Q5oUO[UO
2UOU2UOUOU2P2UOUO2Q2P!)�<Control-Alt-Key-b>c��P!r�r3r�s&rr��#BindTest.test_unbind.<locals>.test1r�r!c��P!r�r3r�s&rr��#BindTest.test_unbind.<locals>.test2r�r!r�r3)ryr*r�r�r�unbind)rr�r-r�r�r�r�s&      r�test_unbind�BindTest.test_unbind�s���%���J�J���������2�&����������+�������%���&�&��4�&�0�����)�Q�X�X�.�	��������������+��������2�&r!c�T`
�UOoUO2UO2UO2QoUO	UO2Q2UO	UOU2P2U
1QkoU
1QkoU
1QkoUOV#2oUOV$P	Q5oUOV%P	Q5o,n
UO
U2UO	R
,QN2UOV'2UOU2o	UOVy2UOVi2UOV�2UO	UO2U12UOU2UOU2UOU2,n
UO
U2UO	R
QQ,2UOV&2UOV(2UO	UOU2P2UO	UO2Q2UOU2UOU2UOU2,n
UO
U2UO	R
,2UO[OUOV'2P!)	z<Control-Alt-Key-c>c�,:�ROQ2P!)rr��r�r�s&�rr��$BindTest.test_unbind2.<locals>.test1����f�m�m�C�(r!c�,:�ROQ2P!)rDr�r�s&�rr��$BindTest.test_unbind2.<locals>.test2r�r!c�,:�ROQ2P!)rr�r�s&�r�test3�$BindTest.test_unbind2.<locals>.test3r�r!r�rrr3)rrDr)ryr4r5r�r*r�r�r�rrr�r�r�rr)rr-r�r�r�r�r�r��funcid3rOr�s&         @r�test_unbind2�BindTest.test_unbind2s����J�J��	����	�
�
��	����%���������2�&����������+�(�(�(�����%���&�&��4�&�0���&�&��4�&�0����	����������1�	���� �����������)��
�
�f�%��
�
�g�&��������E�8�,��"�"�7�+�����'�����(���	���������#�s��,�	�����	���� ����������+��������2�&��"�"�6�*��"�"�7�+��"�"�7�+���	����������$�	
���'�*�*�A�H�H�e�Er!c��QoUOoUOUO2Q2UOUOU2P2QoQoQoUOV2oUOVP	Q5oUOU2oUOVx2UOVh2UO	U2UO	U2UOV2o	UOU2oUOVh2UOVx2UOV�2UO
U2UO
U2UO	U	2P!)�<Control-Alt-Key-d>c��P!r�r3r�s&rr��(BindTest.test_bind_rebind.<locals>.test1>r�r!c��P!r�r3r�s&rr��(BindTest.test_bind_rebind.<locals>.test2?r�r!c��P!r�r3r�s&rr��(BindTest.test_bind_rebind.<locals>.test3@r�r!r�r3)ryr*r�rr�rr�)
rr�r-r�r�r�r�r�rOr�s
&         r�test_bind_rebind�BindTest.test_bind_rebind9s��%���J�J���������2�&����������+��������%���&�&��4�&�0���������
�
�g�&��
�
�f�%�����'�����(��&�&��&������������(�����)��
�
�g�&��"�"�6�*��"�"�7�+�����(r!c�n�QoUOOoUOOoUO[U2UOUQ2Q2UOUQU2P2UO
UQU2QoQoUQV2oUOUQ2U12UQU2oUOVg2UOU2UQVP	Q5oUQU2oUOVg2UOV�2UOU2UOU2P!)z<Control-Alt-Key-e>r�c��P!r�r3r�s&rr��'BindTest.test_bind_class.<locals>.test1[r�r!c��P!r�r3r�s&rr��'BindTest.test_bind_class.<locals>.test2\r�r!r�r3)	r(�
bind_class�unbind_classr�rr*r�rr�)	rr�rrr�r�r�rOr�s	&        r�test_bind_class�BindTest.test_bind_classSs��%���Y�Y�)�)�
��y�y�-�-�����)�Z�0�����F�+�R�0�����F�E�2�B�7�����f�e�4����F�E�1������F�+�e�X�6��F�E�*���
�
�f�%�����'��V�U�t�<���F�E�*���
�
�f�%��
�
�g�&�����'�����(r!c�D�QoUOOoUOOoUOUQ2Q2UOUQU2P2UO	UQU2QoQoUQV2oUQVP	Q5oUO[U2UO[UQ2UQU2UOUQU2P2UOUQ2Q2UOU2UOU2UQU2P!)z<Control-Alt-Key-f>r�c��P!r�r3r�s&rr��)BindTest.test_unbind_class.<locals>.test1rr�r!c��P!r�r3r�s&rr��)BindTest.test_unbind_class.<locals>.test2sr�r!r�r3)r(rrr*r�r�rr�)rr�rrr�r�r�r�s&       r�test_unbind_class�BindTest.test_unbind_classks���%���Y�Y�)�)�
��y�y�-�-������F�+�R�0�����F�E�2�B�7�����f�e�4����F�E�1���V�U�t�<�����)�\�2����)�\�6�:��V�U�#�����F�E�2�B�7�����F�+�R�0��"�"�6�*��"�"�7�+��V�U�#r!c��QoUOOoUOOoUOUQ2Q2UOUQU2P2UO	UQU2QoQoQoUQV2oUQVP	Q5oUQU2o	UOV�2UOVy2UO
U2UO
U2UQV2o
UQU2o	UOVy2UOV�2UOV�2UOU2UOU2UO
U
2P!)z<Control-Alt-Key-g>r�c��P!r�r3r�s&rr��.BindTest.test_bind_class_rebind.<locals>.test1�r�r!c��P!r�r3r�s&rr��.BindTest.test_bind_class_rebind.<locals>.test2�r�r!c��P!r�r3r�s&rr��.BindTest.test_bind_class_rebind.<locals>.test3�r�r!r�r3)	r(rrr*r�rr�rr�)rr�rrr�r�r�r�r�rOr�s&          r�test_bind_class_rebind�BindTest.test_bind_class_rebind�s.��%���Y�Y�)�)�
��y�y�-�-������F�+�R�0�����F�E�2�B�7�����f�e�4�����F�E�1���V�U�t�<���F�E�*���
�
�g�&��
�
�f�%�����'�����(��V�U�2���F�E�*������(�����)��
�
�g�&��"�"�6�*��"�"�7�+�����(r!c�*�QoUOOoUOOoUOV22UO	UU2P2UOV12QoQoUV2oUO
V22UU2oUO
Vg2UOU2UVP	Q5oUU2oUO
Vg2UO
V�2UOU2UOU2P!)z<Control-Alt-Key-h>c��P!r�r3r�s&rr��%BindTest.test_bind_all.<locals>.test1�r�r!c��P!r�r3r�s&rr��%BindTest.test_bind_all.<locals>.test2�r�r!r�)r(�bind_all�
unbind_allrr*r�rr�)	rr�rrr�r�r�rOr�s	&        r�
test_bind_all�BindTest.test_bind_all�s���%���9�9�%�%���Y�Y�)�)�
������
�+�����%��"�-����
�*����%�'���
�
�e�X�Z�(��%����
�
�f�%�����'��5�T�2���%����
�
�f�%��
�
�g�&�����'�����(r!c���QoUOOoUOOoUOV22UO	UU2P2UOV12QoQoUV2oUVP	Q5oUU2UO	UU2P2UOV22UO
U2UO
U2UU2P!)z<Control-Alt-Key-i>c��P!r�r3r�s&rr��'BindTest.test_unbind_all.<locals>.test1�r�r!c��P!r�r3r�s&rr��'BindTest.test_unbind_all.<locals>.test2�r�r!r�)r(rrrr*r�r�)rr�rrr�r�r�r�s&       r�test_unbind_all�BindTest.test_unbind_all�s���%���9�9�%�%���Y�Y�)�)�
������
�+�����%��"�-����
�*����%�'���5�T�2���5������%��"�-������
�+��"�"�6�*��"�"�7�+��5�r!c��QoUOOoUOOoUOV22UO	UU2P2UOV12QoQoQoUV2oUVP	Q5oUU2o	UO
V�2UO
Vy2UOU2UOU2UV2o
UU2o	UOVy2UOV�2UO
V�2UOU2UOU2UOU
2P!)z<Control-Alt-Key-j>c��P!r�r3r�s&rr��,BindTest.test_bind_all_rebind.<locals>.test1�r�r!c��P!r�r3r�s&rr��,BindTest.test_bind_all_rebind.<locals>.test2�r�r!c��P!r�r3r�s&rr��,BindTest.test_bind_all_rebind.<locals>.test3�r�r!r�)	r(rrrr*r�rr�r�)rr�rrr�r�r�r�r�rOr�s&          r�test_bind_all_rebind�BindTest.test_bind_all_rebind�s��%���9�9�%�%���Y�Y�)�)�
������
�+�����%��"�-����
�*�����%�'���5�T�2���%����
�
�g�&��
�
�f�%�����'�����(��5�(���%�������(�����)��
�
�g�&��"�"�6�*��"�"�7�+�����(r!c�z�QoQoUO2UO[UO2[	U[
O2%c
UOLUOo[	U[
O2%cCUO[UOU2UO[UOV#2UOUU2Q2UOUV#2P2QoQoUOV#U2oUOUU2U12UV#2oUOVx2UOU2UOV#UP	Q5o	UV#2oUOVx2UOV�2UOU2UOU	2P!)�selr�c��P!r�r3r�s&rr��&BindTest._test_tag_bind.<locals>.test1�r�r!c��P!r�r3r�s&rr��&BindTest._test_tag_bind.<locals>.test2�r�r!r�r3)r[r�r�tag_bindr�r�Text�	_tag_bindr*rr�)
rr��tagr�r4r�r�r�rOr�s
&&        r�_test_tag_bind�BindTest._test_tag_bind�sP����%��	�������)�Q�Z�Z�0�",�Q����"=�"=�1�;�;�1�:�:���a����&�&����i����S�9����i����S�@�����#���+�����#�-�r�2������C��.������#����1��#�%���
�
�f�%�����'��*�*�S��D�*�9���#�%���
�
�f�%��
�
�g�&�����'�����(r!c��QoQoUO2[U[O2%c
UOLUO
oUO
UU2Q2UO
UV#2P2QoQoUOV#U2oUOV#UP	Q5oUO[UOU2UOV#2UO
UV#2P2UO
UU2Q2P!)r/r�c��P!r�r3r�s&rr��(BindTest._test_tag_unbind.<locals>.test1r�r!c��P!r�r3r�s&rr��(BindTest._test_tag_unbind.<locals>.test2	r�r!r�r3)
r[r�rr5r6r4r*r�r�
tag_unbind)	rr�r7r�r4r�r�r�r�s	&&       r�_test_tag_unbind�BindTest._test_tag_unbinds�����%��	����",�Q����"=�"=�1�;�;�1�:�:������#���+�����#�-�r�2������C��.���*�*�S��D�*�9�����)�Q�\�\�3�7�	���S� �����#�-�r�2�����#���+r!c��QoQoUO2[U[O2%c
UOLUO
oUO
UU2Q2UO
UV#2P2QoQoQoUOV#U2oUOV#UP	Q5o	UV#2o
UOV�2UOV�2UOU2UOU	2UOV#U2oUV#2o
UOV�2UOV�2UOV�2UOU2P!)r/r�c��P!r�r3r�s&rr��-BindTest._test_tag_bind_rebind.<locals>.test1r�r!c��P!r�r3r�s&rr��-BindTest._test_tag_bind_rebind.<locals>.test2r�r!c��P!r�r3r�s&rr��-BindTest._test_tag_bind_rebind.<locals>.test3r�r!r�r3)
r[r�rr5r6r4r*rr�r)rr�r7r�r4r�r�r�r�r�rOr�s&&          r�_test_tag_bind_rebind�BindTest._test_tag_bind_rebinds����%��	����",�Q����"=�"=�1�;�;�1�:�:������#���+�����#�-�r�2�������C��.���*�*�S��D�*�9���#�%���
�
�g�&��
�
�f�%�����'�����(��*�*�S��/���#�%������(�����)��
�
�g�&�����(r!c�j�[OUO2oUOU2P!r�)r�Canvasryr8�rrs& r�test_canvas_tag_bind�BindTest.test_canvas_tag_bind-s"���N�N�4�:�:�&�����A�r!c�j�[OUO2oUOU2P!r�)rrLryr@rMs& r�test_canvas_tag_unbind�BindTest.test_canvas_tag_unbind1s"���N�N�4�:�:�&�����a� r!c�j�[OUO2oUOU2P!r�)rrLryrIrMs& r�test_canvas_tag_bind_rebind�$BindTest.test_canvas_tag_bind_rebind5s"���N�N�4�:�:�&���"�"�1�%r!c�j�[OUO2oUOU2P!r�)rr5ryr8r s& r�test_text_tag_bind�BindTest.test_text_tag_bind9s"���L�L����$�����A�r!c�j�[OUO2oUOU2P!r�)rr5ryr@r s& r�test_text_tag_unbind�BindTest.test_text_tag_unbind=s"���L�L����$�����a� r!c�j�[OUO2oUOU2P!r�)rr5ryrIr s& r�test_text_tag_bind_rebind�"BindTest.test_text_tag_bind_rebindAs"���L�L����$���"�"�1�%r!c�0�UOoUOUOO2Q2UOUO2[	U2QQQ12UOQ2UOUO2Q2P!)r:r�r�)r:rnr�)rzb c)ryr*r(�bindtagsr>rIs& r�
test_bindtags�BindTest.test_bindtagsEsn���J�J��������+�+�-�/A�B���������A����U�'C�D�	�
�
�<� ��������|�4r!c�`�QoUOo[OU2o[OUQ]�]dQ5oUO	2UO2UO
2UOUOQU2UOUOQU2UOUOQU2UOUOQU2UOUOU2U1QkoUOVQ22UOQVQ22UOQVQ	22UOQVQ22UOQVQ22UOVQ
22UOVQ22,nUOU2UORQ
U1QU1QU1QU1,2,nUOU2UORQU1Q	U1QU1,2UOQ2,nUOU2UORQU1,2P!)
r�r�r�r'r7�tag2c�:`�UU1Qk!)c�@:�RORUO12!r�)r�r�)r�r��whats&��rr��9BindTest.test_bind_events.<locals>.test.<locals>.<lambda>Zs���V�]�]�D�!�(�(�+;�<r!r3)rgr�sf�r�test�'BindTest.test_bind_events.<locals>.testYs	���<�<r!r�zframe classztoplevel classry�toplevel)r7�tag3)r(rr'r)r[r4r�r�rrrrr�r�r*r`)rr�r(r,r-rir�s&     @r�test_bind_events�BindTest.test_bind_eventsLs
������y�y�����T�"���M�M�!�F�#�c�B��	����������������)�)�6�5�9�����)�)�:�u�=�����)�)�5�%�8�����)�)�6�5�9��������/�	=�	
�
�
�e�T�%�[�)������t�M�':�;����
�E�4�0@�+A�B�����u�d�5�k�2������t�F�|�4�	���u�d�7�m�$�	���u�d�:�&�'���	���������
�a�L�
�A��
��O�
�A�J�	"
�	���	���������
��O�
�q�!�
�A�J�"
�	�	
�
�
�?�#���	���������5�!�*��.r!)ry)r4r5r6r7r�r�r�r�r�r�r�rr
rrr#r,r8r@rIrNrQrTrWrZr]rarmr8rJ�
__classcell__)r�rLs@@rr�r��s������G�@�)�*'� ,F�\)�4)�0$�.)�8)�.�*)�8)�6,�$)�4�!�&��!�&�5�,/�,/r!r�c�:`�\sQsQsnQsQsQsQsQsUs	P!)�DefaultRootTesti{c�`�UO[OP	2UO[O2[O
2o[O
2o[O
2oUO[OU2UO
2UO[OU2UO
2UO[O2UO
2UO[O2P!rm)rr�_support_default_rootr��
_default_rootrnr>)rr(�root2�root3s&   r�test_default_root�!DefaultRootTest.test_default_root}s����
�
�g�3�3�T�:����'�/�/�0��z�z�|���
�
����
�
����
�
�g�+�+�T�2�
�
�
���
�
�g�+�+�T�2��������'�/�/�0�
�
�
�����'�/�/�0r!c�^�UO[OP	2UO[O2[O
2oUO[OU2[O2UO[OP
2UO[Q2[O2UO[OP
2UO[Q2UO2UO[OP
2UO[Q2[O
2oUO[OP
2UO[Q2UO2P!)Trt)	rrrsr�rtrn�
NoDefaultRootr�r>r{s& r�test_no_default_root�$DefaultRootTest.test_no_default_root�s���
�
�g�3�3�T�:����'�/�/�0��z�z�|���
�
�g�+�+�T�2������
�
�g�3�3�U�;����g��7������
�
�g�3�3�U�;����g��7������
�
�g�3�3�U�;����g��7��z�z�|���
�
�g�3�3�U�;����g��7����r!c��UO[[OQ2[O2oUO[OQ2P	2UO[[OQ2UO2[O2UO[[OQ2P!)rr)	r��RuntimeErrorrrrnrr�r>rzr{s& rr!�DefaultRootTest.test_getboolean�s������,��(:�(:�C�@��z�z�|���
�
�g�(�(��-�t�4����*�g�&8�&8�%�@������������,��(:�(:�C�@r!c�l�UO[[O2[O2oUOUO2[O2UO2[O2UO[[O2P!r�)	r�r~rr(rnr�r%r>rzr{s& rr)�DefaultRootTest.test_mainloop�sj�����,��(8�(8�9��z�z�|������	�	�"����������������,��(8�(8�9r!r3)
r4r5r6r7rwr{r!r)r8rJrKs@rrqrq{s����1��(A�:�:r!rqc�p�UOOUOOQQU22!)r��commands)r�r�r�)r��patterns&&rr�r��s(���9�9���v�y�y�~�~�f�j�'�J�K�Kr!�__main__r�)%�collections.abcrBr�r]rrrK�unittestr�rrrrir�test.supportr�test.support.script_helperr�test.test_tkinter.supportrrrr	r
r�requires�TestCaserrNrvr�r�r�rqr�r4�mainr3r!r�<module>r�s����	��
��������"�7�1�4�4������\�~�x�0�0�\�~)N�^�X�.�.�)N�XMP��� 1� 1�MP�`o=�^�X�.�.�o=�dq)��� 1� 1�q)�h	a/�~�x�0�0�a/�H
4:�-�x�/@�/@�4:�nL��z���M�M�O�r!

Youez - 2016 - github.com/yon3zu
LinuXploit