
    z%i                    d   d dl Z d dlZd dlmZmZ d dlmZmZ d dlZd dlm	Z	 d dl
mZmZmZmZmZ d dlmZmZmZmZmZ  ed        G d d	e      Z G d
 dee j.                        Z G d dee      Z ee       G d dee j.                               Z ee       G d dee j.                               Z G d de      Z ee       G d dee j.                               Z ee       G d dee j.                               Z ee       G d dee j.                               Z eee       G d dee j.                               Z  eee       G d de e j.                               Z! eee       G d dee j.                               Z" ee       G d  d!ee j.                               Z# G d" d#ee j.                        Z$ ee       G d$ d%ee j.                               Z% ee       G d& d'ee j.                               Z& e jN                  ejP                  d(k(  d)       ee       G d* d+ee j.                                      Z) eee       G d, d-ee j.                               Z* eee       G d. d/e e j.                               Z+ ee       G d0 d1ee j.                               Z, ee       G d2 d3ee j.                               Z- ee       G d4 d5ee j.                               Z. G d6 d7ee j.                        Z/eee!e eeee$e*e"e&e#e%e)e-e.e+e,ee/fZ0e1d8k(  r e jd                          yy)9    N)ttkTclError)requires
gc_collect)
MockTclObj)AbstractTkTest
tk_versionget_tk_patchlevelsimulate_mouse_clickAbstractDefaultRootTest)add_standard_optionsAbstractWidgetTestStandardOptionsTestsIntegerSizeTestsPixelSizeTestsguic                       e Zd Zd Zd Zd Zy)StandardTtkOptionsTestsc                     | j                         }| j                  |d   d       d}t        | j                        dk  rd}| j	                  |dd|       | j                  d      }| j                  |d   d       y )	Nclass "attempt to change read-only option      r   beta   "Attempt to change read-only optionFooerrmsgclass_)createassertEqualr
   rootcheckInvalidParamselfwidgetr!   widget2s       N/home/uftp/.pyenv/versions/3.12.0/lib/python3.12/test/test_ttk/test_widgets.pytest_configure_classz,StandardTtkOptionsTests.test_configure_class   sy    "-3TYY'*>>7FvwfE++U++)51    c                 F   | j                         }| j                  |ddd       | j                  |ddd       | j                  |ddd       | j                  |dd	d
       | j                  |ddd       | j                  |dd       | j                  |ddd       y )Npaddingr   )0expected   )5)r4   r   )r5   6)r4   r      )r5   r6   7)r4   r   r7   r   )r5   r6   r8   8)5p6p7p8p r   r$   
checkParamr)   r*   s     r,   test_configure_paddingz.StandardTtkOptionsTests.test_configure_padding   s    	1v>	1v>	6JG	9!0 	 	2	<!5 	 	7	+CD	2;r.   c                    | j                         }| j                  |d   d       d}t        | d      rdt        | d      j	                         z  }| j                  |dd|       | j                  d      }| j                  |d	   d       y )
Nstyler   zLayout Foo not founddefault_orientzLayout %s.Foo not foundr   r    r"   r   )r$   r%   hasattrgetattrtitler'   r(   s       r,   test_configure_stylez,StandardTtkOptionsTests.test_configure_style(   s    "-'4)*/d$45;;=>Fvw 	 	++U++)51r.   N)__name__
__module____qualname__r-   rB   rI   r>   r.   r,   r   r      s    2
<
2r.   r   c                   ,     e Zd Z	  fdZd Zd Z xZS )
WidgetTestc                     t         |           t        j                  | j                  dd      | _        | j
                  j                          y )Nr   Text)widthtext)supersetUpr   Buttonr&   r*   packr)   	__class__s    r,   rT   zWidgetTest.setUp9   s4    jj!&Ar.   c           	         | j                   j                          | j                  | j                   j                  t	        | j                   j                         dz        t	        | j                   j                         dz              d       | j                  | j                   j                  dd      d       | j                  t        j                  | j                   j                  d d       | j                  t        j                  | j                   j                  dd        | j                  t        j                  | j                   j                  dd       y )N   labelr   r4   )
r*   updater%   identifyintwinfo_widthwinfo_heightassertRaisestkinterr   r)   s    r,   test_identifyzWidgetTest.test_identify>   s    --'')A-.((*Q./ 	 	--b"5r:'**DKK,@,@$J'**DKK,@,@!TJ'**DKK,@,@!RHr.   c                    | j                  | j                  j                         d       | j                  | j                  j                  dg      d       | j                  | j                  j                  dg      d       | j                  | j                  j                  dg      d       | j                  | j                  j                  ddg      d       | j                  | j                  j                  ddg      d       | j                  | j                  j                  ddg      d       d }| j                   | j                  j                  dg|d	fi d
did	d
dif       | j                  j                         }| j	                  t
        j                  | j                  j                  dg       | j	                  t
        j                  | j                  j                  ddg       | j                  || j                  j                                | j                  j                  ddg       | j                  | j                  j                         d       y )Nr>   	!disabledTdisabled)rg   active)z!activerh   c                 
    | |fS Nr>   )arg1kws     r,   test_cbz-WidgetTest.test_widget_state.<locals>.test_cbZ   s    8Or.   himsgtherebadstate)ri   )r%   r*   stateinstaterb   rc   r   )r)   rn   	currstates      r,   test_widget_statezWidgetTest.test_widget_stateJ   s   **,b1,,k];TB 	**J<8/J**J<8"=**K+BC#	% 	**K+BCRH**Hk+BCRH	,,,k]T/#W-/E7#$	&
 KK%%'	'**DKK,?,?L	'**DKK,?,?$	& 	DKK$5$5$78 	8[12**,l;r.   )rJ   rK   rL   rT   re   rv   __classcell__rX   s   @r,   rN   rN   6   s    6

I!<r.   rN   c                       e Zd ZdZy)AbstractToplevelTestFN)rJ   rK   rL   _conv_pixelsr>   r.   r,   rz   rz   n   s    Lr.   rz   c                       e Zd ZdZd Zy)	FrameTest)	borderwidthr   cursorheightr0   reliefrD   	takefocusrQ   c                 B    t        j                  | j                  fi |S rk   )r   Framer&   r)   kwargss     r,   r$   zFrameTest.createz       yy-f--r.   NrJ   rK   rL   OPTIONSr$   r>   r.   r,   r}   r}   r   s    G.r.   r}   c                   "    e Zd ZdZd Zd Zd Zy)LabelFrameTest)r~   r   r   r   labelanchorlabelwidgetr0   r   rD   r   rR   	underlinerQ   c                 B    t        j                  | j                  fi |S rk   )r   
LabelFramer&   r   s     r,   r$   zLabelFrameTest.create       ~~dii2622r.   c                     | j                         }| j                  |ddddddddd	d
dddd       | j                  |dd       y )Nr   eenesnnenwsseswwwnwsz!Bad label anchor specification {}r    center)r$   checkEnumParamr'   rA   s     r,   test_configure_labelanchorz)LabelFrameTest.test_configure_labelanchor   sT    FMT4dD#tT3d: 	 	< 	v}h?r.   c                     | j                         }t        j                  | j                  dd      }| j	                  |d|d       |j                          y )NMuppfoo)rR   namer   z.foor2   )r$   r   Labelr&   r@   destroy)r)   r*   r[   s      r,   test_configure_labelwidgetz)LabelFrameTest.test_configure_labelwidget   s@    		$))&u=uvFr.   N)rJ   rK   rL   r   r$   r   r   r>   r.   r,   r   r   ~   s    G3@r.   r   c                   $    e Zd Zd Zd Zd Zd Zy)AbstractLabelTestc                    t        j                  | j                  d      }t        j                  | j                  d      }| j                  |||d       | j                  ||dd       | j                  |||fd       | j                  |||d|fd       | j                  ||dd       | j	                  ||d	d
       y )Nimage1)masterr   image2)r   r2   ri   )r   ri   r   zimage1 active image2spamzimage "spam" doesn't existr    )rc   
PhotoImager&   r@   r'   )r)   r*   r   imager   s        r,   checkImageParamz!AbstractLabelTest.checkImageParam   s    ""$))(C##4998DekBhEuhEuh&?!? 	 	A&<!? 	 	AvtV4 	 	6r.   c                     dj                         }ddj                  |d d        d|d    }| j                         } | j                  |dg|d|i y )Nz,none text image center top bottom left rightzbad compound "{}": must be z, r\   z, or compoundr!   )splitjoinr$   r   )r)   optionsr!   r*   s       r,   test_configure_compoundz)AbstractLabelTest.test_configure_compound   sg    @FFH		'#2,'(gbk]< 	 FJHHHr.   c                 N    | j                         }| j                  |dddd       y )Nrs   ri   rh   normalr$   checkParamsrA   s     r,   test_configure_statez&AbstractLabelTest.test_configure_state   s#    (JIr.   c                 N    | j                         }| j                  |dddd       y )NrQ   i  inr   r   rA   s     r,   test_configure_widthz&AbstractLabelTest.test_configure_width   s#    #tQ7r.   N)rJ   rK   rL   r   r   r   r   r>   r.   r,   r   r      s    6IJ8r.   r   c                        e Zd ZdZdZd Zd Zy)	LabelTest)anchor
backgroundr~   r   r   r   font
foregroundr   justifyr0   r   rs   rD   r   rR   textvariabler   rQ   
wraplengthFc                 B    t        j                  | j                  fi |S rk   )r   r   r&   r   s     r,   r$   zLabelTest.create   r   r.   c                 J    | j                         }| j                  |dd       y )Nr   z3-Adobe-Helvetica-Medium-R-Normal--*-120-*-*-*-*-*-*r?   rA   s     r,   test_configure_fontzLabelTest.test_configure_font   s!    M	Or.   N)rJ   rK   rL   r   r{   r$   r   r>   r.   r,   r   r      s    G L.Or.   r   c                   "    e Zd ZdZd Zd Zd Zy)
ButtonTest)r   commandr   r   defaultr   r0   rs   rD   r   rR   r   r   rQ   c                 B    t        j                  | j                  fi |S rk   )r   rU   r&   r   s     r,   r$   zButtonTest.create   s    zz$)).v..r.   c                 N    | j                         }| j                  |dddd       y )Nr   r   ri   rh   r$   r   rA   s     r,   test_configure_defaultz!ButtonTest.test_configure_default   s#    FIx:Nr.   c                     g t        j                  | j                  fd      }|j                          | j	                         y )Nc                  &     j                  d      S N   appendsuccesss   r,   <lambda>z(ButtonTest.test_invoke.<locals>.<lambda>   s    GNN14E r.   r   )r   rU   r&   invoke
assertTrue)r)   btnr   s     @r,   test_invokezButtonTest.test_invoke   s2    jj,EF

 r.   N)rJ   rK   rL   r   r$   r   r   r>   r.   r,   r   r      s    G/O!r.   r   c                   .    e Zd ZdZd Zd Zd Zd Zd Zy)CheckbuttonTest)r   r   r   r   r   offvalueonvaluer0   rs   rD   r   rR   r   r   variablerQ   c                 B    t        j                  | j                  fi |S rk   )r   Checkbuttonr&   r   s     r,   r$   zCheckbuttonTest.create       tyy3F33r.   c                 P    | j                         }| j                  |ddddd       y )Nr   r   ffffff@r   
