+
    BiH                         ^ RI t ^ RIt^ RIt^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RI	H
t
Ht ]! R4       . ROt ! R R	]
] P                  4      t]R
8X  d   ] P                   ! 4        R# R# )    N)ttk)TclError)support)requires)AbstractTkTestget_tk_patchlevelguic                      a a ] tR t^t oV 3R ltR tR tR tR tR t	R t
R tR	 tR
 tR tR tR tR tR tR tR tR tR tR tRtVtV ;t# )	StyleTestc                n   < \         SV `  4        \        P                  ! V P                  4      V n        R # N)supersetUpr   Stylerootstyle)self	__class__s   &//usr/lib/python3.14/test/test_ttk/test_style.pyr   StyleTest.setUp   s     YYtyy)
    c                    V P                   pVP                  R RR7       V P                  VP                  R R4      R4       V P                  VP                  R 4      \        4       R# )TButtonyellow
backgroundr   N)r   	configureassertEqualassertIsInstancedictr   r   s   & r   test_configureStyleTest.test_configure   sR    

	h7LA	eooi8$?r   c           	        V P                   pR .R.3 F  pV P                  VR7      ;_uu_ 4        VP                  R. VORN5.R7       R.pV P                  VP                  RR4      V4       VP                  R4      pV P	                  V\
        4       V P                  VR,          V4       RRR4       K  	  RR.R	.R.3 F  pV P                  VR7      ;_uu_ 4        VP                  R. VOR
N5.R7       R.pV P                  VP                  RR4      V4       VP                  R4      pV P	                  V\
        4       V P                  VR,          V4       RRR4       K  	  . R.R.3 F  pV P                  VR7      ;_uu_ 4        VP                  R. VORN5.R7       R.pV P                  VP                  RR4      V4       VP                  R4      pV P	                  V\
        4       V P                  VR,          V4       RRR4       K  	  R#   + '       g   i     EK  ; i  + '       g   i     EK  ; i  + '       g   i     K  ; i)active)statesr   whiter   r   Npressed	!disabledzpressed !disabledblack grey)r%   )r%   r'   )r(   r)   )r(   r)   r*    )r,   )r   subTestmapr   r   r    )r   r   r&   expectedms   &    r   test_mapStyleTest.test_map%   s   

  j;-/FV,,		)1C61C71C0D	E/0  9l!CXNIIi(%%a.  <(; -, 0 !+.1D0EH`GaaFV,,		)1C61C71C0D	E=>  9l!CXNIIi(%%a.  <(; -, b 2$nFV,,		)1B61B61B0C	D%;  9l!CXNIIi(%%a.  <(; -, %' -,, -,, -,,s&   A?H!A?H2A?IH/2IIc                B   V P                   pVP                  R RR7       VP                  R R
.R7       V P                  VP	                  R R4      R4       V P                  VP	                  R RRR.4      R4       V P                  VP	                  R RRR7      R4       R	# )r   r   r   r%   r   blueoptionnotdefinediknewit)defaultN)r%   r   r5   )r   r   r/   r   lookupr!   s   & r   test_lookupStyleTest.test_lookupG   s    

	h7		))I(J	Ki>Ii|$&'-	/i1C &  )	+r   c                   V P                   pV P                  \        P                  VP                  R 4       VP	                  R4      pVP	                  RR4       V P                  VP	                  R4      RRR/3.4       VP	                  RV4       V P                  VP	                  R4      V4       V P                  VP	                  R4      \        4       V P                  \        P                  VP                  RRRR	/3.4       R
# )
NotALayoutTreeviewr+   nullstickynswer   nameoption
inexistentN)r   assertRaisestkinterr   layoutr   r   list)r   r   tv_styles   &  r   test_layoutStyleTest.test_layoutS   s    

'**ELL,G<<
+ 	Z$j1x()*	

 	Z*j18< 	ell95t< 	'**ELL*x./0	2r   c                   V P                  \        P                  V P                  P                  R 4       V P                  P	                  4       pRpV P                  P                  4        F(  pW18w  g   K  TpV P                  P	                  V4        M	  R# V P                  W8H  4       V P                  W P                  P	                  4       8g  4       V P                  P	                  V4       R# )nonexistingnameN)rE   rF   r   r   	theme_usetheme_namesassertFalse)r   
curr_theme	new_themethemes   &   r   test_theme_useStyleTest.test_theme_usej   s    '**DJJ,@,@	 ZZ))+
	ZZ++-E"!	

$$U+	 . 01jj&:&:&<<=

Z(r   c                   V P                   pV P                   P                  4       pV P                  V P                   P                  V4       V P                   P                  4        EFU  pV P                   P                  V4       \         EF+  pVP                  V4      pV'       g   K  V P                  W4R 7      ;_uu_ 4        \        P                  ^8  d   \        RW4V4       VR9   d-   \        P                  ! 4       R,          R8X  d    RRR4       K  RV 2pV P                  VP                  V4      R4       VP
                  ! V3/ VB  V P                  VP                  V4      V4       VP                  4        F&  w  rxV P                  VP                  Wg4      V4       K(  	  RRR4       EK.  	  EKX  	  R#   + '       g   i     EKI  ; i)rS   rB   r   N   NNC.vistaxpnative      )r   rN   
addCleanuprO   CLASS_NAMESr   r.   r   verboseprintsysgetwindowsversionr   items	r   r   rQ   rS   rB   r8   newnamekeyvalues	   &        r   test_configure_custom_copy$StyleTest.test_configure_custom_copy~   s`   

ZZ))+


