+
    Biq                        ^ RI t ^ RIt^ RIt^ RIHt ^ RIt^ RIHt ^ RIHtH	t	H
t
Ht ]P                  ! R4        ! R R]]P                  4      t ! R R	]]P                  4      t ! R
 R]]P                  4      t ! R R]]P                  4      t ! R R]	]P                  4      tRR lt]R8X  d   ]P*                  ! 4        R# R# )    N)TclError)support)AbstractTkTestAbstractDefaultRootTestrequires_tkget_tk_patchlevelguic                      a  ] tR t^t o R tR tR t]! ^^^4      R 4       t]! ^^^4      R 4       t	R t
R tR tR	 tR
 tR tR tR tR tR tR tR tR tR tR tR tRtV tR# )MiscTestc                   V P                  R \        P                  4       V P                  R\        P                  4       V P                  \        P                  4       V P                  R\        P                  4       V P                  R\        P                  4       V P                  R\        P                  4       V P                  R\        P                  4       V P                  R\        P                  4       R# )WidgetCASCADEresys	constants_tkerrorwantobjectsN)assertIntkinter__all__assertIsNotNoner   assertNotIn)selfs   &2/usr/lib/python3.14/test/test_tkinter/test_misc.pytest_allMiscTest.test_all   s    h0i1W__-w/0goo6W__58    c                    \         P                  ! V P                  R R7      p\         P                  ! VRR7      pV P	                  \        V4      R4       R# )topnamechildz!<tkinter.Frame object .top.child>N)r   ToplevelrootFrameassertEqualrepr)r   tfs   &  r   	test_reprMiscTest.test_repr   s=    TYYU3MM!'*a"EFr   c           
         ! R  R\         P                  4      p\         P                  ! V P                  4      p\         P                  ! V4      p\         P                  ! V4      pV P                  \        V4      \        V4      4       \         P                  ! V4      pV! V4      p\        V4      P                  R4      \        V4      P                  R4      ,            F-  pV P                  VP                  4       \        V4      R7       K/  	  \         P                  ! V4      pV! V4      p	V P                  \        \        V4      \        V4      \        V4      \        V	4      04      ^4       R# )c                       ] tR t^"tRtR# ).MiscTest.test_generated_names.<locals>.Button2 N)__name__
__module____qualname____firstlineno____static_attributes__r/   r   r   Button2r.   "   s    r   r5   .)msgN)r   Buttonr#   r$   r%   assertNotEqualstrsplitassertFalseisidentifierr'   r&   len)
r   r5   r(   r)   f2bb2r!   b3b4s
   &         r   test_generated_namesMiscTest.test_generated_names!   s   	gnn 	 TYY'MM!]]1CFCG,NN2R[FLL%Bc(:::DT..0d4jA ;^^BR[c!fc"gs2wB@A1Er   c                   V P                   p\        P                  ! VR R7      p\        P                  ! V4      pVP                  4        VP                  4        \        P                  ! V4      pVP                  4        VP                  4        V P                  \        R4      ;_uu_ 4        VP                  RR7       RRR4       V P                  \        R4      ;_uu_ 4        VP                  R4       RRR4       V P                  \        R4      ;_uu_ 4        VP                  R4       RRR4       V P                  VP                  4       \        4       V P                  VP                  4       4       V P                  VP                  4       4       V P                  VP                  4       4       V P                  VP                  4       4       V P                  W"P!                  4       4       V P                  W"P!                  R4      4       V P#                  W"P!                  R4      4       VP%                  4        V P                  VP                  4       4       V P                  VP!                  4       4       R	pV P                  \        V4      ;_uu_ 4        VP                  4        RRR4       V P                  \        V4      ;_uu_ 4        VP%                  4        RRR4       R#   + '       g   i     EL@; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     R# ; i)
myframer    zunknown option "-spam"eggsspamNrJ   z*.m?f*mez*spamcan(no|')t find busy window.*)r$   r   r%   packr8   tk_busy_holdassertRaisesRegexr   tk_busy_configuretk_busy_cgetassertIsInstancedict
assertTruetk_busy_statusr<   r   tk_busy_currentr   tk_busy_forget)r   r$   r)   r?   r@   errmsgs   &     r   test_tk_busyMiscTest.test_tk_busy1   sK   yyMM$Y/]]4 	
	NN1		##H.FGGV, H##H.FGGNN6" H##H.FGG' Ha113T:((*+,,./**,-))+,a**,-a**:67--g67	))+,**,-1##Hf55! 6##Hf55 65- HGGGGGGGG  65555s<   /K9(L L!'L5M9L
	L	!L2	5M	M	c                   V P                   pVP                  R 8X  d   V P                  R4       \        P                  ! VRR7      pVP                  4        VP                  RR7       V P                  VP                  R4      R4       VP                  RR7       V P                  VP                  R4      R4       V P                  VP                  4       R,          ^,          R4       V P                  VP                  R4      ^,          R4       VP                  4        RpV P                  \        V4      ;_uu_ 4        VP                  R4       R	R	R	4       R	#   + '       g   i     R	# ; i)
aquaz.the cursor option is not supported on OSX/AquarG   r    gumby)cursorr]   heartrK   N)r$   _windowingsystemskipTestr   r%   rL   rM   r&   rP   rO   rV   rN   r   )r   r$   r)   rW   s   &   r   test_tk_busy_with_cursor!MiscTest.test_tk_busy_with_cursorT   s   yy  F*MMJKMM$Y/		g&17;	7+17;,,.x8;WE,,X6q97C	1##Hf55NN8$ 6555s   EE0	c                   V P                   pVP                  R 4       V P                  VR,          R 4       VP                  R4       V P                  VR,          R4       V P                  \        P
                  RVP                  R4       VP                  R R7       V P                  VR,          R 4       VP                  RRR7       V P                  VR,          R4       V P                  VR	,          R4       VP                  RRR7       V P                  VR,          R4       V P                  VR	,          R4       V P                  \        P
                  RVP                  RR7       V P                  \        P
                  R
VP                  RR7       V P                  \        P
                  R