any stringr   rA   s     r,   test_configure_offvaluez'CheckbuttonTest.test_configure_offvalue   s%    QRFr.   c                 P    | j                         }| j                  |ddddd       y )Nr   r   r   r   r   r   rA   s     r,   test_configure_onvaluez&CheckbuttonTest.test_configure_onvalue   s%    AsBEr.   c                    g fd}t        j                  | j                  |      }| j                  |j	                         d       | j                  t        j                  |j                  j                  |d          |j                         }| j                  |d       | j                  |d   |j                  j                  |d                | j                         d|d<   |j                         }| j                  t        |             | j                  t              d	       | j                  |d
   |j                  j                  |d                y )Nc                  (     j                  d       yNr   cb test calledr   r   s   r,   cb_testz,CheckbuttonTest.test_invoke.<locals>.cb_test       NN1#r.   r   )	alternater   r   r   r   r   r   r   )r   r   r&   r%   rs   rb   rc   r   tkglobalgetvarr   r   assertFalsestrassertLessEquallen)r)   r   cbtnresr   s       @r,   r   zCheckbuttonTest.test_invoke   s    	$ tyy': 	7'**DGG,@,@	 kkm./iGG  j!12	4 YkkmS"S\1-j)GG  j!12	4r.   c                    g }g }t        d      D ]  }t        j                  | j                        }|j	                          |j                  |       dD ]:  }t        j                  ||      }|j	                          |j                  |       <  |D cg c]  }t        |d          }}t        |       | j                  t        t        |            d|       y c c}w )NrZ   ABrR   r      )ranger   r   r&   rV   r   r   r   printr%   r   set)r)   framesbuttonsifjb	variabless           r,   test_unique_variablesz%CheckbuttonTest.test_unique_variables  s    q 	"A		$))$AFFHMM! "OOAA.q!"		" 299AS:'9	9iS^,a; :s   C N)	rJ   rK   rL   r   r$   r   r   r   r  r>   r.   r,   r   r      s$    G4GF44<r.   r   c                        e Zd ZdZej
                  dk(  rdndZ fdZd Zd Z	d Z
d	 Zd
 Zd Zd Zd Zd Zd Zd Z xZS )	EntryTest)r   r   r   exportselectionr   r   invalidcommandr   showrs   rD   r   r   validatevalidatecommandrQ   xscrollcommanddarwinzEntry.fieldtextareac                 L    t         |           | j                         | _        y rk   )rS   rT   r$   entryrW   s    r,   rT   zEntryTest.setUp/      [[]
r.   c                 B    t        j                  | j                  fi |S rk   )r   Entryr&   r   s     r,   r$   zEntryTest.create3  r   r.   c                 H    | j                         }| j                  |d       y )Nr  r$   checkCommandParamrA   s     r,   test_configure_invalidcommandz'EntryTest.test_configure_invalidcommand6  s    v'78r.   c                     | j                         }| j                  |dd       | j                  |dd       | j                  |dd       y )Nr  *r    r?   rA   s     r,   test_configure_showzEntryTest.test_configure_show:  s=    ,+,r.   c                 N    | j                         }| j                  |dddd       y )Nrs   rh   r   readonlyr   rA   s     r,   r   zEntryTest.test_configure_state@  s&    #Xz	;r.   c           
      T    | j                         }| j                  |ddddddd       y )Nr  allkeyfocusfocusinfocusoutnoner   rA   s     r,   test_configure_validatez!EntryTest.test_configure_validateE  s-    FJugy*f	Fr.   c                 H    | j                         }| j                  |d       y )Nr  r  rA   s     r,   test_configure_validatecommandz(EntryTest.test_configure_validatecommandJ  s    v'89r.   c                 ,   | j                  | j                  j                  d             | j                  t        j
                  | j                  j                  d       | j                  t        j
                  | j                  j                  d        y )Nr   noindex)assertIsBoundingBoxr  bboxrb   rc   r   rd   s    r,   	test_bboxzEntryTest.test_bboxN  s]      !34'**DJJOOYG'**DJJOOTBr.   c                 t   | j                   j                          | j                   j                          | j                  | j                   j	                  dd      | j
                         | j                  | j                   j	                  dd      d       | j                  t        j                  | j                   j                  d d       | j                  t        j                  | j                   j                  dd        | j                  t        j                  | j                   j                  dd       y )Nr4   r\   r   )	r  rV   r]   r%   r^   IDENTIFY_ASrb   rc   r   rd   s    r,   re   zEntryTest.test_identifyS  s    



 	,,Q2D4D4DE,,R4b9'**DJJ,?,?qI'**DJJ,?,?DI'**DJJ,?,?BGr.   c                    g fd}d| j                   d<   d | j                   d<   || j                   d<   | j                   j                          | j                         d| j                   d<   | j                   j                          | j                  t	              d       || j                   d<   d	 | j                   d<   | j                   j                          | j                  t	              d       d| j                   d<   | j                   j                          | j                  t	              d       d
| j                   d<   | j                  t        j                  | j                   j                         y )Nc                  &     j                  d      S NTr   r   s   r,   r   z3EntryTest.test_validation_options.<locals>.<lambda>a  s    w~~d3 r.   r-  r  c                       y)NFr>   r>   r.   r,   r   z3EntryTest.test_validation_options.<locals>.<lambda>d      r.   r  r  r   r   c                       yr:  r>   r>   r.   r,   r   z3EntryTest.test_validation_options.<locals>.<lambda>o  r<  r.   T)r  r  r   r%   r   rb   rc   r   )r)   test_invalidr   s     @r,   test_validation_optionsz!EntryTest.test_validation_options_  s,   3!'

:(5

$%'3

#$

 ')

#$

Wq)'3

#$(4

$%

Wq)(*

$%

Wq)(,

$%'**DJJ,?,?@r.   c                 r   g fd}d| j                   d<   | j                   j                  |      df| j                   d<   | j                   j                  dd       | j                   j                  dd       | j                  d	d
g       | j                  | j                   j	                         d       y )Nc                     d| j                         cxk  rdk  sn j                  d       yj                  d       yNazFT)lowerr   )	to_insert
validations    r,   r  z+EntryTest.test_validation.<locals>.validate|  s9    )//+2s2!!%(d#r.   r)  r  z%Sr  endr   rC  FT)r  registerinsertr%   get)r)   r  rG  s     @r,   test_validationzEntryTest.test_validationz  s    
	 "'

:(,

(;(;H(Et(K

$%

%#

%%eT]3)3/r.   c                    d }| j                   j                  |      df| j                   d<   | j                   j                  dd       | j                  | j                   j	                         d       | j                  | j                   j                         d       | j                   j                  dd       | j                  | j                   j                         d	       | j                   j                  dd
       | j                  | j                   j	                         d       | j                  | j                   j                         d       | j                   j                  d       | j                  | j                   j	                         d       | j                  | j                   j                         d       y )Nc                 N    | D ]   }d|j                         cxk  rdk  r y  y yrB  )rE  )contentletters     r,   r  z-EntryTest.test_revalidation.<locals>.validate  s4    ! !flln33  4 ! r.   z%Pr  rH  avocadoTr>   r   r   a1bF)invalidr   )r  rI  rJ  r%   r  rs   deleterK  )r)   r  s     r,   test_revalidationzEntryTest.test_revalidation  sC   	 )-

(;(;H(Et(K

$%

%+,,.5))+R0

!U#)2.

%',,.6))+];

!,,.5))+R0r.   )rJ   rK   rL   r   sysplatformr7  rT   r$   r   r$  r   r.  r0  r5  re   r?  rL  rU  rw   rx   s   @r,   r  r  $  s^    G $'<<8#;-K#.9-;
F
:C