,,j9ZZ++-EJJ  '#//$/\\\99!+k5@!66 # 5 5 7 ;v E  :9 !#4&kG$$U__W%=tDOOG7w7$$U__W%=wG&-mmo
(()FN '6 :9	 $ . :99s   AG	BG	Gc                   V P                   pV P                   P                  4       pV P                  V P                   P                  V4       V P                   P                  4        EF  pV P                   P                  V4       \         EFY  pVP                  V4      pV'       g   K  V P                  W4R 7      ;_uu_ 4        \        P                  ^8  d   \        RW4V4       VR9   d-   \        P                  ! 4       R,          R	8X  d    RRR4       K  RV 2pV P                  VP                  V4      / 4       VP
                  ! V3/ VB  VR8X  d(   VR8X  d!   \        V P                  4      R
8  d   R.VR&   V P                  VP                  V4      V4       VP                  4        F&  w  rxV P                  VP                  Wg4      V4       K(  	  RRR4       EK\  	  EK  	  R#   + '       g   i     EKw  ; i)rW   r/   rX   NrZ   alt.embossedr[   r^   )   r_   r`   )disabled1)r   rN   ra   rO   rb   r/   r.   r   rc   rd   re   rf   r   r   r   rg   rh   s	   &        r   test_map_custom_copyStyleTest.test_map_custom_copy   s   

ZZ))+


,,j9ZZ++-EJJ  '#))D/\\\99!+eU':!66 # 5 5 7 ;v E  :9 !#4&kG$$UYYw%7<IIg11~$#+:KDII:VYb:b/@.A
+$$UYYw%7A&-mmo
((7)@%H '6 :9	 $ . :99s   AG1	CG1	1Hc                4   V P                   pVP                  4       pV P                  V\        4       V F_  pV P	                  V\        4       VP                  V4      pV P                  V\        4       V F  pV P	                  V\        4       K  	  Ka  	  R # r   )r   element_namesassertNotIsInstancestrr   element_options)r   r   rx   rB   r{   optnames   &     r   test_element_optionsStyleTest.test_element_options   s}    

++-  4!D!!$,#33D9O$$_c:*%%gs3 +	 "r   c                L   V P                   pV P                  \        4      ;_uu_ 4        VP                  R 4       RRR4       V P	                  \
        R4      ;_uu_ 4        VP                  R R4       RRR4       R#   + '       g   i     LK; i  + '       g   i     R# ; i)plain.newelemNzNo such element type spamspam)r   rE   	TypeErrorelement_createassertRaisesRegexr   r!   s   & r   test_element_create_errors$StyleTest.test_element_create_errors   so    

y))  1 *##H.IJJ  &9 KJ *)JJJs   A?"B?B	B#	c                    V P                   pVP                  R RR4       V P                  R VP                  4       4       VP                  RRRR4       V P                  RVP                  4       4       R# )zplain.backgroundfromr8   zplain.arrow
rightarrowN)r   r   assertInrx   r!   s   & r   test_element_create_from"StyleTest.test_element_create_from   sa    