VP                  RR7       R# )black
backgroundwhitez^unknown color name "spam"$rJ   )re   blueyellow)re   highlightColorhighlightcolorz!^must specify a background color$rI   )ri   N)r$   tk_setPaletter&   rN   r   r   r   r$   s   & r   test_tk_setPaletteMiscTest.test_tk_setPaletteh   s   yy7#l+W57#l+W5w//-""F	, 	g.l+W5fXFl+V4./:hvFl+X6./8w//-""v 	 	7 	w//3"" 	 	2 	w//3""6 	 	;r   c                  a V P                   pRR^ /V3R lllpV P                  VP                  ^4      4       ^ oVP                  ^ V4      pV P                  W1P                  P                  RR4      4       VP                  P                  VP                  P                  RRV4      4      w  rEVP                  4        V P                  S^4       V P                  \        P                  4      ;_uu_ 4        VP                  P                  V4       RRR4       ^ oVP                  ^ V^*^4      pVP                  4        V P                  S^54       VP                  RV4      pV P                  W1P                  P                  RR4      4       VP                  P                  VP                  P                  RRV4      4      w  rEVP                  V4       V P                  S^54       V P                  \        P                  4      ;_uu_ 4        VP                  P                  V4       RRR4       ^ oVP                  ^ \        P                  ! V^*^4      4      pVP                  4        V P                  S^54       ^ oVP                  ^ V^*^^R7      pVP                  4        V P                  S^64       R#   + '       g   i     EL; i  + '       g   i     L; i)	r   endc                &   < W,           V,           oR # Nr/   startsteprp   counts   &&$r   callback%MiscTest.test_after.<locals>.callback       L3&Er   afterinfoNi  ru   rp   r      )r$   assertIsNonerz   r   tkcall	splitlistupdater&   assertRaisesr   r   after_cancel	functoolspartial)r   r$   rw   timer1script_rv   s   &     @r   
test_afterMiscTest.test_after   s1   yy	'Q 	' 	'
 	$**Q-( Ax(fggll7F;<gg''Wff(MN"w//00GGLL  1 AxR0# D(+fggll7F;<gg''Wff(MN&!#w//00GGLL  1 Ay002rBC# Ax"!<#9 100 10s   :KKK	K%	c                  a V P                   pRR^ /V3R lllp^ oVP                  V4      pV P                  W1P                  P	                  RR4      4       VP                  P                  VP                  P	                  RRV4      4      w  rEVP                  4        V P                  S^4       V P                  \        P                  4      ;_uu_ 4        VP                  P	                  V4       RRR4       ^ oVP                  V^*^4      pVP                  4        V P                  S^54       VP                  V4      pV P                  W1P                  P	                  RR4      4       VP                  P                  VP                  P	                  RRV4      4      w  rEVP                  V4       V P                  S^54       V P                  \        P                  4      ;_uu_ 4        VP                  P	                  V4       RRR4       ^ oVP                  V^*^^R7      pVP                  4        V P                  S^64       R#   + '       g   i     ELe; i  + '       g   i     L_; i)r   rp   c                &   < W,           V,           oR # rr   r/   rs   s   &&$r   rw   *MiscTest.test_after_idle.<locals>.callback   ry   r   rz   r{   Nr|   r}   )r$   
after_idler   r   r   r   update_idletasksr&   r   r   r   r   r   )r   r$   rw   idle1r   r   rv   s   &     @r   test_after_idleMiscTest.test_after_idle   s   yy	'Q 	' 	'
 )eWW\\'6:;gg''Wfe(LM"w//00GGLL  1 "b1# )eWW\\'6:;gg''Wfe(LM% #w//00GGLL  1 "21=#- 100 10s   I2I%I"	%I5	c                P  a V P                   pV3R  lpVP                  RV4      pVP                  V4      pV P                  \        4      ;_uu_ 4        VP                  R4       RRR4       ^ oVP                  P                  VP                  P                  RRV4      4      w  rVVP                  P                  V4       V P                  S^4       VP                  V4       V P                  \        P                  4      ;_uu_ 4        VP                  P                  V4       RRR4       V P                  S^4       V P                  \        P                  4      ;_uu_ 4        VP                  P                  RRV4       RRR4       VP                  V4       ^ oVP                  P                  VP                  P                  RRV4      4      w  rVVP                  P                  V4       V P                  S^4       VP                  V4       V P                  \        P                  4      ;_uu_ 4        VP                  P                  V4       RRR4       V P                  S^4       V P                  \        P                  4      ;_uu_ 4        VP                  P                  RRV4       RRR4       R#   + '       g   i     ELh; i  + '       g   i     EL; i  + '       g   i     ELn; i  + '       g   i     L; i  + '       g   i     R# ; i)c                     < S ^,          o R# r~   Nr/   )rv   s   r   rw   ,MiscTest.test_after_cancel.<locals>.callback   s    QJEr     Nrz   r{   )r$   rz   r   r   
ValueErrorr   r   r   r   r&   r   r   )r   r$   rw   r   r   r   r   rv   s   &      @r   test_after_cancelMiscTest.test_after_cancel   s3   yy	 D(+) z**d# + gg''Wff(MNV"&!w//00GGLL  1"w//00GGLL&&1 1 	&! gg''Wfe(LMV"% w//00GGLL  1"w//00GGLL&%0 107 +** 100 100 10 100s<   KK*K- LLK	K*	-K>	L	L%	c                N   V P                   pV P                  VP                  4       R	4       VP                  ^R 4      pV P                  VP                  4       V34       VP	                  V4       VP                  RR 4      pVP                  RR 4      pVP                  R 4      pV P                  VP                  4       WTV34       VP                  V4      pV P                  \        V4      ^4       V P                  V^,          R4       VP                  V4      pV P                  \        V4      ^4       V P                  V^,          R4       VP	                  V4       V P                  \        P                  4      ;_uu_ 4        VP                  V4       RRR4       VP	                  V4       V P                  \        P                  4      ;_uu_ 4        VP                  V4       RRR4       VP	                  V4       V P                  \        P                  4      ;_uu_ 4        VP                  V4       RRR4       V P                  VP                  4       R	4       R#   + '       g   i     L; i  + '       g   i     L; i  + '       g   i     LX; i)
r~   c                      R # breakr/   r/   r   r   <lambda>*MiscTest.test_after_info.<locals>.<lambda>	  s    gr   r   c                      R # r   r/   r/   r   r   r   r         'r   c                      R # r   r/   r/   r   r   r   r     r   r   c                      R # r   r/   r/   r   r   r   r     s    r   timeridleNr/   )
r$   r&   
after_inforz   r   r   r>   r   r   r   )r   r$   r   r   timer2r   timer1_info
idle1_infos   &       r   test_after_infoMiscTest.test_after_info  s   yy 	*B/ 

1o. 	*UI6% D/2D/20*UF,CD oof-[)1-Q1__U+
Z!,A/&!w//00OOF# 1&!w//00OOF# 1% w//00OOE" 1 	*B/ 10 10 10s$   I. J2J.I>	J	J$	c                   V P                   pVP                  4        VP                  R 4       V P                  VP	                  4       R 4       VP                  R4       V P                  VP	                  4       R4       VP                  4        V P                  \        P                  4      ;_uu_ 4        VP	                  4        RRR4       R#   + '       g   i     R# ; i)u   Ùñîu   çōđěu   ÙñîçōđěNr$   clipboard_clearclipboard_appendr&   clipboard_getr   r   r   rl   s   & r   test_clipboardMiscTest.test_clipboard*  s    yyh'++-x8j)++-/?@w//00  1000   6CC"	c                   V P                   pVP                  4        VP                  R 4       V P                  VP	                  4       R 4       VP                  R4       V P                  VP	                  4       R4       VP                  4        V P                  \        P                  4      ;_uu_ 4        VP	                  4        RRR4       R#   + '       g   i     R# ; i)u   𝔘𝔫𝔦u   𝔠𝔬𝔡𝔢u   𝔘𝔫𝔦𝔠𝔬𝔡𝔢Nr   rl   s   & r   test_clipboard_astralMiscTest.test_clipboard_astral5  s    yyn-++-~>01++-/MNw//00  1000r   c                >  a  V 3R  lpS P                   pVP                  pS P                  V! R4      R4       S P                  V! R4      R	4       S P                  V! R4      R
4       V! V! R4      R4       V! V! R4      R4       S P                  \        P
                  4      ;_uu_ 4        V! R4       RRR4       S P                  \        P
                  4      ;_uu_ 4        V! R4       RRR4       R#   + '       g   i     LJ; i  + '       g   i     R# ; i)c                 V   < \        W4       F  w  r#SP                  W#^!R7       K  	  R# )!   )deltaN)zipassertAlmostEqual)col1col2col1_channelcol2_channelr   s   &&  r   assertApprox-MiscTest.test_winfo_rgb.<locals>.assertApproxB  s)     /2$o*&&|&L />r   redzdark slate bluez#F0Fz#4a3c8cz#dede14143939z#123456789aN)  r   r   )iHH  i==  i  )r   r   r   )iJJ  i<<  i  )i  i  i99  )o   N   7   )r$   	winfo_rgbr&   r   r   r   )r   r   r$   rgbs   f   r   test_winfo_rgbMiscTest.test_winfo_rgb@  s    	M yynn 	U]3./1FGV&>?S^%=>S)+CDw//00 1 w//00 10 10 100s   -	C8%	D8D	D	c                r   \         P                  ! V P                  4      p\         P                  ! V4      pVP	                  4       pV P                  V\        4       V P                  V P                  P                  \        V4      4      \        V4      4       V P                  V P                  P                  \        V4      R R7      \        V4      4       V P                  V P                  P                  \        V4      VR7      \        V4      4       V P                  V P                  P                  V4      \        V4      4       V P                  V P                  P                  VR R7      \        V4      4       V P                  V P                  P                  W1R7      \        V4      4       R # )N)	displayof)r   r#   r$   r8   winfo_idrQ   intr&   winfo_pathnamehexr:   )r   r(   wwids   &   r   test_winfo_pathnameMiscTest.test_winfo_pathname[  s0   TYY'NN1jjlc3'11#c(;SVD11#c(d1KSQRVT11#c(a1H#a&Q11#6A?11#1FAO11#1CSVLr   c                T   \         P                  ! 4       pR Vn        RVn        RVn        RVn        ^ Vn        RVn        RVn        RVn	        RVn
        RVn        RVn        RVn        RVn        RVn        RVn        RVn        ^ Vn        V P'                  \)        V4      R4       R# )90  ??[ 100z<100 event>N)r   Eventserialnumheightkeycodestatetimewidthxycharkeysym