HA60"1r.   r  c                   l     e Zd ZdZej
                  dk(  rdndZ fdZd Zd Z	d Z
d	 Zd
 Zd Z xZS )ComboboxTest)r   r   r   r  r   r   r   r  r   postcommandr  rs   rD   r   r   r  r  valuesrQ   r  r  zCombobox.buttonr  c                 L    t         |           | j                         | _        y rk   )rS   rT   r$   comborW   s    r,   rT   zComboboxTest.setUp  r  r.   c                 B    t        j                  | j                  fi |S rk   )r   Comboboxr&   r   s     r,   r$   zComboboxTest.create      ||DII000r.   c           
      T    | j                         }| j                  |ddddddd       y )Nr   d   LY@fffffY@r   1ir   rA   s     r,   test_configure_heightz"ComboboxTest.test_configure_height  s)    3udAtLr.   c                 p   | j                   j                         }|dz
  d}}t        j                  dk7  r,| j	                  | j                   j                  ||      d       | j                   j                  d||       | j                   j                  d||       | j                   j                          y )Nr4   r  .*downarrow\Z<ButtonPress-1>xy<ButtonRelease-1>)r]  r`   rV  rW  assertRegexr^   event_generateupdate_idletasks)r)   rQ   rl  rm  s       r,   _show_drop_down_listboxz$ComboboxTest._show_drop_down_listbox  s    

&&(qy!1<<8#TZZ00A68HI

!!"3qA!>

!!"5a!@

##%r.   c                    g dg| j                   d<   | j                   j                  dfd       | j                   j                          | j                   j                          | j                   j	                         }| j                          | j                   j                          | j                   j                  d       | j                   j                          | j                         y )Nr   r[  z<<ComboboxSelected>>c                 &    j                  d      S r:  r   evtr   s    r,   r   z1ComboboxTest.test_virtual_event.<locals>.<lambda>  s    t, r.   z<Return>)r]  bindrV   r]   ra   rr  rp  r   )r)   r   r   s     @r,   test_virtual_eventzComboboxTest.test_virtual_event  s     !s

8

.,	.



((*$$&



!!*-

 r.   c                 L   g fd| j                   d<   | j                   j                          | j                   j                          | j                          | j	                         d| j                   d<   | j                          | j                  t              d       y )Nc                  &     j                  d      S r:  r   r   s   r,   r   z9ComboboxTest.test_configure_postcommand.<locals>.<lambda>  s    GNN4,@ r.   rZ  r   r   )r]  rV   r]   rr  r   r%   r   r)   r   s    @r,   test_configure_postcommandz'ComboboxTest.test_configure_postcommand  s|    $@

=!



$$&  %'

=!$$&Wq)r.   c                      fd} j                   j                  d   d        |dd        j                   j                  ddd        j                   j                  dd        j                   j                  dd        j                   j                  dd       g d	 j                  d<    j                  j                  d
        |d
d        j                  j	                  d        |dd        j                  j                  d        |dd        j                  j                  d       d j                  d<    |dd        j                  j                  g d        j                   j                  d    j                  rdnd       g d j                  d<    j                   j                  d    j                  rdnd       g d j                  d<    j                   j                  d    j                  rdnd        j                  t        j                   j                  j                  t         j                  d                 j                  t        j                   j                  j                  d       t        j                   j                  g d      } j                  |d    j                  rdnd       |j                          y )Nc                     j                  j                  j                         |        j                  j                  j                         |       y rk   )r%   r]  rK  current)getvalcurrvalr)   s     r,   check_get_currentz=ComboboxTest.test_configure_values.<locals>.check_get_current  s;    TZZ^^-v6TZZ//17;r.   r[  r   r\   mon tue wed thurmontuewedthurr2   *   gQ	@r   r   rC  r   cr  rZ   r   rC  d)r   rZ   r   r   r   r   rZ   r[  1r   21 {} 2za bza	bza
b{a b} {a	b} {a
b}za\tbz"a"z} {a\\tb {"a"} \}\ \{r   rZ   r   r  r  r   1 2 {})r%   r]  r@   r  r  	configurewantobjectsrb   rc   r   r   r   r_  r&   r   )r)   r  combo2s   `  r,   test_configure_valuesz"ComboboxTest.test_configure_values  s]   	< 	H-r2"b!

H.@!> 	 	@

H.KL

H.JK

Hb1,

8

s#q!

1#q!

s#r" 	

r,

8"a  	

J/H-+/+;+;!	#
  7

8H-484D4D0.	0
  7

8H-484D4D0.	0
 	'**DJJ,>,>

8$%	' 	'**DJJ,>,>C dii
;)+/+;+;	Kr.   )rJ   rK   rL   r   rV  rW  r7  rT   r$   rg  rr  rx  r|  r  rw   rx   s   @r,   rY  rY    sC    G (+||x'?#ZK#1M&!"*:r.   rY  c                   L     e Zd ZdZ fdZd Zd Zd Zd Zd Z	d Z
d	 Z xZS )
PanedWindowTest)r   r   r   orientrD   r   rQ   c                 L    t         |           | j                         | _        y rk   )rS   rT   r$   panedrW   s    r,   rT   zPanedWindowTest.setUp(  r  r.   c                 B    t        j                  | j                  fi |S rk   )r   PanedWindowr&   r   s     r,   r$   zPanedWindowTest.create,  r   r.   c                 "   | j                         }| j                  t        |d         d       d}t        | j                        dk  rd}| j                  |dd|       | j                  d      }| j                  t        |d         d       y )	Nr  verticalr   r   r   
horizontalr    )r  )r$   r%   r   r
   r&   r'   r(   s       r,   test_configure_orientz%PanedWindowTest.test_configure_orient/  s    VH-.
;3TYY'*>>7Fvx 	 	++\+2WX./>r.   c                    t        j                  | j                        }t        j                  |      }| j                  t        j
                  | j                  j                  |       |j                          |j                          t        j                  | j                        }t        j                  |      }| j                  t        j
                  | j                  j                  |       |j                          |j                          t        j                  | j                        }| j                  j                  |       | j                  t        j
                  | j                  j                  |       t        j                  | j                        }| j                  j                  |       | j                  | j                  j                  d      | j                  j                  d             | j                  t        j
                  | j                  j                  d       |j                          |j                          | j                  t        j
                  | j                  j                  d       y )Nr   r   rZ   )r   r   r  rb   rc   r   addr   r&   r%   pane)r)   r[   child
good_childother_childs        r,   test_addzPanedWindowTest.test_add:  s   		$**%		% '**DJJNNEB		$))$		% '**DJJNNEBYYtyy)


z"'**DJJNNJGii

+

{#+TZZ__Q-?@'**DJJOOQ?'**DJJOOQ?r.   c                    | j                  t        j                  | j                  j                  d        | j                  t        j                  | j                  j                  d       | j                  j                  t        j                  | j                               | j                  j	                  d       | j                  t        j                  | j                  j                  d       y )Nr   )	rb   rc   r   r  forgetr  r   r   r&   rd   s    r,   test_forgetzPanedWindowTest.test_forgetU  s    '**DJJ,=,=tD'**DJJ,=,=qA

syy+,

!'**DJJ,=,=qAr.   c                 ^   | j                  t        j                  | j                  j                  d d       | j                  t        j                  | j                  j                  dd        | j                  t        j                  | j                  j                  dd       t        j                  | j                        }t        j                  | j                        }t        j                  | j                        }| j                  t        j                  | j                  j                  d|       | j                  j	                  d|       | j                  j	                  d|       | j                  | j                  j                         t        |      t        |      f       | j                  j	                  d|       | j                  | j                  j                         t        |      t        |      f       | j                  j	                  d|       | j                  | j                  j                         t        |      t        |      t        |      f       | j                  j                         }| j                  j	                  d|       | j                  || j                  j                                | j                  j	                  ||       | j                  | j                  j                         t        |      t        |      t        |      f       y )Nr   rH  )rb   rc   r   r  rJ  r   r   r&   r%   panesr   )r)   r  child2child3r  s        r,   test_insertzPanedWindowTest.test_insert]  s-   '**DJJ,=,=tQG'**DJJ,=,=q$G'**DJJ,=,=q!D		$))$499%499%'**DJJ,=,=q%H

%(

!U#))+c%j#f+-FG

!V$))+c&k3u:-FG

%())+[#e*c&k2	4 

  "

%(

 0 0 23
 	

&&)))+[#f+s5z2	4r.   c                 2   | j                  t        j                  | j                  j                  d       t        j                  | j                        }| j                  j                  |       | j                  | j                  j	                  d      t               | j                  | j                  j	                  dd       | j                  rdnd       | j                  | j                  j	                  dd      | j                  rdnd       | j                  | j                  j	                  d      | j                  j	                  t        |                   | j                  t        j                  | j                  j                  dd       y )Nr   weightr1   r  	somevalue)	badoption)rb   rc   r   r  r  r   r   r&   r  assertIsInstancedictr%   r  r   )r)   r  s     r,   	test_panezPanedWindowTest.test_pane  s   '**DJJOOQ?		$))$

udjjooa0$748"..C	9 	H5"..C	9+TZZ__SZ-HI'**DJJOOQ! 	 	#r.   c                 f   | j                  t        j                  | j                  j                  d        | j                  t        j                  | j                  j                  d       | j                  t        j                  | j                  j                  d       t        j                  | j                  d      }| j                  j                  |d       | j                  t        j                  | j                  j                  d       t        j                  | j                  d      }| j                  j                  |       | j                  t        j                  | j                  j                  d       | j                  j                  dd	
       | j                  j	                  d      }| j                  j	                  dd       | j                  || j                  j	                  d             | j                  | j                  j	                  d      t               y )Nr   r   rC  r  r   r  r  Tboth)expandfilli  )rb   rc   r   r  sashposr   r   r  rV   assertNotEqualr  r_   )r)   r  r  curr_poss       r,   test_sashposzPanedWindowTest.test_sashpos  sr   '**DJJ,>,>E'**DJJ,>,>C'**DJJ,>,>B		$**3/