/C(%*=*=*?@]FI|LmU%8%8%:;r   c                P   V P                   pV P                  \        4      ;_uu_ 4        VP                  R R4       RRR4       V P	                  \
        R4      ;_uu_ 4        VP                  R RR4       RRR4       R#   + '       g   i     LL; i  + '       g   i     R# ; i)r   r   Nz%theme "spam" (does not|doesn't) existr   )r   rE   
IndexErrorr   r   r   r!   s   & r   test_element_create_from_errors)StyleTest.test_element_create_from_errors   s~    

z**  &9 +##H46 6  &&A6 6 +*6 6 6s   B#BB	B%	c           
     z   V P                   p\        P                  ! V P                  ^^
R7      pVP	                  RRV4       V P                  RVP                  4       4       VP                  RRRR/3.4       \        P                  ! V P                  RR7      pVP                  RR	R
7       V P                  VP                  4       ^4       V P                  VP                  4       ^
4       \        P                  ! RRR7      p\        P                   ! V P                  VRRR7      p\        P                   ! V P                  VRRR7      p\        P                   ! V P                  VRRR7      pVP	                  RRVRV3RV3RRR7       V P                  RVP                  4       4       VP                  RRRR/3.4       \        P"                  ! V P                  RR7      pVP                  RR	R
7       V P                  VP                  4       ^4       V P                  VP                  4       ^4       R# )   masterwidthheightblockimage
TestLabel1r@   newsr   Tbothexpandfillz
python.xbmtkinterdata)subdirr   r5   )r   file
foregroundr   r'   r*   zTestButton.buttonr(   r%   we)borderr@   
TestButtonN)rY      )r   rF   
PhotoImager   r   r   rx   rG   r   Labelpackr   winfo_reqwidthwinfo_reqheightr   findfileBitmapImageButton)	r   r   r   aimgfileimg1img2img3bs	   &        r   test_element_create_image#StyleTest.test_element_create_image   s   

""$))2bIWgu5gu2245\Wx.@$A#BCIIdii|4	d())+R0**,b1""<F""$))'.66K""$))'.4K""$))'.5'K0'!It#4x6F$*4 	 	9 	)5+>+>+@A\%88V:L$M#NOJJtyy5	d())+R0**,b1r   c           
     X   V P                   p\        P                  ! V P                  ^
^
R7      pV P	                  \
        4      ;_uu_ 4        VP                  RR4       RRR4       V P	                  \        4      ;_uu_ 4        VP                  RRV^4       RRR4       V P	                  \        4      ;_uu_ 4        VP                  RRVR4       RRR4       V P                  \        R4      ;_uu_ 4        VP                  RRVRV34       RRR4       V P                  \        R4      ;_uu_ 4        VP                  RRV^V34       RRR4       V P	                  \        4      ;_uu_ 4        VP                  RRVR^V34       RRR4       V P	                  \        4      ;_uu_ 4        VP                  RRV^RV34       RRR4       V P                  \        R	4      ;_uu_ 4        VP                  RRV^R
7       RRR4       R#   + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     ELk; i  + '       g   i     ELB; i  + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R# ; i)
   r   block2r   NzInvalid state namer   r(   selectedz
bad option)r   r-   )r   rF   r   r   rE   r   r   r   
ValueErrorr   r   )r   r   r   s   &  r    test_element_create_image_errors*StyleTest.test_element_create_image_errors   s   

