Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/lib-tk/test/test_ttk/test_style.pyo

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��Qc@s�ddlZddlZddlZddlmZmZddlZed�dejfd��YZefZ	e
dkr�ee	�ndS(i�N(trequirestrun_unittesttguit	StyleTestcBs>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(cCstj�|_dS(N(tttktStyletstyle(tself((s5/sys/lib/python2.7/lib-tk/test/test_ttk/test_style.pytsetUpscCs[|j}|jddd�|j|jdd�d�|jt|jd�t��dS(NtTButtont
backgroundtyellow(Rt	configuretassertEqualt
assertTruet
isinstancetdict(RR((s5/sys/lib/python2.7/lib-tk/test/test_ttk/test_style.pyttest_configures
	cCsa|j}|jdddg�|j|jdd�dg�|jt|jd�t��dS(NR	R
tactivetblue(RR
R(RR
R(RtmapR
RRR(RR((s5/sys/lib/python2.7/lib-tk/test/test_ttk/test_style.pyttest_maps
	
cCs�|j}|jddd�|jddd	g�|j|jdd�d�|j|jddddg�d�|j|jdddd�d�dS(
NR	R
RRRtoptionnotdefinedtdefaulttiknewit(sactiveR
sblue(RRRR
tlookup(RR((s5/sys/lib/python2.7/lib-tk/test/test_ttk/test_style.pyttest_lookup s	cCs�|j}|jtj|jd�|jd�}|jdd�|j|jd�didd6fg�|jd|�|j|jd�|�|jt|jd�t��|jtj|jddid	d
6fg�dS(Nt
NotALayouttTreeviewttnulltnswetstickyR	tnamet
inexistenttoption(	RtassertRaisestTkintertTclErrortlayoutR
RRtlist(RRttv_style((s5/sys/lib/python2.7/lib-tk/test/test_ttk/test_style.pyttest_layout,s	cCs�|jtj|jjd�|jj�}d}xA|jj�D],}||krA|}|jj|�PqAqAWdS|j||k�|j||jj�k�|jj|�dS(Ntnonexistingname(R$R%R&Rt	theme_usetNonettheme_namestassertFalse(Rt
curr_themet	new_themettheme((s5/sys/lib/python2.7/lib-tk/test/test_ttk/test_style.pyttest_theme_useCs(t__name__t
__module__RRRRR*R3(((s5/sys/lib/python2.7/lib-tk/test/test_ttk/test_style.pyR
s					t__main__(tunittestR%Rttest.test_supportRRtsupporttTestCaseRt	tests_guiR4(((s5/sys/lib/python2.7/lib-tk/test/test_ttk/test_style.pyt<module>s
N	

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.