uQ''**DJJ,>,>B4::C0

v'**DJJ,>,>B

t&1::%%a(

1d#Hdjj&8&8&;<djj003S9r.   )rJ   rK   rL   r   rT   r$   r  r  r  r  r  r  rw   rx   s   @r,   r  r  !  s5    G
#4	?@6B 4D# :r.   r  c                   "    e Zd ZdZd Zd Zd Zy)RadiobuttonTest)r   r   r   r   r   r0   rs   rD   r   rR   r   r   valuer   rQ   c                 B    t        j                  | j                  fi |S rk   )r   Radiobuttonr&   r   s     r,   r$   zRadiobuttonTest.create  r   r.   c                 P    | j                         }| j                  |ddddd       y )Nr  r   r   r   r   r   rA   s     r,   test_configure_valuez$RadiobuttonTest.test_configure_value  s%    !S"lCr.   c           	         g fd}t        j                  | j                        }t        j                  | j                  ||d      }t        j                  | j                  ||d      }| j
                  rd }nt        }|j                         }| j                  |d       | j                   ||d         |j                                | j                  |j                          ||j                  j                  |d                      | j                         d	|d
<   |j                         }| j                  t        |      d	       | j                  t              d       | j                   ||d         |j                                | j                  |j                          ||j                  j                  |d                      | j                  t        |d         t        |d                y )Nc                  (     j                  d       yr   r   r   s   r,   r   z6RadiobuttonTest.test_configure_invoke.<locals>.cb_test  r   r.   r   )r   r   r  r   c                     | S rk   r>   rl  s    r,   r   z7RadiobuttonTest.test_configure_invoke.<locals>.<lambda>      Q r.   r   r  r   r   r   )rc   IntVarr&   r   r  r  r_   r   r%   rK  r   r   r   r   r   r   )r)   r   myvarr   cbtn2convr   r   s          @r,   test_configure_invokez%RadiobuttonTest.test_configure_invoke  s   	$ tyy)tyy'(-Q8		7).a9 DDkkm./d7m,eiik:%%d:&678	: illnS2&S\1-eGn-uyy{;%%d:&678	: 	T*-.E*4E0FGr.   N)rJ   rK   rL   r   r$   r  r  r>   r.   r,   r  r    s    G4D Hr.   r  c                   "    e Zd ZdZd Zd Zd Zy)MenubuttonTest)r   r   r   	directionr   menur0   rs   rD   r   rR   r   r   rQ   c                 B    t        j                  | j                  fi |S rk   )r   
Menubuttonr&   r   s     r,   r$   zMenubuttonTest.create  r   r.   c           	      R    | j                         }| j                  |dddddd       y )Nr  abovebelowleftrightflushr   rA   s     r,   test_directionzMenubuttonTest.test_direction  s*    FK&'7	<r.   c                     | j                         }t        j                  |d      }| j                  |d|t               |j                          y )Nr  )r   r  )r$   rc   Menur@   r   r   )r)   r*   r  s      r,   test_configure_menuz"MenubuttonTest.test_configure_menu  s:    ||F037r.   N)rJ   rK   rL   r   r$   r  r  r>   r.   r,   r  r    s    G3<
r.   r  c                   Z     e Zd ZdZdZdZ fdZd Zd Zd Z	d Z
d	 Zd
 Zd Zd Z xZS )	ScaleTest)r   r   r   fromlengthr  rD   r   tor  r   Fr  c                     t         |           | j                         | _        | j                  j	                          | j                  j                          y rk   )rS   rT   r$   scalerV   r]   rW   s    r,   rT   zScaleTest.setUp  s7    [[]




r.   c                 B    t        j                  | j                  fi |S rk   )r   Scaler&   r   s     r,   r$   zScaleTest.create  r   r.   c                 R    | j                         }| j                  |ddddd       y )Nr  rb  -@333333.@Fr  r$   checkFloatParamrA   s     r,   test_configure_fromzScaleTest.test_configure_from   s(    VVS$5Ir.   c                 P    | j                         }| j                  |ddddd       y )Nr     gffffff`@g33333`@5ir$   checkPixelsParamrA   s     r,   test_configure_lengthzScaleTest.test_configure_length  s%    fhUE4Hr.   c           	      T    | j                         }| j                  |dddddd       y )Nr  ,  r  r  Fr  r  rA   s     r,   test_configure_tozScaleTest.test_configure_to  s*    VT3dCeLr.   c           	      T    | j                         }| j                  |dddddd       y )Nr  r  r  r  r  Fr  r  rA   s     r,   r  zScaleTest.test_configure_value  s*    VWc4sOr.   c                    g d| j                   j                  dfd      }d| j                   d<   d| j                   d<   d| j                   d<   | j                         g d| j                   j                  d	d
       | j                   j                  dd       | j                   j                  d       | j                         y )N)r   r   r   z<<RangeChanged>>c                 $    j                         S rk   )pop)rv  failures    r,   r   z-ScaleTest.test_custom_event.<locals>.<lambda>  s     r.   
   r  from_r   r  rZ   r4   )r
  r  r   )r  )r  rw  r   r  )r)   funcidr  s     @r,   test_custom_eventzScaleTest.test_custom_event  s    !35NO

6 

7

4!

1+

1,

#!r.   c                 2   | j                   rd }nt        }| j                  j                         }| j	                  | j                  j                  |d      | j                  d          | j	                   || j                  j                  dd             || j                  d                | j	                  | j                  j                         | j                  d          d| j                  d<   | j	                  | j                  j                         | j                  d          | j                  t        j                  | j                  j
                  dd       | j                  t        j                  | j                  j
                  dd       y )Nc                     | S rk   r>   r  s    r,   r   z$ScaleTest.test_get.<locals>.<lambda>$  r  r.   r   r  r  r     r   )	r  floatr  r`   r%   rK  rb   rc   r   )r)   r  scale_widths      r,   test_getzScaleTest.test_get"  s   DDjj,,.Q7D9IJdjjnnQ23T$**V:L5MN)4::g+>? 

7)4::g+>?'**DJJNNBB'**DJJNNArBr.   c                    | j                   rd }nt        } || j                  d         }|dz   }| j                  j                  |       | j	                   || j                  j                               |        || j                  d         }| j                  j                  |dz
         | j	                   || j                  j                               |       t        j                  | j                        }|| j                  d<   |j                  |dz          | j	                   || j                  j                               |j                                | j	                   || j                  j                               |dz          ~t                |dz   | j                  d<   | j	                   || j                  j                               |dz          | j	                   || j                  j                                || j                  d                | j	                   || j                  j                  d	d	            |       | j	                   || j                  j                  | j                  j                         d	            |       | j                  t        j                  | j                  j                  d        y )
Nc                     | S rk   r>   r  s    r,   r   z$ScaleTest.test_set.<locals>.<lambda>5  r  r.   r  r	  r  r   r   r4   r  r   )r  r  r  r  r%   rK  rc   	DoubleVarr&   r   r`   rb   r   )r)   r  maxnew_maxminvars         r,   test_setzScaleTest.test_set3  s   DD 4::d#$(

wdjjnn./54::f%&

sQwdjjnn./5 		*!$

:adjjnn./;djjnn./q9 "Bh

7djjnn./r:djjnn./djj6I1JK 	djjnnQ23S9djjnnTZZ-C-C-EqIJCP'**DJJNNDAr.   )rJ   rK   rL   r   r{   rE   rT   r$   r  r  r  r  r  r  r  rw   rx   s   @r,   r  r    sI    G L!N.JIMP"$C""Br.   r  c                   <    e Zd ZdZdZdZd Zd Zd Zd Z	d Z
d	 Zy
)ProgressbarTest)r   r   r  r  modemaximumphaserD   r   r  r   Fr  c                 B    t        j                  | j                  fi |S rk   )r   Progressbarr&   r   s     r,   r$   zProgressbarTest.createb  r   r.   c                 N    | j                         }| j                  |dddd       y )Nr  gfffffY@gYL@2ir  rA   s     r,   r  z%ProgressbarTest.test_configure_lengthe  s#    fhtTBr.   c           	      T    | j                         }| j                  |dddddd       y )Nr  fffffb@lS@r   r  Fr  r  rA   s     r,   test_configure_maximumz&ProgressbarTest.test_configure_maximumi  s*    VYtQ%Pr.   c                 L    | j                         }| j                  |ddd       y )Nr  determinateindeterminater   rA   s     r,   test_configure_modez#ProgressbarTest.test_configure_modem  s!    FFM?Kr.   c                      y rk   r>   rd   s    r,   test_configure_phasez$ProgressbarTest.test_configure_phaseq  s    r.   c           	      T    | j                         }| j                  |dddddd       y )Nr  r&  r'  r   r  Fr  r  rA   s     r,   r  z$ProgressbarTest.test_configure_valueu  s/    VWeT1c"' 	 	)r.   N)rJ   rK   rL   r   r{   rE   r$   r  r(  r,  r.  r  r>   r.   r,   r  r  X  s6    G
 L!N4CQL)r.   r  r  z"ttk.Scrollbar is special on MacOSXc                       e Zd ZdZdZd Zy)ScrollbarTest)r   r   r   r  rD   r   r  c                 B    t        j                  | j                  fi |S rk   )r   	Scrollbarr&   r   s     r,   r$   zScrollbarTest.create      }}TYY1&11r.   NrJ   rK   rL   r   rE   r$   r>   r.   r,   r1  r1  {  s    G  N2r.   r1  c                   ^     e Zd ZdZ fdZd Zd Zd Zd Zd Z	d Z