keysym_numtypewidgetx_rooty_rootr   r&   r'   r   es   & r   test_event_repr_defaults!MiscTest.test_event_repr_defaultsg  s    MMO	a-0r   c                   \         P                  ! 4       pR Vn        ^Vn        RVn        ^Vn        ^AVn        RVn        RVn        RVn	        ^
Vn
        ^Vn        RVn        RVn        RVn        \        R4      Vn        \         P"                  P$                  Vn        RVn        RVn        R	Vn        RVn        V P1                  \3        V4      R
4       R# )r   Ti r   i,  AzKey-Az.texti  i  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>N)r   r   r   r   focusr   r   r   r   r   r   r   r   
send_eventr   ordr   	EventType	Configurer   r   r   r   r   r&   r'   r   s   & r   test_event_reprMiscTest.test_event_repr|  s    MMO	3x"",,a<	=r   c                     ! R  R\         P                  4      p\         P                  ! V\        P                  4       R# )c                       ] tR tRtRt]tRtRt]tRt	Rt
RtRtR	tR
tRtRtRtRtRtRtRtRtRtRtRtRtRtRtRtRtRtRt Rt!Rt"Rt#R t$R!t%R"t&R#t'R$t(R%t)R&t*R't+R(# ))6MiscTest.test_eventtype_enum.<locals>.CheckedEventTypei  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38r/   N),r0   r1   r2   r3   KeyPressKey
KeyReleaseButtonPressr8   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
MouseWheelr4   r/   r   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   rK  N)enumStrEnum_test_simple_enumr   r   )r   rK  s   & r   test_eventtype_enumMiscTest.test_eventtype_enum  s,    '	t|| '	P 	/1B1BCr   c                .   R F.  pV P                  V P                  P                  V4      R4       K0  	  R F.  pV P                  V P                  P                  V4      R4       K0  	  V P                  \        V P                  P                  R4       V P                  \        V P                  P                  R4       V P                  \
        V P                  P                  R4       V P                  \
        V P                  P                  R4       R# )	trueTFyear   N)rR  yeson1r(   r   r~   T)falsenooff0r)   nr   Fr/   )assertIsr$   