""$))2bIz**  73 +y))  7E1= *z**  7E2> +##H.BCC  7EFE?K D##H.BCC  7EAu:F Dy))  7EIq%;PQ *y))  7EAz5;QR *##Hl;;  7E B <; +**)))***CCCCCC))));;;s`   HH"?H6:I
7I3I20J.JH	"H3	6I	
I	I/	2J	J	J)	c                   V P                   pR VP                  4       9  d   V P                  R4       VP                  RRR^. RO4       VP	                  RRRR/3.4       \
        P                  ! V P                  RR	7      pVP                  R
RR7       V P                  VP                  4       ^4       V P                  VP                  4       ^4       R# )r]   requires 'xpnative' theme
smallclosevsapiWINDOWCloseButtonzCloseButton.smallcloser@   r   r   Tr   r   N))rs   r   r(      r%   rY   r+   r`   r   rO   skipTestr   rG   r   r   r   r   r   r   r   r   r   r   s   &  r   test_element_create_vsapi_1%StyleTest.test_element_create_vsapi_1  s    

U..00MM56\7Hb C& 	'
 	]/(F1CDE	GJJtyy6	d())+R0**,b1r   c                   V P                   pR VP                  4       9  d   V P                  R4       VP                  RRR^. RO4       VP	                  RRRR/3.4       \
        P                  ! V P                  RR	7      pVP                  R
RR7       V P                  VP                  4       ^4       V P                  VP                  4       ^4       R# )r]   r   pinr   EXPLORERBARExplorer.PinExplorer.Pin.pinr@   r   r   Tr   r   N)r(   	!selectedr   )r%   r   rY   )r(   r   r_   )r%   r      )r   r   r   )r   rO   r   r   rG   r   Checkbuttonr   r   r   r   r   )r   r   r   s   &  r   test_element_create_vsapi_2%StyleTest.test_element_create_vsapi_2  s    

U..00MM56UG]A @& 	' 	^)Hf+=>?	Aoodii~>6*++-r2,,.3r   c                   V P                   pR VP                  4       9  d   V P                  R4       VP                  RRR^. RO4       VP	                  RRRR/3.4       \
        P                  ! V P                  RR	7      pVP                  R
RR7       V P                  VP                  4       ^4       V P                  VP                  4       ^4       R# )r]   r   headercloser   r   zExplorer.CloseButtonz Explorer.CloseButton.headercloser@   r   r   Tr   r   N)r   r   r   r   r   s   &  r   test_element_create_vsapi_3%StyleTest.test_element_create_vsapi_3(  s    

U..00MM56]G]A H& 	' 	+9Hf;MNO	QJJtyy(>?	d())+R0**,b1r   c                \   V P                   pVP                  4       pVP                  R 4      pVP                  R4       V P	                  RVP                  4       4       VP                  RRRRR./R RR^
/R	RR
R/3.//R7       V P	                  RVP                  4       4       VP                  RR4       V P	                  RVP                  4       4       VP                  R4       V P                  VP                  4       R4       V P                  VP                  R 4      V4       VP                  R4       V P                  VP                  4       R4       V P                  VP                  R R4      R4       V P                  VP                  R 4      RR
R/3.4       VP                  R4       V P                  VP                  4       R4       V P                  VP                  R R4      R4       V P                  VP                  R 4      RR
R/3.4       VP                  V4       R# )TLabel
testtheme1
testtheme2elemelement creater   r8   r   paddingrG   r@   r   settings
testtheme310r+   Nr-   )r   )	r   rN   rG   theme_creater   rO   r   rx   r9   )r   r   rQ   curr_layouts   &   r   test_theme_createStyleTest.test_theme_create7  s   

__&
ll8,<(lE$5$5$78<&(;=i_FXt$4563
 	 	lE$5$5$78<6lE$5$5$78%,,.3h/=%,,.	:h	:DAh/6Hd;K2L1MN%,,.3h	:B?h/6Hd;K2L1MN
#r   c                   V P                   pVP                  4       p\        P                  ! V P                  ^
^
R7      pRpVP                  VRRRVR^xR^d/./RRRV./R	R
RRRR(RR/RRR)R*./RRRRRR/3RRRR^RRRR/3./3.//R 7       VP                  V4       V P                  RVP                  4       4       V P                  VP                  R	R4      R4       V P                  VP                  R	R4      R!4       V P                  VP                  R	R4      R4       V P                  VP                  R	RR.4      R4       V P                  VP                  R	RRR.4      R4       V P                  VP                  R	RRR.4      R4       V P                  VP                  R	4      RRRRR/3RRRRR"RRRR/3./3.4       \        P                  ! V P                  R	R#7      pVP                  R$R%R&7       V P                  VP                  4       ^4       V P                  VP                  4       ^d4       VP                  V4       R'# )+r   r   
testtheme4r   r   r   r   r   zTestWidget.block2
TestWidgetr   anchorleftr   r   r   r/   r(   redr%   rs   r5   rG   zTestWidget.blockr@   r   sidezTestWidget.bordernswr   childrenrA   r   z3 0 0 2rt   r   Tr   r   N)r   r   r   rY   )r(   r   )r%   rs   r5   )r   rN   rF   r   r   r   r   rx   r   r9   rG   r   r   r   r   r   )r   r   rQ   r   rR   r   s   &     r   test_theme_create_image!StyleTest.test_theme_create_imageZ  s   

__&
""$))2bI 	9 7EGS(C3P"Q   7E"2# f| (
  *6# '(D&&)IJ( % !"08V2DE%+ 	0
 	@ 		"gu2245lH=vFlI>	JlLA8LlL'/j23;	=lL'/&;=>C	ElL'/&<>?E	Gl3#ffh%EF$ec"5&7I!J K' 	 IIdii|4	d())+S1**,c2
#r   c           
        V P                   pR VP                  4       9  d   V P                  R4       VP                  4       pRpVP	                  VRRRR^. RO./RRR	R
R/3.//R7       VP                  V4       V P                  RVP                  4       4       V P                  VP                  R4      R	R
R/3.4       \        P                  ! V P                  RR7      pVP                  RRR7       V P                  VP                  4       ^4       V P                  VP                  4       ^4       VP                  V4       R# )r]   r   
testtheme5r   r   r   r   r   rG   r   r@   r   r   rA   r   Tr   r   Nr   )r   rO   r   rN   r   r   rx   r   rG   r   r   r   r   r   r   )r   r   rQ   rR   r   s   &    r   test_theme_create_vsapi!StyleTest.test_theme_create_vsapi  s=   

U..00MM56__&
 	9 7M1 ?, #- .60BCD0
 	 		"eU0023n5-&/ABC	E oodii~>6*++-r2,,.3
#r   r   )__name__
__module____qualname____firstlineno__r   r"   r2   r:   rJ   rT   rl   ru   r}   r   r   r   r   r   r   r   r   r   r   r   __static_attributes____classdictcell____classcell__)r   __classdict__s   @@r   r   r      sv     *
@<D	+2.)(O4I6	4:<B2<C(2 4$2!$F?$B$ $r   r   __main__)rp   ComboboxPopdownFrameHeadingzHorizontal.TProgressbarzHorizontal.TScaleItemSashr   TCheckbutton	TComboboxTEntryTLabelframezTLabelframe.LabelTMenubutton	TNotebookzTNotebook.Tab
ToolbuttonTProgressbarTRadiobuttonr>   TScale
TScrollbarTSpinboxzVertical.TProgressbarzVertical.TScale)unittestre   rF   r   r   testr   test.supportr   test.test_tkinter.supportr   r   rb   TestCaser   r   mainr-   r   r   <module>r     sZ     
     ! G d$ 1 1 d$N zMMO r   