d	 Zd
 Zd Zd Z xZS )NotebookTest)r   r   r   r0   rD   r   rQ   c                 |   t         |           | j                  d      | _        t	        j
                  | j                        | _        t	        j
                  | j                        | _        | j                  j                  | j                  d       | j                  j                  | j                  d       y )Nr   r0   rC  r  r  )
rS   rT   r$   nbr   r   r&   child1r  r  rW   s    r,   rT   zNotebookTest.setUp  sv    ++a+(ii		*ii		*DKKc*DKKc*r.   c                 B    t        j                  | j                  fi |S rk   )r   Notebookr&   r   s     r,   r$   zNotebookTest.create  r`  r.   c                    | j                   j                  d       | j                   j                  | j                         | j	                  t
        j                  | j                   j                  | j                         | j                  | j                   j                  d      d       | j                   j                  | j                         | j                  | j                   j                  d      d       | j                   j                  | j                         | j                  | j                   j                  d             | j                   j                  | j                  d       | j                   j                          | j                   j                          t         j"                  dk(  rd}nd	}| j                  | j                   j                  |      | j                   j                  d             t%        d
dd
      D ](  }	 | j                   j                  d|z  d       dk(  r y * | j'                  d       y # t
        j                  $ r Y Rw xY w)Nr   rH  r   r  rC  r  r  z@20,5z@5,5r4   rb  z@%d, 5zTab with text 'a' not found)r:  r  hider  rb   rc   r   tabr;  r%   indexr  selectr   rV   r]   rV  rW  r  fail)r)   tb_idxr  s      r,   test_tab_identifiersz!NotebookTest.test_tab_identifiers  s   qT[[!'**DGGKKEu-q1DKK u-q1t{{#I./DKKc*<<8#FFV,dggkk).DEq#q! 	5A77;;x!|$;73> ?	5 II34	 ## s   #II! I!c                    | j                  t        j                  | j                  j                  d       | j                  t        j                  | j                  j                  d       | j                  t        j                  | j                  j                  d        | j                  t        j                  | j                  j
                  d        | j                  t        j                  | j                  j
                  t        j                  | j                        d       | j                  j                         }| j                  j	                  | j                         | j                  j                  | j                         | j                  | j                  j                         |       t        j                  | j                        }| j                  j                  |d       | j                  j                         }| j                  j                  d      }| j                  j                  | j                        }| j                  j	                  | j                         | j                  j                  | j                         | j                  | j                  j                         |       | j                  | j                  j                  | j                        |       | j                  t        | j                        | j                  j                         |          | j                  | j                  j                  d      |dz          y )	Nr\   ro   option)unknownr  r  r  r   )rb   rc   r   r:  r?  r  r   r   r&   tabsr;  r%   rA  r  r   )r)   rI  r  currchild2_indexs        r,   test_add_and_hiddenz NotebookTest.test_add_and_hidden  s   '**DGGLL"='**DGGLL$?'**DGGLL$?'**DGGKK>'**DGGKK4999M 	 	 ww||~T[[!DKK .		$))$E$ww||~ww}}Y'ww}}T[[1T[[!DKK .t{{3\BT[[)477<<>,+GHy14!8<r.   c                     | j                  t        j                  | j                  j                  d       | j                  t        j                  | j                  j                  d       | j                  t        j                  | j                  j                  d        | j                  j                         }| j                  j                  | j                        }| j                  j	                  | j                         | j                  t        | j                        | j                  j                                | j                  t        |      dz
  t        | j                  j                                      | j                  j                  | j                         | j                  | j                  j                  | j                        d       | j                  || j                  j                  | j                               y )Nr\   ro   r   )rb   rc   r   r:  r  rI  rA  r;  assertNotInr   r%   r   r  r  )r)   rI  child1_indexs      r,   r  zNotebookTest.test_forget  s;   '**DGGNNB?'**DGGNNDA'**DGGNNDAww||~ww}}T[[1t{{#T[[)477<<>:TQDGGLLN(;<DKK t{{3Q7L$''--*DEr.   c                 `   | j                  t        j                  | j                  j                  d       | j                  t        j                  | j                  j                  d        | j                  | j                  j	                  d      t               | j                  | j                  j	                  | j                        d       | j                  | j                  j	                  | j                        d       | j                  | j                  j	                  d      d       y )Nr\   rH  r   r   rZ   )