getbooleanr   r   	TypeError)r   vs   & r   test_getbooleanMiscTest.test_getboolean  s    <AMM$))..q148 =>AMM$))..q159 ?*dii&:&:EB*dii&:&:B?)TYY%9%94@)TYY%9%92>r   c                \  a a . oVV 3R  lpS P                   P                  ^dV4       S P                   P                  ^4       S P                  S. 4       S P                   P                  ^ 4       S P                  S^.4       S P	                  S P                   P                  4       4       R# )c                     < S P                  ^4       SP                  P                  ^dSP                  P                  4       R# r   )appendr$   rz   quit)logr   s   r   rw   (MiscTest.test_mainloop.<locals>.callback  s(    JJqMIIOOC0r   N)r$   rz   mainloopr&   rS   winfo_exists)r   rw   rf  s   f @r   test_mainloopMiscTest.test_mainloop  s    	1 			X&		1b!		1qc"		..01r   c                   V P                   P                  4       p\        P                  ! V P                   4      pV P	                  VP                  4       V4       V P                  VR ,          \        4       V P	                  \        V4      ^4       V P                  V^ ,          \        4       V P                  V^,          \        4       V P                  V^,          \        4       V P                  V^,          R4       V P                  V^,          \        4       V P                  VP                  \        4       V P                  VP                  \        4       V P                  VP                  \        4       V P                  VP                  R4       V P                  VP                  \        4       V P	                  V^ ,          VP                  4       V P	                  V^,          VP                  4       V P	                  V^,          VP                  4       V P	                  V^,          VP                  4       V P	                  V^,          VP                  4       V P                  VR8  4       VP                  R8X  d   V P	                  VP                  ^ 4       MV P	                  VP                  ^ 4       V P!                  \#        V4      VP                   RVP                   24       R# ):NNNfinalr6   N)alphabeta	candidaterm  )rn  ro  rm  )r~   r   r   )r$   info_patchlevelr   r%   r&   rQ   tupler>   r   r   majorminormicroreleaselevelr   rS   assertStartsWithr:   )r   vir)   s   &  r   test_info_patchlevelMiscTest.test_info_patchlevel  s   YY&&(MM$))$**,b1beU+R!$beS)beS)beS)beDEbeS)bhh,bhh,bhh,boo'ABbii-A)A)A)A0A		*W%??g%RYY*RXXq)c"g"((1RXXJ'?@r   c                V   \         P                  ! V P                  4      pVP                  ^ R4       VP	                  ^ R4       V P                  VP                  4       R4       VP                  ^ R4       VP	                  ^ R4       V P                  VP                  4       R4       R# )r   zabc defrp   u   € u   € abc defN)r   Entryr$   insertselection_ranger&   selection_get)r   r   s   & r   test_embedded_nullMiscTest.test_embedded_null  s    tyy)a$q%(--/>a$q%(--/1EFr   r/   N)r0   r1   r2   r3   r   r*   rD   r   rX   ra   rm   r   r   r   r   r   r   r   r   r   r   rO  r`  rj  ry  r  r4   __classdictcell____classdict__s   @r   r   r      s     9G
F  Aq   D Aq% %&;8-$^$$L'1R&0P	!	!6
M1*=8)DV?
2A:G Gr   r   c                   ,   a  ] tR tRt o R tR tRtV tR# )WmTesti   c                ^   V P                   pVP                  R R7      pV P                  V\        4       VP                  4       pV P                  V\        4       T P                  VR,          \        ;QJ d    . R V 4       F  NK  	  5M! R V 4       4      4       V P                  VR,          \	        VP                  4       4      4       VP                  R4      pV P                  '       d   V P                  WC4       MV P                  V\        4       V F*  pV P                  VP                  V4      W%,          4       K,  	  V F1  pV P                  VP                  RV,           4      W%,          4       K3  	  V P                  RV4       V P                  RV4       V P                  R	V4       VP                  R
8X  d7   V P                  RV4       V P                  RV4       V P                  RV4       VP                  R8X  dI   V P                  RV4       V P                  RV4       V P                  RV4       V P                  RV4       VP                  R8X  d%   V P                  RV4       V P                  RV4       VP                  RR7       T P                  VP                  R4      V P                  '       d   RMR4       VP                  RR7       T P                  VP                  R4      V P                  '       d   RMR4       VP                  RR4       T P                  VP                  R4      V P                  '       d   RMR4       VP                  RR7       T P                  VP                  R4      V P                  '       d	   R4       R# R4       R# )T)return_python_dict:NN   c              3   4   "   T F  pR V,           x  K  	  R# 5i)-Nr/   ).0ks   & r   	<genexpr>+WmTest.test_wm_attribute.<locals>.<genexpr>	  s     ;
1sQww
s   :r~   Nr  Nr  rn  
fullscreentopmostwin32disabled
toolwindowtransparentcolorr[   modifiednotify	titlepathtransparentx11r   zoomedg      ?)rn  z0.5g      ?z1.0z-alpha)r$   wm_attributesrQ   rR   rr  r&   valuesr   r:   r   r_   )r   r   
attributesattributes2attributes3r!   s   &     r   test_wm_attributeWmTest.test_wm_attribute  s   II___=
j$/oo'k51S);
;;
;;	=T*E*2C2C2E,FGood+[6!!+s3DQ__T2J4DE  DQ__S4Z8*:JK  	gz*lJ/i,(MM*j1MM,
3MM,j9'MM*j1MM(J/MM+z2MM-4&MM&*-MM(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                ~   \         P                  ! V P                  4      pV P                  VP	                  4       R 4       VP	                  R4       RpVP
                  R8X  d'   \        V4      pVR8  g   R	Tu;8:  d   R
8  d   M MRpV'       g!   V P                  VP	                  4       R4       V P                  V P                  P	                  4       R 4       VP	                  R 4       V P                  VP	                  4       R 4       VP
                  R8X  d   VP	                  RR7       V P                  VP	                  4       R4       V P                  V P                  P	                  4       R 4       VP	                  R R7       V P                  VP	                  4       R 4       VP                  4        R# )r   	hourglassFr[   Tr  )defaultN)         )	   r   )r  r   r  )r   r#   r$   r&   wm_iconbitmapr_   r   destroy)r   r(   bug
patchlevels   &   r   test_wm_iconbitmapWmTest.test_wm_iconbitmap6  sG   TYY'*B/	$'*1-JJ&&J*J*JQ__.<002B7	*B/(OOKO0Q__.<TYY446;OOBO'Q__.3			r   r/   N)r0   r1   r2   r3   r  r  r4   r  r  s   @r   r  r     s     2=h r   r  c                   P   a  ] tR tRt o R tR tR tR tR tR t	R t
R	 tR
tV tR# )	EventTestiP  c                0   \         P                  ! V P                  ^^dR7      pVP                  4        V P                  P	                  4        V P                  P                  4        . pVP                  RVP                  4       VP                  4        V P                  P                  4        V P                  \        V4      ^V4       V^ ,          pV P                  VP                  \         P                  P                  4       V P                  VP                   V4       V P#                  VP$                  \&        4       V P                  VP(                  R4       V P                  VP*                  R4       V P-                  VR4       V P                  VP.                  R4       V P                  VP0                  R4       V P                  VP2                  R4       V P                  VP4                  R4       V P                  VP6                  R4       V P                  VP8                  R4       V P                  VP:                  R4       V P                  VP<                  R4       V P                  VP>                  R4       V P                  VP@                  R4       V P                  VPB                  R4       V P                  VPD                  R4       V P                  VPF                  ^ 4       V P                  \I        V4      R4       R# )   r   r   z	<FocusIn>r   Fr   z<FocusIn event>N)%r   r%   r$   rL   wait_visibilityr   bindrd  focus_forcer   r&   r>   r\  r   r   r.  r   rQ   r   r   r   r   assertNotHasAttrr   r   r   r   r   r   r   r   r   r   r   r   r   r'   r   r)   eventsr   s   &   r   
test_focusEventTest.test_focusR  s#   MM$))3s;			!!#		""$	{FMM*			Va01Iaffg//778ahh"ahh,&allE*a)%$'&D)4(t,$'4(d#d#4(4(!$a"34r   c                   \         P                  ! V P                  ^^dR7      pVP                  4        V P                  P	                  4        V P                  P                  4        . pVP                  RVP                  4       VP                  ^x^
R7       V P                  \        V4      ^V4       V^ ,          pV P                  VP                  \         P                  P                  4       V P                  VP                  V4       V P!                  VP"                  \$        4       V P                  VP&                  R4       V P                  VP(                  R4       V P+                  VR4       V P                  VP,                  R4       V P                  VP.                  R4       V P                  VP0                  R4       V P                  VP2                  R4       V P                  VP4                  R4       V P                  VP6                  R4       V P                  VP8                  ^4       V P                  VP:                  ^d4       V P                  VP<                  ^ 4       V P                  VP>                  ^ 4       V P                  VP@                  R4       V P                  VPB                  R4       V P                  VPD                  ^ 4       V P                  \G        V4      R4       R# )	r  r  z<Configure>)r   borderwidthr   Fr   z.<Configure event x=0 y=0 width=150 height=100>N)$r   r%   r$   rL   r  r   r  rd  	configurer&   r>   r\  r   r   r   r   rQ   r   r   r   r   r  r   r   r   r   r   r   r   r   r   r   r   r   r   r'   r  s   &   r   test_configureEventTest.test_configuret  s   MM$))3s;			!!#		""$	}fmm,	3B/Va01Iaffg//99:ahh"ahh,&allE*a)%$'&D)4(t,#&3'a a 4(4(!$a"RSr   c                p   \         P                  ! V P                  ^^dR7      pVP                  4        V P                  P	                  4        V P                  P                  4        . pVP                  RVP                  4       VP                  4        VP                  R4       V P                  \        V4      ^V4       V^ ,          pV P                  VP                  \         P                  P                  4       V P                  VP                   V4       V P#                  VP$                  \&        4       V P                  VP(                  ^ 4       V P                  VP*                  R4       V P-                  VR4       V P                  VP.                  R4       V P#                  VP0                  \&        4       V P3                  VP0                  ^ 4       V P                  VP4                  R4       V P#                  VP6                  \&        4       V P3                  VP6                  ^ 4       V P                  VP8                  R4       V P                  VP:                  \=        R4      4       V P                  VP>                  R4       V P                  VP@                  R4       V P                  VPB                  RVPE                  4       ,
          4       V P                  VPF                  RVPI                  4       ,
          4       V P                  VPJ                  R4       V P                  VPL                  R4       V P                  VPN                  ^ 4       V P                  \Q        V4      RVP0                  R	 R
VP6                   RVPB                   RVPF                   R2	4       R# )r  r  z
<KeyPress>z<Alt-z>Fr   r   zz<KeyPress event state=z#xz keysym=z keycode=z char='z' x=z y=>Nr   ))r   r%   r$   rL   r  r   r  rd  r  event_generater&   r>   r\  r   r   r&  r   rQ   r   r   r   r   r  r   r   r9   r   r   r   r   r   r   r   r   winfo_rootxr   winfo_rootyr   r   r   r'   r  s   &   r   test_event_generate_key_press'EventTest.test_event_generate_key_press  s   MM$))3s;			!!#		""$	|V]]+		#Va01Iaffg//889ahh"ahh,#allE*a)%aggs+AGGQ'%aii-AIIq)3's3x0$'4(b1==?23b1==?232&2&!$a$QWWRL 1  !		{,qsse3qsse1F	Gr   c                l   \         P                  ! V P                  ^^dR7      pVP                  4        V P                  P	                  4        V P                  P                  4        . pVP                  RVP                  4       VP                  R^d^2R7       V P                  \        V4      ^V4       V^ ,          pV P                  VP                  \         P                  P                  4       V P                  VP                  V4       V P!                  VP"                  \$        4       V P                  VP&                  ^ 4       V P                  VP(                  R4       V P                  VP*                  R4       V P                  VP,                  R4       V P                  VP.                  ^ 4       V P                  VP0                  R4       V P                  VP2                  R4       V P                  VP4                  R4       V P                  VP6                  R4       V P                  VP8                  R4       V P                  VP:                  R4       V P                  VP<                  ^d4       V P                  VP>                  ^24       V P                  VP@                  ^dVPC                  4       ,           4       V P                  VPD                  ^2VPG                  4       ,           4       V P                  VPH                  ^ 4       V P                  \K        V4      R4       R# )r  r  <Enter>r   r   Fr   z$<Enter event focus=False x=100 y=50>N)&r   r%   r$   rL   r  r   r  rd  r  r&   r>   r\  r   r   r,  r   rQ   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r   r  r   r'   r  s   &   r   test_event_generate_enter#EventTest.test_event_generate_enter  s7   MM$))3s;			!!#		""$	y&--(	cR0Va01Iaffg//556ahh"ahh,#allE*aggu%%!$&D)4(t,$'4(c"b!3#892#78!$a"HIr   c                x   \         P                  ! V P                  ^^dR7      pVP                  4        V P                  P	                  4        V P                  P                  4        . pVP                  RVP                  4       VP                  4        VP                  R^d^2R7       V P                  \        V4      ^V4       V^ ,          pV P                  VP                  \         P                  P                  4       V P                  VP                   V4       V P#                  VP$                  \&        4       V P                  VP(                  ^ 4       V P                  VP*                  R4       V P-                  VR4       V P                  VP.                  ^4       V P                  VP0                  ^ 4       V P                  VP2                  R4       V P                  VP4                  R4       V P                  VP6                  R4       V P                  VP8                  R4       V P                  VP:                  R4       V P                  VP<                  R4       V P                  VP>                  ^d4       V P                  VP@                  ^24       V P                  VPB                  VPE                  4       ^d,           4       V P                  VPF                  VPI                  4       ^2,           4       V P                  VPJ                  ^ 4       V P                  \M        V4      R4       R	# )
r  r  z<ButtonPress>z
<Button-1>r  Fr   r   z$<ButtonPress event num=1 x=100 y=50>N)'r   r%   r$   rL   r  r   r  rd  r  r  r&   r>   r\  r   r   r)  r   rQ   r   r   r   r   r  r   r   r   r   r   r   r   r   r   r   r   r  r   r  r   r'   r  s   &   r    test_event_generate_button_press*EventTest.test_event_generate_button_press  s>   MM$))3s;			!!#		""$	.		3Va01Iaffg//;;<ahh"ahh,#allE*a)"!$&D)4(t,$'4(c"b!1==?S#891==?R#78!$a"HIr   c                x   \         P                  ! V P                  ^^dR7      pVP                  4        V P                  P	                  4        V P                  P                  4        . pVP                  RVP                  4       VP                  4        VP                  R^d^2R7       V P                  \        V4      ^V4       V^ ,          pV P                  VP                  \         P                  P                  4       V P                  VP                   V4       V P#                  VP$                  \&        4       V P                  VP(                  ^ 4       V P                  VP*                  R4       V P-                  VR4       V P                  VP.                  R4       V P                  VP0                  R4       V P                  VP2                  R4       V P                  VP4                  R4       V P                  VP6                  R4       V P                  VP8                  R4       V P                  VP:                  R4       V P                  VP<                  R4       V P                  VP>                  ^d4       V P                  VP@                  ^24       V P                  VPB                  VPE                  4       ^d,           4       V P                  VPF                  VPI                  4       ^2,           4       V P                  VPJ                  ^ 4       V P                  \M        V4      R	4       R
# )r  r  z<Motion>z<B1-Motion>r  Fr   r      z'<Motion event state=Button1 x=100 y=50>N)'r   r%   r$   rL   r  r   r  rd  r  r  r&   r>   r\  r   r   r+  r   rQ   r   r   r   r   r  r   r   r   r   r   r   r   r   r   r   r   r  r   r  r   r'   r  s   &   r   test_event_generate_motion$EventTest.test_event_generate_motion  s>   MM$))3s;			!!#		""$	z6==)		#4Va01Iaffg//667ahh"ahh,#allE*a)%%(&D)4(t,$'4(c"b!1==?S#891==?R#78!$a"KLr   c                z   \         P                  ! V P                  ^^dR7      pVP                  4        V P                  P	                  4        V P                  P                  4        . pVP                  RVP                  4       VP                  4        VP                  R^d^2R	R7       V P                  \        V4      ^V4       V^ ,          pV P                  VP                  \         P                  P                  4       V P                  VP                   V4       V P#                  VP$                  \&        4       V P                  VP(                  R4       V P+                  VR4       V P                  VP,                  ^ 4       V P                  VP.                  R4       V P                  VP0                  ^ 4       V P                  VP2                  R4       V P                  VP4                  R4       V P                  VP6                  R4       V P                  VP8                  R4       V P                  VP:                  R4       V P                  VP<                  R4       V P                  VP>                  ^d4       V P                  VP@                  ^24       V P                  VPB                  VPE                  4       ^d,           4       V P                  VPF                  VPI                  4       ^2,           4       V P                  VPJ                  R	4       V P                  \M        V4      R4       R# )
r  r  z<MouseWheel>)r   r   r   Fr   r   z&<MouseWheel event delta=-5 x=100 y=50>N)'r   r%   r$   rL   r  r   r  rd  r  r  r&   r>   r\  r   r   rJ  r   rQ   r   r   r   r  r   r   r   r   r   r   r   r   r   r   r   r   r  r   r  r   r'   r  s   &   r   test_event_generate_mouse_wheel)EventTest.test_event_generate_mouse_wheel   s@   MM$))3s;			!!#		""$	~v}}-		3"B?Va01Iaffg//::;ahh"ahh,allE*a)#%!$&D)4(t,$'4(c"b!1==?S#891==?R#78"%a"JKr   c                L   \         P                  ! V P                  ^^dR7      pVP                  4        V P                  P	                  4        V P                  P                  4        . pVP                  RVP                  4       VP                  4        VP                  R^2R7       V P                  \        V4      ^V4       V^ ,          pV P                  VP                  \         P                  P                  4       V P                  VP                   V4       V P#                  VP$                  \&        4       V P                  VP(                  ^ 4       V P                  VP*                  R4       V P-                  VR4       V P                  VP.                  R4       V P                  VP0                  ^ 4       V P                  VP2                  R4       V P                  VP4                  R4       V P                  VP6                  R4       V P                  VP8                  R4       V P                  VP:                  R4       V P                  VP<                  R4       V P                  VP>                  ^24       V P                  VP@                  ^ 4       V P                  VPB                  VPE                  4       ^2,           4       V P                  VPF                  R	4       V P                  VPH                  ^ 4       V P                  \K        V4      R4       R# )
r  r  z<<Spam>>)r   Fr   r   z<VirtualEvent event x=50 y=0>Nr   )&r   r%   r$   rL   r  r   r  rd  r  r  r&   r>   r\  r   r   rG  r   rQ   r   r   r   r   r  r   r   r   r   r   r   r   r   r   r   r   r  r   r   r'   r  s   &   r   !test_generate_event_virtual_event+EventTest.test_generate_event_virtual_eventB  s3   MM$))3s;			!!#		""$	z6==)		r*Va01Iaffg//<<=ahh"ahh,#allE*a)%!$&D)4(t,$'4(b!a 1==?R#782&!$a+	.r   r/   N)r0   r1   r2   r3   r  r  r  r  r  r  r  r  r4   r  r  s   @r   r  r  P  s?      5DTB$GLJB JD MD LD!. !.r   r  c                      a a ] tR tRt oV 3R ltR tR tR tR tR t	R t
R	 tR
 tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR tRtVtV ;t# )BindTestif  c                   < \         SV `  4        V P                  p\        P                  ! V P                  R ^^dR7      V n        V P
                  P                  4        R# )Testclass_r   r   N)supersetUpr$   r   r%   framerL   )r   r$   	__class__s   & r   r  BindTest.setUph  s@    yy]]499V),S:


r   c                T    V P                  \        V P                  V4      V34       R # rr   r&   _info_commandsr$   r   funcids   &&r   assertCommandExistBindTest.assertCommandExisto  s    		6:VIFr   c                R    V P                  \        V P                  V4      R4       R # )Nr/   r  r  s   &&r   assertCommandNotExistBindTest.assertCommandNotExistr  s    		6:B?r   c                J   R pV P                   pV P                  VP                  4       R4       V P                  VP                  V4      R4       R pR pVP                  W4      pV P                  VP                  4       V34       VP                  V4      pV P                  WV4       V P	                  V4       VP                  WRR7      pVP                  V4      pV P                  WV4       V P                  Wv4       V P	                  V4       V P	                  V4       R# )<Control-Alt-Key-a>r   c                     R # rr   r/   r   s   &r   test1!BindTest.test_bind.<locals>.test1z      dr   c                     R # rr   r/   r  s   &r   test2!BindTest.test_bind.<locals>.test2{  r  r   TaddNr/   )r  r&   r  r   r  )r   eventr)   r  r  r  r   funcid2s   &       r   	test_bindBindTest.test_bindu  s    %JJ2&+%E8,f%'&&4&0f%g&'(r   c                   R pV P                   pV P                  VP                  4       R4       V P                  VP                  V4      R4       R pR pVP                  W4      pVP                  WRR7      pV P                  \        VP
                  4       VP                  V4       V P                  VP                  V4      R4       V P                  VP                  4       R4       R# )<Control-Alt-Key-b>r   c                     R # rr   r/   r  s   &r   r  #BindTest.test_unbind.<locals>.test1  r  r   c                     R # rr   r/   r  s   &r   r  #BindTest.test_unbind.<locals>.test2  r  r   Tr  Nr/   )r  r&   r  r   r^  unbind)r   r  r)   r  r  r  r  s   &      r   test_unbindBindTest.test_unbind  s    %JJ2&+%&&4&0)QXX.	+2&r   c                R  a
 V P                   pVP                  4        VP                  4        VP                  4        R pV P	                  VP                  4       R
4       V P	                  VP                  V4      R4       V
3R lpV
3R lpV
3R lpVP                  W#4      pVP                  W$RR7      pVP                  W%RR7      p. o
VP                  V4       V P	                  S
. RO4       VP                  W'4       VP                  V4      p	V P                  Wy4       V P                  Wi4       V P                  W4       V P	                  VP                  4       V34       V P                  V4       V P                  V4       V P                  V4       . o
VP                  V4       V P	                  S
RR.4       VP                  W&4       VP                  W(4       V P	                  VP                  V4      R4       V P	                  VP                  4       R
4       V P                  V4       V P                  V4       V P                  V4       . o
VP                  V4       V P	                  S
. 4       V P                  \        P                  VP                  W'4       R	# )z<Control-Alt-Key-c>r   c                 *   < SP                  R 4       R# )aNrd  r   r  s   &r   r  $BindTest.test_unbind2.<locals>.test1      fmmC(r   c                 *   < SP                  R 4       R# )r@   Nr  r  s   &r   r  $BindTest.test_unbind2.<locals>.test2  r  r   c                 *   < SP                  R 4       R# )cNr  r  s   &r   test3$BindTest.test_unbind2.<locals>.test3  r  r   Tr  r  r  Nr/   )r  r@   r  )r  r  r  r   r&   r  r  r  r   r   r  r  r   r   r   )r   r)   r  r  r  r  r  r  funcid3r   r  s   &         @r   test_unbind2BindTest.test_unbind2  s   JJ			%2&+(((%&&4&0&&4&0	1	 )f%g&E8,""7+'(	#s,		 +2&""6*""7+""7+	$ 	'**AHHeEr   c                t   R pV P                   pV P                  VP                  4       R4       V P                  VP                  V4      R4       R pR pR pVP                  W4      pVP                  WRR7      pVP                  V4      pV P                  Wx4       V P                  Wh4       V P	                  V4       V P	                  V4       VP                  W4      p	VP                  V4      pV P                  Wh4       V P                  Wx4       V P                  W4       V P	                  V	4       R# )	<Control-Alt-Key-d>r   c                     R # rr   r/   r  s   &r   r  (BindTest.test_bind_rebind.<locals>.test1  r  r   c                     R # rr   r/   r  s   &r   r  (BindTest.test_bind_rebind.<locals>.test2  r  r   c                     R # rr   r/   r  s   &r   r  (BindTest.test_bind_rebind.<locals>.test3  r  r   Tr  Nr/   )r  r&   r  r   r  r   )
r   r  r)   r  r  r  r  r  r   r  s
   &         r   test_bind_rebindBindTest.test_bind_rebind  s    %JJ2&+%&&4&0g&f%'(&&&()g&(r   c                l   R pV P                   P                  pV P                   P                  pV P                  \        V4       V P                  V! R4      R4       V P                  V! RV4      R4       V P                  VRV4       R pR pV! RW4      pV P                  V! R4      V34       V! RV4      pV P                  Wg4       V P                  V4       V! RWRR7      pV! RV4      pV P                  Wg4       V P                  W4       V P                  V4       V P                  V4       R# )	z<Control-Alt-Key-e>r  r   c                     R # rr   r/   r  s   &r   r  'BindTest.test_bind_class.<locals>.test1  r  r   c                     R # rr   r/   r  s   &r   r  'BindTest.test_bind_class.<locals>.test2  r  r   Tr  Nr/   )	r$   
bind_classunbind_classr   r^  r&   
addCleanupr   r  )	r   r  r*  r+  r  r  r  r   r  s	   &        r   test_bind_classBindTest.test_bind_class  s   %YY))
yy--)Z0F+R0FE2B7fe4FE1F+eX6FE*f%'VUt<FE*f%g&'(r   c                B   R pV P                   P                  pV P                   P                  pV P                  V! R4      R4       V P                  V! RV4      R4       V P	                  VRV4       R pR pV! RW4      pV! RWRR7      pV P                  \        V4       V P                  \        VR4       V! RV4       V P                  V! RV4      R4       V P                  V! R4      R4       V P                  V4       V P                  V4       V! RV4       R# )	z<Control-Alt-Key-f>r  r   c                     R # rr   r/   r  s   &r   r  )BindTest.test_unbind_class.<locals>.test1  r  r   c                     R # rr   r/   r  s   &r   r  )BindTest.test_unbind_class.<locals>.test2   r  r   Tr  Nr/   )r$   r*  r+  r&   r,  r   r^  r  )r   r  r*  r+  r  r  r  r  s   &       r   test_unbind_classBindTest.test_unbind_class  s    %YY))
yy--F+R0FE2B7fe4FE1VUt<)\2)\6:VU#FE2B7F+R0'(VU#r   c                   R pV P                   P                  pV P                   P                  pV P                  V! R4      R	4       V P                  V! RV4      R4       V P	                  VRV4       R pR pR pV! RW4      pV! RWRR7      pV! RV4      p	V P                  W4       V P                  Wy4       V P                  V4       V P                  V4       V! RW4      p
V! RV4      p	V P                  Wy4       V P                  W4       V P                  W4       V P                  V4       V P                  V4       V P                  V
4       R# )
z<Control-Alt-Key-g>r  r   c                     R # rr   r/   r  s   &r   r  .BindTest.test_bind_class_rebind.<locals>.test1  r  r   c                     R # rr   r/   r  s   &r   r  .BindTest.test_bind_class_rebind.<locals>.test2  r  r   c                     R # rr   r/   r  s   &r   r  .BindTest.test_bind_class_rebind.<locals>.test3  r  r   Tr  Nr/   )r$   r*  r+  r&   r,  r   r  r   )r   r  r*  r+  r  r  r  r  r  r   r  s   &          r   test_bind_class_rebindBindTest.test_bind_class_rebind  s.   %YY))
yy--F+R0FE2B7fe4FE1VUt<FE*g&f%'(VU2FE*()g&'((r   c                (   R pV P                   P                  pV P                   P                  pV P                  W! 4       4       V P	                  V! V4      R4       V P                  W14       R pR pV! W4      pV P                  W! 4       4       V! V4      pV P                  Wg4       V P                  V4       V! WRR7      pV! V4      pV P                  Wg4       V P                  W4       V P                  V4       V P                  V4       R# )z<Control-Alt-Key-h>r   c                     R # rr   r/   r  s   &r   r  %BindTest.test_bind_all.<locals>.test12  r  r   c                     R # rr   r/   r  s   &r   r  %BindTest.test_bind_all.<locals>.test23  r  r   Tr  Nr$   bind_all
unbind_allr   r&   r,  r   r  )	r   r  rE  rF  r  r  r  r   r  s	   &        r   test_bind_allBindTest.test_bind_all+  s    %99%%YY))