rb   rc   r   r:  rA  r  r_   r%   r;  r  rd   s    r,   
test_indexzNotebookTest.test_index  s    '**DGGMM2>'**DGGMM4@dggmmE2C8t{{3Q7t{{3Q7u-q1r.   c                 2   | j                   j                         }| j                   j                  d|d          | j                  | j                   j                         |d   |d   f       | j                   j                  | j                  | j
                         | j                  | j                   j                         |       | j                   j                  d| j                         | j                  | j                   j                         |d   |d   f       | j                   j                  dd       | j                  | j                   j                         |       | j                  t        j                  | j                   j                  d|d          | j                  t        j                  | j                   j                  d|d          t        j                  | j                        }| j                   j                  d|       | j                  | j                   j                         |d   t        |      |d   f       | j                   j                  |       | j                  | j                   j                         |       | j                   j                  | j                  |       | j                  | j                   j                         t        |      f|z          | j                   j                  |       | j                  t        j                  | j                   j                  d|       | j                  t        j                  | j                   j                  d|       | j                  t        j                  | j                   j                  dd        | j                  t        j                  | j                   j                  d d       | j                  t        j                  | j                   j                  d d        y )Nr   r   rH  rZ   r\   )r:  rI  rJ  r%   r;  r  rb   rc   r   r   r   r&   r   r  )r)   rI  r  s      r,   r  zNotebookTest.test_insert  s   ww||~q$q'"$q'47);<t{{DKK0.udkk*$q'47);<ua .'**DGGNNAtAwG'**DGGNNBQH 499%q&!$q'3v;Q)HIv.t{{F+#f+4)?@v'**DGGNNAvF'**DGGNNBG 	'**DGGNNE4H'**DGGNND!D'**DGGNND$Gr.   c                    | j                   j                          | j                   j                          g g | j                  j	                  dfd       | j                   j	                  dfd       | j                  | j                   j                         t        | j                               | j                   j                  | j                         | j                         | j                  | j                   j                         t        | j                               | j                   j                          | j                         y )Nz<Unmap>c                 &    j                  d      S r:  r   ru  s    r,   r   z*NotebookTest.test_select.<locals>.<lambda>  s    t0D r.   z<<NotebookTabChanged>>c                 &    j                  d      S r:  r   )rv  tab_changeds    r,   r   z*NotebookTest.test_select.<locals>.<lambda>  s    **40 r.   )
r:  rV   r]   r;  rw  r%   rB  r   r  r   )r)   r   rV  s    @@r,   test_selectzNotebookTest.test_select  s    $DE-0	2 	)3t{{+;<t{{# )3t{{+;<$r.   c                    | j                  t        j                  | j                  j                  d       | j                  t        j                  | j                  j                  d       | j                  t        j                  | j                  j                  d        | j                  | j                  j	                  | j                        t               | j                  | j                  j	                  | j                  d       d       | j                  | j                  j	                  | j                  d      d       | j                  j	                  | j                  d       | j                  | j                  j	                  | j                  d       d       | j                  | j                  j	                  | j                  d      d       y )Nr\   notabr  rC  rR   abc)	rb   rc   r   r:  r@  r  r;  r  r%   rd   s    r,   test_tabzNotebookTest.test_tab  s+   '**DGGKK<'**DGGKKA'**DGGKK>dggkk$++6=T[[t<cBT[[&93?DKKe,T[[t<eDT[[&95Ar.   c                 R   | j                  t        | j                  j                               d       | j                  j	                  | j
                         | j                  j	                  | j                         | j                  | j                  j                         d       y )NrZ   r>   )r%   r   r:  rI  r  r;  r  rd   s    r,   test_configure_tabsz NotebookTest.test_configure_tabs+  sc    TWW\\^,a0t{{#t{{#,r.   c                 (   | j                   j                          | j                   j                          | j                   j                  d       t        j
                  dk7  rdnd}| j                  | j                   j                  dd      |       t        | j                   dd       | j                   j                          | j                   j                  d       | j                  | j                   j                         t        | j                               | j                   j                          | j                   j                  d       | j                  | j                   j                         t        | j                               | j                   j                          | j                   j                  d       | j                  | j                   j                         t        | j                               | j                   j                  | j                  dd	       | j                   j                  | j                  d
d	       | j                   j                          | j                   j                          | j                  | j                   j                  dd      |       t        | j                   dd       t        j
                  dk(  rd}d}nd}d}| j                   j                  |       | j                  | j                   j                         t        | j                               | j                   j                  |       | j                  | j                   j                         t        | j                               y )Nr   r  r*  r   r4   z<Control-Tab>z<Shift-Control-Tab>rC  )rR   r   r   z<Left>z<Right>z<Alt-a>z<Alt-e>)r:  rV   r]   rB  rV  rW  r%   r^   r   focus_forcerp  r   r  r;  r@  enable_traversal)r)   focus_identify_asbeginrH  s       r,   test_traversalzNotebookTest.test_traversal3  sZ   q'*||x'?GR))!Q/1BCTWWa+/)3t{{+;<45)3t{{+;<45)3t{{+;<DKKcQ7DKKcQ7  "))!Q/1BCTWWa+ <<8#ECECu%)3t{{+;<s#)3t{{+;<r.   )rJ   rK   rL   r   rT   r$   rE  rL  r  rQ  r  rW  r[  r]  rc  rw   rx   s   @r,   r7  r7    sE    G+15<=8F2H@%&B-$=r.   r7  c                        e Zd ZdZej
                  dk(  rdndZ fdZd Zd Z	d Z
d	 Zd
 Zd Zd Zd Zd Zd Z xZS )SpinboxTest)r   r   r   r   r  r   r   formatr  	incrementr  r   r  rs   rD   r   r   r  r  r  r[  rQ   wrapr  r  zSpinbox.fieldr  c                     t         |           | j                         | _        | j                  j	                          y rk   )rS   rT   r$   spinrV   rW   s    r,   rT   zSpinboxTest.setUpe  s'    KKM			r.   c                 B    t        j                  | j                  fi |S rk   )r   Spinboxr&   r   s     r,   r$   zSpinboxTest.createj  s    {{499///r.   c                    | j                   j                         }| j                   j                         }|dz
  }|dz  dz
  }| j                  | j                   j	                  ||      d       | j                   j                  d||       | j                   j                  d||       | j                   j                          y )Nr4   rZ   z.*uparrow\Zrj  rk  rn  rj  r`   ra   ro  r^   rp  rq  r)   rQ   r   rl  rm  s        r,   _click_increment_arrowz"SpinboxTest._click_increment_arrowm  s    		%%''')AIAIM++Aq1>B		  !2a1 =		  !4Q ?		""$r.   c                    | j                   j                         }| j                   j                         }|dz
  }|dz  dz   }| j                  | j                   j	                  ||      d       | j                   j                  d||       | j                   j                  d||       | j                   j                          y )Nr4   rZ   r  ri  rj  rk  rn  rn  ro  s        r,   _click_decrement_arrowz"SpinboxTest._click_decrement_arroww  s    		%%''')AIAIM++Aq13CD		  !2a1 =		  !4Q ?		""$r.   c                 *   g fd| j                   d<   | j                   j                          | j                          | j                   j                          | j                         | j	                          | j                  t              d       d| j                   d<   | j                   j                          | j                          | j	                          | j                   j                          | j                  t              d       y )Nc                  &     j                  d      S r:  r   r   s   r,   r   z4SpinboxTest.test_configure_command.<locals>.<lambda>  s    w~~d'; r.   r   rZ   r   )rj  r]   rp  r   rr  r%   r   rq  r{  s    @r,   test_configure_commandz"SpinboxTest.test_configure_command  s    ;		)		##%		 ##%Wq)  "		)		""$##%##%		Wq)r.   c                    d| j                   d<   d| j                   d<   | j                   j                  d       | j                   j                          | j                          | j	                  | j                   j                         d       | j                          | j	                  | j                   j                         d       y )Nr   r  r4   r  r  r5   )rj  r  r]   rp  r%   rK  rd   s    r,   r  zSpinboxTest.test_configure_to  s    		&		$		a		##%#.##%#.r.   c                    d| j                   d<   d| j                   d<   | j                   j                  d       | j                   j                          | j                          | j	                  | j                   j                         d       | j                          | j	                  | j                   j                         d       y )Nr   r  r	  r  rZ   r  )rj  r  r]   rr  r%   rK  rd   s    r,   r  zSpinboxTest.test_configure_from  s    		&		$		a		##%#.##%#.r.   c                    d| j                   d<   d| j                   d<   d| j                   d<   | j                   j                  d       | j                   j                          | j                          | j	                  | j                   j                         d       d	| j                   d<   | j                   j                          | j                          | j	                  | j                   j                         d
       y )Nr   r  r	  r  r  rg  r   r5   rZ   3)rj  r  r]   rp  r%   rK  rr  rd   s    r,   test_configure_incrementz$SpinboxTest.test_configure_increment  s    		&		$!"		+		a		##%#.!"		+		##%#.r.   c                 Z   | j                   j                  d       d| j                   d<   | j                   j                          | j                          | j                   j	                         }| j                  t        |      d       | j                  |j                  d      d       d| j                   d<   | j                   j                          | j                          | j                   j	                         }| j                  d|v       | j                  t        |      d       y )Nr   z%10.3frf  r	  .r   r   )	rj  r  r]   rp  rK  r%   r   rA  r   )r)   r  s     r,   test_configure_formatz!SpinboxTest.test_configure_format  s    		a&		(		##%		UR(S)1- 		(		##%		5()UQ'r.   c                 v   d| j                   d<   d| j                   d<   | j                   j                  d       d| j                   d<   | j                   j                          | j                          | j	                  | j                   j                         d       | j                          | j	                  | j                   j                         d       d	| j                   d<   | j                   j                          | j                          | j	                  | j                   j                         d       y )
Nr	  r  r   r  Trh  10r  F)rj  r  r]   rr  r%   rK  rp  rd   s    r,   test_configure_wrapzSpinboxTest.test_configure_wrap  s    		$		&		a 		&		##%$/##%#.!		&		##%#.r.   c                    | j                  | j                  d   d       | j                  | j                  ddd       | j                  | j                  dd       | j                  | j                  dd       | j                  | j                  dd       g d| j                  d<   | j                  j                  d       | j                  j	                          | j                          | j                  | j                  j                         d	       | j                          | j                  | j                  j                         d       | j                  j                  g d
       | j                  | j                  d   | j                  rdnd       g d| j                  d<   | j                  | j                  d   | j                  rdnd       g d| j                  d<   | j                  | j                  d   | j                  rdnd       t        j                  | j                  g d      }| j                  |d   | j                  rdnd       |j                          y )Nr[  r   r  r  r2   r  r  rC  r  r  r  r  r  r  r  r  r  r  r  r  )r%   rj  r@   r  r]   rp  rK  rr  r  r  r   rl  r&   r   )r)   spin2s     r,   r  z!SpinboxTest.test_configure_values  s   8,b1		8-?!> 	 	@		8-JK		8-IJ		8R0+		( 			c		##%#.##%#. 			:.8,+/+;+;!	#
 6		(8,484D4D0.	0
 6		(8,484D4D0.	0
 DIIj9x+/+;+;	Kr.   )rJ   rK   rL   r   rV  rW  r7  rT   r$   rp  rr  ru  r  r  rz  r}  r  r  rw   rx   s   @r,   re  re  Z  sU    G &)\\X%=/:K
0%%*(
///("/&)r.   re  c                        e Zd ZdZ fdZd Zd Zd Zd Zd Z	d Z
d	 Zd
 Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Z xZS )TreeviewTest)r   columnsr   displaycolumnsr   r0   
selectmoder  rD   r   r  yscrollcommandc                 P    t         |           | j                  d      | _        y )Nr   r9  )rS   rT   r$   tvrW   s    r,   rT   zTreeviewTest.setUp  s    ++a+(r.   c                 B    t        j                  | j                  fi |S rk   )r   Treeviewr&   r   s     r,   r$   zTreeviewTest.create  r`  r.   c                     | j                         }| j                  |ddd       | j                  |dd       | j                  |dd       y )Nr  a b crC  r  r  r2   r   r?   rA   s     r,   test_configure_columnsz#TreeviewTest.test_configure_columns  sG    	7!0 	 	2	?;	2.r.   c                 L   | j                         }d|d<   | j                  |ddd       | j                  |dd       | j                  |ddd       | j                  |dd	       | j                  |dd
d       | j                  |ddd       | j                  |ddd       y )Nr  r  r  zb a c)r  rC  r  r2   #all)r  )rZ   r   r   )rC  r  r  zInvalid column index dr    )r   rZ   r   zColumn index 3 out of bounds)r   r  zColumn index -2 out of bounds)r$   r@   r'   rA   s     r,   test_configure_displaycolumnsz*TreeviewTest.test_configure_displaycolumns  s    +y 0'!0 	 	2 0/B 0&!* 	 	, 0)<v'7&> 	 	@v'7&D 	 	Fv'7&E 	 	Gr.   c           	          | j                         }| j                  |dddddd       | j                  |ddd	d       y )
Nr   rb  re  r   3cFr  rc  rd  r  rA   s     r,   rg  z"TreeviewTest.test_configure_height/  sC    fhT1dOfhu5Ir.   c                 N    | j                         }| j                  |dddd       y )Nr  r-  browseextendedr   rA   s     r,   test_configure_selectmodez&TreeviewTest.test_configure_selectmode4  s&    FL"Hj	:r.   c                     | j                         }| j                  |ddd       | j                  |dd       | j                  |dd       | j                  |ddd       | j                  |ddd	       y )
Nr  ztree headings)treeheadingsr2   )r  r  r  )r  r  )r  r?   rA   s     r,   r$  z TreeviewTest.test_configure_show9  sq    !5 	 	7(<=(<=C
]Kr.   c                 r   | j                   j                          | j                  | j                   j                  d      d       | j                   j	                          | j                   j                  dd      }| j                   j                         }| j                  |       | j                   j                  |d         }| j                  |       dg| j                   d<   | j                   j                  dd       | j                   j                  |d   d      }| j                   j                  dd       }| j                  st        |      }| j                  |d   |d   |z          | j                   j                  |d      }| j                  | j                   j                  |      d       y )	Nr   rH  r   testr  2   rQ   #0)r  rV   r%   r4  r]   rJ  get_childrenr   r3  columnr  r_   )r)   item_idchildrenr4  bbox_column0
root_widthr;  s          r,   r5  zTreeviewTest.test_bboxB  sF   b)2.''..U+77'')!ww||HQK(  & %X	vR(ww||HQK3WW^^D^5
ZJa$q'J*>? /f-r2r.   c                    | j                  | j                  j                         d       | j                  j                  dd      }| j	                  | j                  j                         t
               | j                  | j                  j                         d   |       | j                  j                  dd      }| j                  j                  dd      }| j                  j                  |||       | j                  | j                  j                  |      ||f       | j                  t        j                  | j                  j                  ||       | j                  j                  |       | j                  | j                  j                  |      d       | j                  j                  d       | j                  | j                  j                         d       y )Nr>   r   rH  r   )
r%   r  r  rJ  r  tupleset_childrenrb   rc   r   )r)   r  r  r  s       r,   test_childrenzTreeviewTest.test_children[  sc   --/4''..U+dgg224e<--/2G< E*E*VWf5--f57HI 	'**GG  &&	2 	V$--f5r: 	R --/4r.   c                 v   | j                  | j                  j                  d      t               | j                  r1| j                  | j                  j                  dd       t
               | j                  j                  dd       | j                  | j                  j                  dd      | j                  rdnd       | j                  | j                  j                  dd       | j                  rdnd       | j                  t        j                  | j                  j                  dd       | j                  t        j                  | j                  j                  d       d	d
iddiddiddiddig}|D ]9  } | j                  t        j                  | j                  j                  dfi | ; y )Nr  r  r	  rQ   r  XidrS  unknown_optionz
some valuestretchwrongr   minwidth)
r  r  r  r  r  r_   r%   rb   rc   r   )r)   invalid_kwsrm   s      r,   test_columnzTreeviewTest.test_columnv  sg   dggnnT2D9!!$''..T."BCHt2&g6#//T	;D9#//T	; 	'**DGGNNDSI'**DGGNNIF|,	7/Cw'7!3j'5J
  	BDg.. 	r.   c                    | j                  t        j                  | j                  j                  d       | j                  j                  dd      }| j                  j                  |d      }| j                  | j                  j                         |f       | j                  | j                  j                  |      |f       | j                  j	                  |       | j                  | j                  j                                | j                  t        j                  | j                  j                  |dd       | j                  j                  dd      }| j                  j                  dd      }| j                  | j                  j                         ||f       | j                  j	                  ||       | j                  | j                  j                                y )Nr  r   rH  )