+%"-
*%'eXZ(%f%'5T2%f%g&'(r   c                   R pV P                   P                  pV P                   P                  pV P                  W! 4       4       V P	                  V! V4      R4       V P                  W14       R pR pV! W4      pV! WRR7      pV! V4       V P	                  V! V4      R4       V P                  W! 4       4       V P                  V4       V P                  V4       V! V4       R# )z<Control-Alt-Key-i>r   c                     R # rr   r/   r  s   &r   r  'BindTest.test_unbind_all.<locals>.test1I  r  r   c                     R # rr   r/   r  s   &r   r  'BindTest.test_unbind_all.<locals>.test2J  r  r   Tr  N)r$   rE  rF  r   r&   r,  r  )r   r  rE  rF  r  r  r  r  s   &       r   test_unbind_allBindTest.test_unbind_allB  s    %99%%YY))

+%"-
*%'5T25%"-
+'(5r   c                   R pV P                   P                  pV P                   P                  pV P                  W! 4       4       V P	                  V! V4      R4       V P                  W14       R pR pR pV! W4      pV! WRR7      pV! V4      p	V P                  W4       V P                  Wy4       V P                  V4       V P                  V4       V! W4      p
V! V4      p	V P                  Wy4       V P                  W4       V P                  W4       V P                  V4       V P                  V4       V P                  V
4       R# )z<Control-Alt-Key-j>r   c                     R # rr   r/   r  s   &r   r  ,BindTest.test_bind_all_rebind.<locals>.test1^  r  r   c                     R # rr   r/   r  s   &r   r  ,BindTest.test_bind_all_rebind.<locals>.test2_  r  r   c                     R # rr   r/   r  s   &r   r  ,BindTest.test_bind_all_rebind.<locals>.test3`  r  r   Tr  NrD  )r   r  rE  rF  r  r  r  r  r  r   r  s   &          r   test_bind_all_rebindBindTest.test_bind_all_rebindW  s   %99%%YY))