rb   rc   r   r  rT  rJ  r%   r  r   reattach)r)   r  item2item1s       r,   test_deletezTreeviewTest.test_delete  sX   '**DGGNNDA''..U+w.--/'=--g6	Bw--/0 	'**GGgr5	2 r5)r5)--/%@ue$--/0r.   c                    | j                   j                  dd      }| j                   j                  |d      }| j                   j                         }| j                   j                          | j	                  || j                   j                                | j	                  | j                   j                         |f       | j	                  | j                   j                  |      |f       | j                   j                  |       | j                  | j                   j                                | j                   j                  |dd       | j	                  | j                   j                         |f       | j	                  | j                   j                  |      |f       | j                   j                  |dd       | j	                  | j                   j                         ||f       | j	                  | j                   j                  |      d       | j                  t        j                  | j                   j                  ddd       | j                  t        j                  | j                   j                  d       | j                  t        j                  | j                   j                  |dd       | j                  t        j                  | j                   j                  |dd       | j                   j                  ||       | j	                  | j                   j                         d       | j	                  | j                   j                  |      d       y )Nr   rH  r>   nonexistentotherparentrS  )r  rJ  r  detachr%   r   r  moverb   rc   r   )r)   r  r  prevs       r,   test_detach_reattachz!TreeviewTest.test_detach_reattach  su   ''..U+w. ww##%tww3356--/'=--g6	B 	w--/0 	"e,--/'=--g6	B 	UB&--/'51AB--g6; 	'**GGmR	8'**GGNNM	+'**GGe]E	;'**GGeR	4 	w&--/4--g6;r.   c                 p   | j                  | j                  j                  d      d       | j                  | j                  j                  d      d       | j                  | j                  j                  i       d       | j                  t        j
                  | j                  j                  d        y )N	somethingFr   T)r%   r  existsrb   rc   r   rd   s    r,   test_existszTreeviewTest.test_exists  s{    4e<+T2+U3
 	'**DGGNNDAr.   c                    | j                  | j                  j                         d       | j                  j                  dd      }| j                  j                  |       | j                  | j                  j                         |       | j                  j	                  |       | j                  | j                  j                         d       | j                  t        j                  | j                  j                  d       y )Nr   rH  ro   )r%   r  r*  rJ  rT  rb   rc   r   )r)   r  s     r,   
test_focuszTreeviewTest.test_focus  s    "-r5)e%0u"- 	'**DGGMM4@r.   c                 *   | j                  | j                  j                  d      t               | j                  j                  dd       | j	                  | j                  j                  dd      d       | j	                  | j                  j                  dd       d       | j                  t        j                  | j                  j                  dd        | j                  t        j                  | j                  j                  dd       y )Nr  ro   r  rR   )r   r   )r   )r  r  headingr  r%   rb   rc   r   rd   s    r,   test_headingzTreeviewTest.test_heading  s    dggood3T: 	4(v6=D94@ 	'**DGGOOT 	 	 	'**DGGOOT 	 	r.   c           	           fd}g  j                   j                           j                   j                  dfd        j                   j                  dd        j                   j	                           |dd       s j                  d       g  j                   j                  j                  } j                   j                  dt         j                   j                  dd                     j                  | j                   j                  j                          |dd       s j                  d       y y )	Nc                 (   t         dk\  rWj                  j                  j                  |       d       j                  j                  j	                  | |      d       t        j                  | |       j                  j                          y )N)r   r   r  r  )r	   r%   r  identify_columnidentify_regionr   r]   )rl  rm  r)   s     r,   simulate_heading_clickzBTreeviewTest.test_heading_callback.<locals>.simulate_heading_click  si    V#  !8!8!;TB  !8!8A!>	J !Q/GGNNr.   r  c                  &     j                  d      S r:  r   r   s   r,   r   z4TreeviewTest.test_heading_callback.<locals>.<lambda>  s    gnnT.B r.   r   rb  r  r4   z>The command associated to the treeview heading wasn't invoked.)
r  rV   r  r  r]   rC  r   _tclCommandsr   r%   )r)   r  commandsr   s   `  @r,   test_heading_callbackz"TreeviewTest.test_heading_callback  s    	 &BCt3' 	q!$II   77>>..c$''//$/*M&NO477>>#>#>?q!$II   r.   c                    | j                  t        j                  | j                  j                  d       | j                  | j                  j	                  d      d       | j                  j                  dd      }| j                  j                  dd      }| j                  j                  |d      }| j                  j                  |d      }| j                  | j                  j	                  |      d       | j                  | j                  j	                  |      d       | j                  | j                  j	                  |      d       | j                  | j                  j	                  |      d       | j                  j                  |dd       | j                  | j                  j	                  |      d       | j                  | j                  j	                  |      d       | j                  j                  |       | j                  | j                  j	                  |      d       | j                  j                  |       | j                  | j                  j	                  |      d       | j                  j                  |       | j                  t        j                  | j                  j                  |       y )Nwhatr   r   rH  r   )
rb   rc   r   r  rA  r%   rJ  r  r  rT  )r)   r  r  c1c2s        r,   rQ  zTreeviewTest.test_index  s   '**DGGMM6Br*A.r5)r5)WW^^E5)WW^^E5)u-q1r*A.r*A.u-q1UB"u-q1u-q1 	ur*A.rr*A. 	u'**DGGMM2>r.   c           	         | j                  t        j                  | j                  j                  dd       | j                  t        j                  | j                  j                  ddd       | j                  t        j                  | j                  j                  ddd       | j                  | j                  j                  | j                  j	                  ddd                   | j                  | j                  j                  | j                  j	                  ddd                   | j                  t        j                  | j                  j                  dd       | j                  j	                  ddd	      }| j                  |d	       | j                  t        j                  | j                  j                  ddd	       | j                  t        j                  | j                  j                  ddt        d	             d
}| j                  j	                  dd|f      }| j                  | j                  j                  |d      | j                  r|fn|       | j                  | j                  j                  |d       | j                  r|fn|       | j                  j                  || j                  j                  | j                  j                  |d                    | j                  | j                  j                  |d       | j                  r|fn|       | j                  | j                  j                  |      t               | j                  j                  |d       | j                  | j                  j                  |d              | j                  j	                  dddd|g      }| j                  | j                  j                  |d       | j                  rdd|fnd|z         | j                  j                  |g        | j                  | j                  j                  |d              | j                  j                  |d       | j                  | j                  j                  |d       | j                  rdnd       | j                  j	                  ddd|d|f      }| j                  | j                  j                  |d       | j                  r	d|d|fnd|d|d       | j                  | j                  j                  | j                  j	                  ddd      d       d       | j                  | j                  j                  | j                  j	                  dd|      d       |       | j                  j	                  ddd      }| j                  |d       | j                  j	                  ddd      }| j                  |d       | j                  t        j                  | j                  j                  ddd       | j                  t        j                  | j                  j                  ddd       y ) Nr-  rH  r   )openpleaseTFmiddlez
first-itemu   ábar  r[  r   rZ   tagsr  r  z1 2 %sr   rZ   )r  r  z1 2r  r#  z	{a b c} {}z
Label herer  r   r1   g        z0.0)rb   rc   r   r  rJ  r   rT  r%   r   itemr  r&   	splitlistr  r  )r)   itemidr  r  s       r,   test_insert_itemzTreeviewTest.test_insert_item8  s   '**DGGNNFEJ 	'**DGGNNB 	 	'**DGGNNB 	 	r5t(LMNr5u(MNO 	'**DGGNNBI E<8.'**DGGNNB	'**DGGNNB|$	& ww~~b%	~:dH5%)%5%5%5	Bd48%)%5%5%5	B 	T$))"5"5dggll4PTl6U"VWd48%)%5%5%5	B 	dggll40$7 	T"%d489 ww~~b%q!Um~<d6.2.>.>#sE*!E)	+ 	T#d67T'd6'+'7'7U	D ww~~b%e$1&~ 'd48373C3CW./3C!&.	0
 	GGNN2u<N8t & E	 	GGNN2u5N1 & >	
 E1-%E3/''**DGGNNBuM'**DGGNNBrJr.   c                 z   | j                  t        | j                  j                  d       | j                  t        j
                  | j                  j                  d       | j                  t        j
                  | j                  j                  d       | j                  t        j
                  | j                  j                  d       | j                  t        j
                  | j                  j                  d       | j                  j                  dd      }| j                  j                  dd      }| j                  j                  |d      }| j                  j                  |d      }| j                  j                  |d      }| j                  | j                  j                         d       | j                  j                  ||       | j                  | j                  j                         ||f       | j                  j                  |       | j                  | j                  j                         |f       | j                  j                  ||       | j                  | j                  j                         |||f       | j                  j                  |       | j                  | j                  j                         ||||f       | j                  j                          | j                  | j                  j                         ||||f       | j                  j                  ||       | j                  | j                  j                         |||f       | j                  j                  |       | j                  | j                  j                         ||f       | j                  j                          | j                  | j                  j                         ||f       | j                  j                  ||       | j                  | j                  j                         ||f       | j                  j                  |       | j                  | j                  j                         |f       | j                  j                          | j                  | j                  j                         |f       | j                  j                  ddd       | j                  j                  d       | j                  | j                  j                         d       | j                  j                  ddd	       | j                  j                  d	       | j                  | j                  j                         d
       | j                  j                  ddd       | j                  j                  d       | j                  | j                  j                         d       | j                  j                  ddd       | j                  j                  d       | j                  | j                  j                         d       | j                  j                          | j                  | j                  j                         d       | j                  j                  ||f       | j                  | j                  j                         ||f       | j                  j                  ||f       | j                  | j                  j                         |||f       | j                  j                  ||f       | j                  | j                  j                         ||f       | j                  j                  ||f       | j                  | j                  j                         ||f       y )Nr   r-  r   rH  r>   with spacesr  )r  {brace)r  
   unicode€)r  s   bytes€)u   bytesâ¬)rb   	TypeErrorr  	selectionrc   r   selection_setselection_addselection_removeselection_togglerJ  r%   )r)   r  r  r  r  c3s         r,   test_selectionzTreeviewTest.test_selection  s   )TWW%6%6?'**DGG,A,A6J'**DGG,A,A6J'**DGG,D,DfM'**DGG,D,DfMr5)r5)WW^^E5)WW^^E5)WW^^E5)**,b1b%(**,r5k:b!**,re4b%(**,r2uo>e$**,ub"e.DE**,ub"e.DE  +**,r2uo>  $**,r5k:  "**,r5k:  R(**,r5k:  '**,re4  "**,re4r5]3m,**,.>?r5X.h'**,k:r5_5o.**,.@Ar5%9:23**,.DE**,b1 	r5k***,r5k:r5k***,ub%.@A  %-**,r5k:  "b***,r5k:r.   c                    ddg| j                   d<   | j                   j                  ddddg      }| j                  | j                   j                  |      ddd	       | j                   j                  |dd       | j                  | j                   j	                  |d       | j
                  rd
nd       dg| j                   d<   | j                  | j                   j                  |      ddi       | j                   j                  |dd       | j                  | j                   j                  |d      d       | j                  | j                   j	                  |d       | j
                  rdnd       | j                   j                  |dd       | j                  | j                   j                  |d      | j
                  rdnd       | j                  | j                   j	                  |d       | j
                  rdnd       | j                  | j                   j                  |      | j
                  rddinddi       | j                  t        j                  | j                   j                  |d       | j                  t        j                  | j                   j                  |dd       | j                  t        j                  | j                   j                  d       y )NABr  r   rH  rC  r  r  )r  r  )rC  rC  za a)r  )r  rC  zb a{   123)r  rC  z123 anotme)	r  rJ  r%   r  r  r  rb   rc   r   )r)   r  s     r,   r  zTreeviewTest.test_set  s:   !3Z	ww~~b%c
~;T*#C,@AD#s#d48'+'7'7U	D "U	T*S#J7D#s#T#6<d48'+'7'7U	D 	D#s#T3/ $ 0 0e	=d48'+'7'7W	FT*'+'7'7#sc5\	K 	'**DGGKKsC'**DGGKKsCH 	'**DGGKKAr.   c                 j  	 g 	| j                   j                  dddg      }| j                   j                  dddg      }| j                   j                  dd	fd       | j                   j                  dd	fd       | j                   j                          | j                   j	                          t               }t               }t        d	d
d      D ]W  }t        |      dk(  r nG| j                   j                  |      }|s1||vs6|j                  |       |j                  |       Y | j                  t        |      d       |D ]  }t        | j                   d	|        | j                  t        	      d       t        	d d d   	dd d         D ]  }| j                  |d        y )Nr   rH  callr  rj  c                 &    j                  d      S r   r   rv  eventss    r,   r   z,TreeviewTest.test_tag_bind.<locals>.<lambda>      a( r.   rn  c                 &    j                  d      S )NrZ   r   r  s    r,   r   z,TreeviewTest.test_tag_bind.<locals>.<lambda>  r  r.   r   rb  r	  rZ   r  r   r  )r  rJ  tag_bindrV   r]   r  r  r   identify_rowr  r%   r   zip)
r)   r  r  pos_yfoundr  r  rm  rv  r  s
            @r,   test_tag_bindzTreeviewTest.test_tag_bind  sy   r5x8r5x8!2(	*!4(	* 	q#r" 	#A5zQgg**1-G7%/		!		'"	# 	UQ' 	0A !Q/	0
 	Va(vcc{F14a4L1 	*CS&)	*r.   c                 4   | j                  t        | j                  j                         | j                  t        j
                  | j                  j                  dd       | j                  j                  dd       | j                  t        | j                  j                  dd            d       | j                  t        | j                  j                  dd             d       | j                  | j                  j                  d      t               y )Nr  blue)sky)r   r   )
rb   r  r  tag_configurerc   r   r%   r   r  r  rd   s    r,   test_tag_configurezTreeviewTest.test_tag_configure
  s    )TWW%:%:;'**DGG,A,A 	 	 f8TWW226<HI	TWW226d2KL	dgg33F;TBr.   c                 :   | j                   j                  ddddg      }| j                   j                  ddddg      }| j                  t        | j                   j                         | j                  t
        | j                   j                  dd       | j                  | j                   j	                  d|             | j                  | j                   j	                  d|             | j                  | j                   j	                  d|             | j                  | j                   j	                  d|             | j                  | j                   j	                  d	|             | j                  | j                   j	                  d	|             | j                  | j                   j	                  d      |f       | j                  | j                   j	                  d      |f       | j                  | j                   j	                  d	      d
       y )Nr   rH  zItem 1tag1)rR   r  zItem 2tag2znon-existingtag3r>   )	r  rJ  rb   r  tag_hasr   r   r   r%   )r)   r  r  s      r,   test_tag_haszTreeviewTest.test_tag_has  ss   r5xvhGr5xvhG)TWW__5(DGGOOV^L67787867787805(;05(;0"5r.   )rJ   rK   rL   r   rT   r$   r  r  rg  r  r$  r5  r  r  r  r  r  r  r  r  rQ  r  r  r  r  r  r  rw   rx   s   @r,   r  r  	  s    G)1/G J
:
L325621.'<RBA F?<JKXD;LB@*@
C6r.   r  c                       e Zd ZdZdZd Zy)SeparatorTest)r   r   r  rD   r   r  c                 B    t        j                  | j                  fi |S rk   )r   	Separatorr&   r   s     r,   r$   zSeparatorTest.create.  r4  r.   Nr5  r>   r.   r,   r  r  &  s    G "N2r.   r  c                       e Zd ZdZd Zy)SizegripTest)r   r   rD   r   c                 B    t        j                  | j                  fi |S rk   )r   Sizegripr&   r   s     r,   r$   zSizegripTest.create9  r`  r.   Nr   r>   r.   r,   r  r  2  s    G
1r.   r  c                       e Zd Zd Zd Zy)DefaultRootTestc                 B    | j                  t        j                         y rk   )_test_widgetr   r   rd   s    r,   
test_framezDefaultRootTest.test_frame?      #))$r.   c                 B    | j                  t        j                         y rk   )r  r   r   rd   s    r,   
test_labelzDefaultRootTest.test_labelB  r  r.   N)rJ   rK   rL   r  r  r>   r.   r,   r  r  =  s    %%r.   r  __main__)3unittestrc   r   r   test.supportr   r   rV  test.test_ttk_textonlyr   test.test_tkinter.supportr   r	   r
   r   r   test.test_tkinter.widget_testsr   r   r   r   r   r   TestCaserN   rz   r}   r   r   r   r   r   r  rY  r  r  r  r  r  skipIfrW  r1  r7  re  r  r  r  r  	tests_guirJ   mainr>   r.   r,   <module>r(     s     ! - 
 -Q QP P 	"22 "2L5<!2!2 5<p-~  -..$h&7&7 . /. -.)8+<+<  /28* 8B -.O!8#4#4 O /O& -.!"H$5$5 ! /!, -.<<'):): << /<<~ &(?@|1"H$5$5 |1 A|1~ &(?@y9h// y Ayx &(?@~:((*;*; ~: A~:B -.0H'):): 0H /0Hf&(9(9 . -.fB"H$5$5 fB /fBR -.)((*;*; ) /)D )57-.2&(9(9 2 /72 &(?@N=%x'8'8 N= AN=b &(?@k)X.. k Ak\ -.Y6%x'8'8 Y6 /Y6x -.2&(9(9 2 /2 -.1%x'8'8 1 /1%-x/@/@ % 	O\9>9noM=k<_
	 zHMMO r.   