+%"-
*%'5T2%g&f%'(5(%()g&'((r   c                x   R pRpVP                  4        V P                  \        VP                  4       \	        V\
        P                  4      '       d   VP                  MVP                  p\	        V\
        P                  4      '       dC   V P                  \        VP                  V4       V P                  \        VP                  W#4       V P                  V! V4      R4       V P                  V! W#4      R4       R pR pVP                  W#V4      pV P                  V! V4      V34       V! W#4      pV P                  Wx4       V P                  V4       VP                  W#VRR7      p	V! W#4      pV P                  Wx4       V P                  W4       V P                  V4       V P                  V	4       R# )	selr  r   c                     R # rr   r/   r  s   &r   r  &BindTest._test_tag_bind.<locals>.test1~  r  r   c                     R # rr   r/   r  s   &r   r  &BindTest._test_tag_bind.<locals>.test2  r  r   Tr  Nr/   )rL   r   r^  tag_bind
isinstancer   Text	_tag_bindr&   r   r  )
r   r   tagr  r_  r  r  r  r   r  s
   &&        r   _test_tag_bindBindTest._test_tag_binds  sP   %	)QZZ0",Q"="=1;;1::a&&iS9iS@#+#-r2C.#1#%f%'**SD*9#%f%g&'(r   c                   R pRpVP                  4        \        V\        P                  4      '       d   VP                  MVP
                  pV P                  V! V4      R4       V P                  V! W#4      R4       R pR pVP                  W#V4      pVP                  W#VRR7      pV P                  \        VP                  V4       VP                  W#4       V P                  V! W#4      R4       V P                  V! V4      R4       R# )	rZ  r  r   c                     R # rr   r/   r  s   &r   r  (BindTest._test_tag_unbind.<locals>.test1  r  r   c                     R # rr   r/   r  s   &r   r  (BindTest._test_tag_unbind.<locals>.test2  r  r   Tr  Nr/   )
rL   r`  r   ra  rb  r_  r&   r   r^  
tag_unbind)	r   r   rc  r  r_  r  r  r  r  s	   &&       r   _test_tag_unbindBindTest._test_tag_unbind  s    %	",Q"="=1;;1::#+#-r2C.**SD*9)Q\\37	S #-r2#+r   c                   R pRpVP                  4        \        V\        P                  4      '       d   VP                  MVP
                  pV P                  V! V4      R	4       V P                  V! W#4      R4       R pR pR pVP                  W#V4      pVP                  W#VRR7      p	V! W#4      p
V P                  W4       V P                  W4       V P                  V4       V P                  V	4       VP                  W#V4      pV! W#4      p
V P                  W4       V P                  W4       V P                  W4       V P                  V4       R# )
rZ  r  r   c                     R # rr   r/   r  s   &r   r  -BindTest._test_tag_bind_rebind.<locals>.test1  r  r   c                     R # rr   r/   r  s   &r   r  -BindTest._test_tag_bind_rebind.<locals>.test2  r  r   c                     R # rr   r/   r  s   &r   r  -BindTest._test_tag_bind_rebind.<locals>.test3  r  r   Tr  Nr/   )
rL   r`  r   ra  rb  r_  r&   r   r  r   )r   r   rc  r  r_  r  r  r  r  r  r   r  s   &&          r   _test_tag_bind_rebindBindTest._test_tag_bind_rebind  s   %	",Q"="=1;;1::#+#-r2C.**SD*9#%g&f%'(**S/#%()g&(r   c                h    \         P                  ! V P                  4      pV P                  V4       R # rr   )r   Canvasr  rd  r   r  s   & r   test_canvas_tag_bindBindTest.test_canvas_tag_bind  s"    NN4::&Ar   c                h    \         P                  ! V P                  4      pV P                  V4       R # rr   )r   rx  r  rl  ry  s   & r   test_canvas_tag_unbindBindTest.test_canvas_tag_unbind  s"    NN4::&a r   c                h    \         P                  ! V P                  4      pV P                  V4       R # rr   )r   rx  r  ru  ry  s   & r   test_canvas_tag_bind_rebind$BindTest.test_canvas_tag_bind_rebind  s"    NN4::&""1%r   c                h    \         P                  ! V P                  4      pV P                  V4       R # rr   )r   ra  r  rd  r   r(   s   & r   test_text_tag_bindBindTest.test_text_tag_bind  s"    LL$Ar   c                h    \         P                  ! V P                  4      pV P                  V4       R # rr   )r   ra  r  rl  r  s   & r   test_text_tag_unbindBindTest.test_text_tag_unbind  s"    LL$a r   c                h    \         P                  ! V P                  4      pV P                  V4       R # rr   )r   ra  r  ru  r  s   & r   test_text_tag_bind_rebind"BindTest.test_text_tag_bind_rebind  s"    LL$""1%r   c                .   V P                   pV P                  V P                  P                  4       R4       V P                  VP                  4       \	        V4      RR R34       VP                  R4       V P                  VP                  4       R4       R# )r6   allr  N)r6   Tkr  )r  zb c)r  r&   r$   bindtagsr:   )r   r)   s   & r   test_bindtagsBindTest.test_bindtags  sn    JJ++-/ABAU'CD	

< |4r   c                  a R pV P                   p\        P                  ! V4      p\        P                  ! VR^^dR7      pVP	                  4        VP                  4        VP                  4        V P                  VP                  RV4       V P                  VP                  RV4       V P                  VP                  RV4       V P                  VP                  RV4       V P                  VP                  V4       V3R lpVP                  W! R4      4       VP                  RW! R4      4       VP                  RW! R	4      4       VP                  RW! R4      4       VP                  RW! R4      4       VP                  W! R
4      4       VP                  W! R4      4       . oVP                  V4       V P                  SR
V3RV3RV3RV3.4       . oVP                  V4       V P                  SRV3R	V3RV3.4       VP                  R4       . oVP                  V4       V P                  SRV3.4       R# )r  r  r  r#   rc  tag2c                    <a  VV 3R  l# )c                 >   < SP                  SV P                  34      # rr   )rd  r   )r   r  whats   &r   r   9BindTest.test_bind_events.<locals>.test.<locals>.<lambda>  s    V]]D!((+;<r   r/   )r  r  s   fr   test'BindTest.test_bind_events.<locals>.test  s	    <<r   r  zframe classztoplevel classr  toplevelN)rc  tag3)r$   r   r#   r%   rL   r  r   r,  r+  rF  rE  r*  r  r  r&   r  )r   r  r$   r(   r)   r  r  s   &     @r   test_bind_eventsBindTest.test_bind_events  s   yyT"MM!F#cB	))659)):u=))5%8))659/	= 	eT%[)tM':;
E40@+ABud5k2tF|4	ud7m$	ud:&'	aLAOAJ	"
 	 	Oq!AJ"
 	 	


?#	5!*.r   )r  )r0   r1   r2   r3   r  r  r  r   r	  r  r#  r-  r4  r=  rG  rN  rW  rd  rl  ru  rz  r}  r  r  r  r  r  r  r4   r  __classcell__)r  r  s   @@r   r  r  f  s     G@)*' ,F\)0)0$.)8).*)8)6,$)4!&!&5,/ ,/r   r  c                   8   a  ] tR tRt o R tR tR tR tRtV t	R# )DefaultRootTesti  c                ^   V P                  \        P                  R 4       V P                  \        P                  4       \        P
                  ! 4       p\        P
                  ! 4       p\        P
                  ! 4       pV P                  \        P                  V4       VP                  4        V P                  \        P                  V4       VP                  4        V P                  \        P                  4       VP                  4        V P                  \        P                  4       R# )TN)r\  r   _support_default_rootr   _default_rootr  r  )r   r$   root2root3s   &   r   test_default_root!DefaultRootTest.test_default_root
  s    g33T:'//0zz|



g++T2g++T2'//0'//0r   c                \   V P                  \        P                  R 4       V P                  \        P                  4       \        P
                  ! 4       pV P                  \        P                  V4       \        P                  ! 4        V P                  \        P                  R4       V P                  \        R4       \        P                  ! 4        V P                  \        P                  R4       V P                  \        R4       VP                  4        V P                  \        P                  R4       V P                  \        R4       \        P
                  ! 4       pV P                  \        P                  R4       V P                  \        R4       VP                  4        R# )TFr  N)	r\  r   r  r   r  r  NoDefaultRootr  r  rl   s   & r   test_no_default_root$DefaultRootTest.test_no_default_root  s   g33T:'//0zz|g++T2g33U;g7g33U;g7g33U;g7zz|g33U;g7r   c                   V P                  \        \        P                  R 4       \        P                  ! 4       pV P                  \        P                  ! R 4      R4       V P                  \        \        P                  R4       VP                  4        \        P                  ! 4        V P                  \        \        P                  R 4       R# )rV  TrS  N)	r   RuntimeErrorr   r]  r  r\  r   r  r  rl   s   & r   r`  DefaultRootTest.test_getboolean,  s    ,(:(:C@zz|g((-t4*g&8&8%@,(:(:C@r   c                j   V P                  \        \        P                  4       \        P                  ! 4       pVP                  VP                  4       \        P                  ! 4        VP                  4        \        P                  ! 4        V P                  \        \        P                  4       R # rr   )	r   r  r   rh  r  r   re  r  r  rl   s   & r   rj  DefaultRootTest.test_mainloop5  sj    ,(8(89zz|		",(8(89r   r/   N)
r0   r1   r2   r3   r  r  r`  rj  r4   r  r  s   @r   r  r    s     1(A: :r   r  c                 n    V P                   P                  V P                   P                  R RV4      4      # )r{   commands)r   r   r   )r   patterns   &&r   r  r  ?  s(    99vyy~~fj'JKKr   __main__rr   )r   unittestr   r   rL  r  r   test.test_tkinter.supportr   r   r   r   requiresTestCaser   r  r  r  r  r  r0   mainr/   r   r   <module>r     s         G G    qG~x00 qGhM^X.. M`S. 1 1 S.l_/~x00 _/D4:-x/@/@ 4:nL zMMO r   