Your IP : 3.143.237.203


Current Path : /usr/lib64/python2.7/lib-tk/test/test_tkinter/
Upload File :
Current File : //usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyc

�
zfc@sddlZddlZddlZddlmZddlmZmZddlm	Z	m
Z
mZddlm
Z
mZed�de
ejfd��YZd	e
ejfd
��YZde
ejfd��YZeeefZed
kree�ndS(i����N(tTclError(trequirestrun_unittest(tpixels_convttcl_versiontrequires_tcl(tAbstractWidgetTestt	int_roundtguitPackTestcBs�eZd
Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd�Zd	�Z
d
�Zd�Zd�ZRS(c
Cs�tj|jdd�}|jd�|jdd�tj|dddddd	d
d�}tj|dddd
ddd
d�}tj|ddddddd
d�}tj|dddd	ddd
d�}|||||fS(Ntnametpacks300x200+0+0itatwidthitheighti(tbgtredtbi2itbluetciPtgreentdtyellow(ttkintertTopleveltroottwm_geometryt
wm_minsizetFrame(tselfRRRRR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pytcreate2s
''''cCs;|j�\}}}}}|jtd|��|jd|�WdQX|jtd��|jdd�WdQX|jdd�|jdd�|jdd�|jdd�|j|j�||||g�|jd|�|j|j�||||g�|jd|�|j|j�||||g�dS(Nswindow "%s" isn't packedtaftersbad window path name ".foo"s.footsidettop(RtassertRaisesRegexpRtpack_configuretassertEqualtpack_slaves(RRRRRR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_pack_configure_afters""cs��j�\}�}}}��fd�}|dd�|dd�|dd�|dd	�|d
d�|dd
�|dd�|dd�|dd�dS(Ncs[�jddddddddd	d
dtd|��jj��j�j�|�dS(
NR R!tipadxitpadxi
tipadyitpadyitexpandtanchor(R#tTrueRtupdateR$twinfo_geometry(R,tgeom(RR(sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pytcheck-s'

tns30x70+135+20tnes30x70+260+20tes30x70+260+65tses
30x70+260+110tss
30x70+135+110tsws30x70+10+110tws30x70+10+65tnws30x70+10+20tcenters30x70+135+65(R(RRRRRR1((RRsG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_pack_configure_anchor+s







cCs;|j�\}}}}}|jtd|��|jd|�WdQX|jtd��|jdd�WdQX|jdd�|jdd�|jdd�|jdd�|j|j�||||g�|jd|�|j|j�||||g�|jd|�|j|j�||||g�dS(Nswindow "%s" isn't packedtbeforesbad window path name ".foo"s.fooR R!(RR"RR#R$R%(RRRRRR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_pack_configure_before<s""cs{�j�\}���������fd�}�jdd��jdd��jdd��jdd�|ddd	d
��jdddd��jdddd
��jdddt��jdddd�|dddd��jdddddd��jdddd
dd��jdddtdd��jdddddd�|dddd�dS(Ncsy�jj��j�j�|d��j�j�|d��j�j�|d��j�j�|d�dS(Niiii(RR.R$R/(tgeoms(RRRRR(sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyR1Ns

R tleftR!trighttbottoms
20x40+0+80s50x30+135+0s80x80+220+75s
40x30+100+170R+tyestonis20x40+40+80s50x30+175+35s
80x80+180+110s
40x30+100+135tfilltboths100x200+0+0s
200x100+100+0s160x100+140+100s40x100+100+100(RR#R-(RRR1((RRRRRsG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_pack_configure_expandLs"cCs2|j�\}}}}}|jdd�|jdd�|jdd�|jdd�|jd|�|j|j�||||g�|jd|�|j|j�|||g�|j|j�|g�|jtd|f��|jd|�WdQX|jtd��|jdd�WdQXdS(NR R!tin_scan't pack %s inside itselfsbad window path name ".foo"s.foo(RR#R$R%R"R(RRRRRR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_pack_configure_inds"	cs��j�\}��}}���fd�}|dddddd�|dddddd'�|dddddd�|d
ddddddd	�|dddddddd�|dddddd(dd�|dddddddd�|d
ddddddd	dd�|dddddddd)dd�|dddddd�|dddddd*�|dddddd�|dddddddd	�|dddddddd+�|d ddddddd�|d!ddddd,dd�|d#ddddddd�|d$ddddddd	dd�|d%ddddddd-dd��jdd&��j�j�d�j|jd&����jdd&��j�j�d�j|jd&���dS(.Ncst�j��j��j|��jdtdd��jj��j�j�|��j�j�|�dS(NR+RDRE(tpack_forgetR#R-RR.R$R/(tgeom1tgeom2tkwargs(RRR(sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyR1ws



s20x40+260+80s240x200+0+0R R@R(is20x40+250+80i
is60x40+240+80R's30x40+260+80s250x200+0+0iRDtxs20x40+249+80i	is30x40+255+80is20x40+140+0s300x160+0+40R!s20x40+120+0ii(s60x40+120+0s30x40+135+0s30x40+130+0s260x40+20+0s260x40+25+0is
300x40+0+0s280x40+10+0s
280x40+5+0t1c(i
i(i	i(ii(ii((ii(ii(ii(RR#R$t	pack_infot_strtwinfo_pixels(RRRRR1((RRRsG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyt#test_pack_configure_padx_ipadx_fillusBcs��j�\}��}}���fd�}|dddddd�|dddddd'�|dddddd�|d
ddddddd	�|dddddddd�|dddddd(dd�|dddddddd�|d
ddddddd	dd�|dddddddd)dd�|dddddd�|dddddd*�|dddddd�|dddddddd	�|dddddddd+�|d ddddddd�|d!ddddd,dd�|d#ddddddd�|d$ddddddd	dd�|d%ddddddd-dd��jdd&��j�j�d�j|jd&����jdd&��j�j�d�j|jd&���dS(.Ncst�j��j��j|��jdtdd��jj��j�j�|��j�j�|�dS(NR+RDRE(RIR#R-RR.R$R/(RJRKRL(RRR(sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyR1�s



s20x40+280+80s280x200+0+0R R@R*is20x40+280+70i
is20x80+280+60R)s20x50+280+75iRDRMs20x40+280+69i	is20x50+280+70is20x40+140+20s300x120+0+80R!s20x40+140+0ii(s20x80+140+0s20x50+140+10s300x130+0+70s20x50+140+5s300x40+0+20s300x40+0+25is
300x80+0+0s300x50+0+10s
300x50+0+5RN(i
i(i	i(ii(ii((ii(ii(ii(RR#R$RORPRQ(RRRRR1((RRRsG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyt#test_pack_configure_pady_ipady_fill�sBcst�j�\}��}}���fd�}|ddd�|ddd�|dd	d
�|ddd
�dS(Ncs}�jd|��j�j�d|��jdtdd��jj��j�j�|��j�j�|�dS(NR R+RDRE(R#R$ROR-RR.R/(R RJRK(RRR(sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyR1�s
R!s20x40+140+0s300x160+0+40RAs
20x40+140+160s300x160+0+0R?s
20x40+0+80s280x200+20+0R@s20x40+280+80s280x200+0+0(R(RRRRR1((RRRsG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_pack_configure_side�scCs�|j�\}}}}}|j�|j�|j�|j|j�|||g�|j�|j|j�||g�|j�|j|j�||g�|j�dS(N(RR#R$R%RI(RRRRRR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_pack_forget�s




cCs�|j�\}}}}}|jtd|��|j�WdQX|j�|jddd|dddtdd	d
ddd
dddd�	|j�}|j|t�|j|dd�|j|d|j	d��|j|dd�|j|d|�|j|d
|j	d��|j|d|j	d��|j|d|j	d��|j|d|j	d��|j|dd�|j�}|j|t�|j|dd�|j|d|j	d��|j|dd	�|j|d|�|j|d
|j	d��|j|d|j	d��|j|d|j	d
��|j|d|j	d��|j|dd�dS(Nswindow "%s" isn't packedR R@RGR,R6R+RDRMR'iR(i
R)iR*iR:itnonetinR!i(ii(ii(
RR"RROR#R-tassertIsInstancetdictR$RP(RRRRRRtinfo((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_pack_info�s8
'cCs�|j�\}}}}}|jdddd�|j�|jt�|jj�|j|j�d�|j|j	�d�|jt
�|jj�|j|j�d�|j|j	�d�dS(NR
i,Ri�ii((Rt	configureR#tpack_propagatetFalseRR.R$twinfo_reqwidthtwinfo_reqheightR-(RRRRRR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_pack_propagates




cCs~|j�\}}}}}|j|j�g�|j�|j|j�|g�|j�|j|j�||g�dS(N(RR$R%R#(RRRRRR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_pack_slavess

N(t__name__t
__module__tNonet	test_keysRR&R;R=RFRHRRRSRTRUR[RaRb(((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyR	
s	
						*	*				
t	PlaceTestcBs�eZdZd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd�Zd	�Z
d
�Zd�Zd�Zd
�Zd�ZRS(c
Cs�tj|jdddddd�}|jd�tj|dddd	dd
dd�}|jd
ddd�tj|dddddd
dd�}|jj�|||fS(NR
i,Ri�tbdis300x200+0+0i�iTitrelieftraisedRMi0tyi&ii<(RRRRRtplace_configureR.(Rtttftf2((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyRs$
''
cCs�|j�\}}}|j|j�d�|jtdtjt|����|jd|�WdQXt	d	kr�|j|j�d�n|jtd��|jdd�WdQX|jd|�|j|j�d�dS(
Nts!can't place %s relative to itselfRGiisbad window path nametspamtplace(ii(
RR$t
winfo_managerR"RtretescapetstrRlR(RRmRnRo((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_configure_in$sc	Cs5|j�\}}}|jd|�|j|j�dd�|jj�|j|j�d�|jdd�|j|j�dd�|jj�|j|j�d�|jddd	d
�|j|j�dd�|jj�|j|j�d�|jtd
��|jd|dd�WdQXdS(NRGRMt0i2idt100i�i����trelxis-10i�sbad screen distance "spam"Rq(	RRlR$t
place_infoRR.twinfo_xR"R(RRmRnRo((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_configure_x1s


c	Cs5|j�\}}}|jd|�|j|j�dd�|jj�|j|j�d�|jdd�|j|j�dd�|jj�|j|j�d�|jddd	d
�|j|j�dd�|jj�|j|j�d�|jtd
��|jd|dd�WdQXdS(NRGRkRxi(i2t50iZi����trelyis-10insbad screen distance "spam"Rq(	RRlR$R{RR.twinfo_yR"R(RRmRnRo((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_configure_yBs


c	Cs/|j�\}}}|jd|�|j|j�dd�|jj�|j|j�d�|jdd�|j|j�dd�|jj�|j|j�d�|jdd�|j|j�dd	�|jj�|j|j�d
�|jtd��|jd|dd�WdQXdS(
NRGRzRxi2g�?s0.5i}it1i�s-expected floating-point number but got "spam"Rq(	RRlR$R{RR.R|R"R(RRmRnRo((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_configure_relxSs


c	Cs/|j�\}}}|jd|�|j|j�dd�|jj�|j|j�d�|jdd�|j|j�dd�|jj�|j|j�d�|jdd�|j|j�dd	�|jj�|j|j�d
�|jtd��|jd|dd�WdQXdS(
NRGRRxi(g�?s0.5iPiR�ixs-expected floating-point number but got "spam"Rq(	RRlR$R{RR.R�R"R(RRmRnRo((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_configure_relyes


cCs�tj|j�}|jtd��|jdd�WdQX|jtd��|jdd�WdQXx8dD]0}|jd|�|j|j�d|�qkWdS(Nsbad anchor "j"R,tjsambiguous anchor ""RpR2R3R4R5R6R7R8R9R:(	R2R3R4R5R6R7R8R9R:(RRRR"RRlR$R{(RRntvalue((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_configure_anchorws
cCs�|j�\}}}|jd|dd�|jj�|j|j�d�|jdd�|jj�|j|j�d�|jtd��|jdd�WdQXdS(NRGR
ixRpisbad screen distance "abcd"tabcd(RRlRR.R$twinfo_widthR"R(RRmRnRo((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_configure_width�s

cCs�|j�\}}}|jd|dd�|jj�|j|j�d�|jdd�|jj�|j|j�d�|jtd��|jdd�WdQXdS(NRGRixRpi<sbad screen distance "abcd"R�(RRlRR.R$twinfo_heightR"R(RRmRnRo((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_configure_height�s

cCs�|j�\}}}|jd|dd�|jj�|j|j�d�|jdd�|jj�|j|j�d�|jtd��|jdd�WdQXdS(	NRGtrelwidthg�?iKRpis-expected floating-point number but got "abcd"R�(RRlRR.R$R�R"R(RRmRnRo((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_configure_relwidth�s

cCs�|j�\}}}|jd|dd�|jj�|j|j�d�|jdd�|jj�|j|j�d�|jtd��|jdd�WdQXdS(	NRGt	relheightg�?i(Rpi<s-expected floating-point number but got "abcd"R�(RRlRR.R$R�R"R(RRmRnRo((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_configure_relheight�s

cCs�tj|j�}|jtd��|jdd�WdQX|jtd��|jdd�WdQXx8d	D]0}|jd|�|j|j�d|�qkWdS(
Nsbad bordermode "j"t
bordermodeR�sambiguous bordermode ""Rptinsidetoutsidetignore(R�R�R�(RRRR"RRlR$R{(RRnR�((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_configure_bordermode�s
cCs�tj|j�}|jdddd�|jj�|j�|jj�|j|j��|jt	��|jd�WdQXdS(NR
i2Ri(
RRRRlR.tplace_forgettassertFalsetwinfo_ismappedtassertRaisest	TypeError(Rtfoo((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_forget�s


cCs�|j�\}}}|jd|dddddddd	d
ddd
dddddddd�|j�}|j|t�|j|dd�|j|dd�|j|dd�|j|dd�|j|d
d�|j|dd�|j|dd�|j|dd�|j|dd�|j|dd�|j|dd�|j|dd�|jt��|jd�WdQXdS(NRGRMiRkiR
iRiRzg�������?Rg�������?R�g333333�?R�g�������?R,R5R�R�R�t2t3t4s0.1s0.2s0.3s0.4i(RRlR{RXRYR$R�R�(RRmRnRoRZ((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_info�s('
cCs�tj|j�}tj|j�}|j|j�g�|jd|�|j|j�|g�|jt��|jd�WdQXdS(NRGi(RRRR$tplace_slavesRlR�R�(RR�tbar((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_slaves�sN(RcRdReRfRRwR}R�R�R�R�R�R�R�R�R�R�R�R�(((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyRgs 			
					
					
	
	tGridTestcBseZdZd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd�Zd	�Z
d
�Zd�Zd�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z!RS(cCs�|jj�\}}x@t|d�D].}|jj|dddddddd�q&Wx@t|d�D].}|jj|dddddddd�qiW|jjd�tt|�j�dS(NitweightitminsizetpadtuniformRp(	Rt	grid_sizetrangetgrid_columnconfiguretgrid_rowconfiguretgrid_propagatetsuperR�ttearDown(Rtcolstrowsti((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyR��s,,cCs�tj|j�}|j|j�i�|j�|j|j�d|j�|j|j�d|jd��|j|j�d|jd��|jidd6dd�|j|j�d|jd��|j|j�d|jd��dS(NRWtcolumnitrowii(RtButtonRR$t	grid_infotgrid_configureRP(RR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configure�s
###cCsrtj|j�}|jtd��|jdd�WdQX|jdd�|j|j�d|jd��dS(Ns5bad column value "-1": must be a non-negative integerR�i����i(	RR�RR"RR�R$R�RP(RR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configure_column�s
cCsrtj|j�}|jtd��|jdd�WdQX|jdd�|j|j�d|jd��dS(Ns4bad columnspan value "0": must be a positive integert
columnspanii(	RR�RR"RR�R$R�RP(RR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configure_columnspans
cCs�tj|j�}tj|j�}|j|j�i�|j�|j|j�d|j�|jd|�|j|j�d|�|ji|jd6�|j|j�d|j�dS(NRWRG(RRRR�R$R�R�(RRnR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configure_ins
cCs�tj|j�}|jtd��|jdd�WdQX|jdd�|j|j�d|jd��|jdd�|j|j�d|jt	t
d�|j���dS(Ns6bad ipadx value "-1": must be positive screen distanceR'i����is.5c(RR�RR"RR�R$R�RPRRtscaling(RR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configure_ipadxs#cCs�tj|j�}|jtd��|jdd�WdQX|jdd�|j|j�d|jd��|jdd�|j|j�d|jt	t
d�|j���dS(Ns6bad ipady value "-1": must be positive screen distanceR)i����is.5c(RR�RR"RR�R$R�RPRRR�(RR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configure_ipady!s#cCs�tj|j�}|jtd��|jdd�WdQX|jdd�|j|j�d|jd��|jdd�|j|j�d|jd	��|jdd�|j|j�d|jt	t
d�|j���dS(
Ns4bad pad value "-1": must be positive screen distanceR(i����ii
is.5c(i
i(i
i(RR�RR"RR�R$R�RPRRR�(RR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configure_padx,s##cCs�tj|j�}|jtd��|jdd�WdQX|jdd�|j|j�d|jd��|jdd�|j|j�d|jd	��|jdd�|j|j�d|jt	t
d�|j���dS(
Ns4bad pad value "-1": must be positive screen distanceR*i����ii
is.5c(i
i(i
i(RR�RR"RR�R$R�RPRRR�(RR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configure_pady9s##cCsrtj|j�}|jtd��|jdd�WdQX|jdd�|j|j�d|jd��dS(Ns9bad (row|grid) value "-1": must be a non-negative integerR�i����i(	RR�RR"RR�R$R�RP(RR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configure_rowFs
cCsrtj|j�}|jtd��|jdd�WdQX|jdd�|j|j�d|jd��dS(Ns1bad rowspan value "0": must be a positive integertrowspanii(	RR�RR"RR�R$R�RP(RR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configure_rownspanNs
cCs�tj|jdd�}|jtd��|jdd�WdQX|jdd�|j|j�dd�|jdd�|j|j�dd�dS(	NRRsbad stickyness value "glue"tstickytglueR3sn,s,e,wtnesw(RRRR"RR�R$R�(RRn((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configure_stickyVsc	Cs�|jt��|jj�WdQX|j|jjd�idd6dd6dd6dd6�|jtd��|jjdd�WdQX|jjddd	�|jtd
��|jjd�WdQXtj	|j�}|j
dddd�tdkr[|jjddd�|jtd��|jjd�WdQX|j|jjdd�d�n|j|jjdd�d	�|j|jjdd�d�tdkr�|jj|dd�|j|jjdd�d�ndS(NiR�R�R�R�sbad option "-foo"R�iis*must specify a single element on retrievalR�R�iitallsexpected integer but got "all"i	i(ii(ii(ii(ii(R�R�RR�R$ReR"RRR�R�R(RR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_columnconfigure_s,#	
"cCs�|jtd��|jjddd�WdQX|jjddd�|j|jjdd�d�|j|jjd�dd�dS(Nsbad screen distance "foo"iR�R�i
(R"RRR�R$(R((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyt!test_grid_columnconfigure_minsizews
c	Cs�|jtd��|jjddd�WdQX|jtd��|jjddd�WdQX|jjddd�|j|jjdd�d�|j|jjd�dd�dS(Nsexpected integer but got "bad"iR�tbads-invalid arg "-weight": should be non-negativei����i(R"RRR�R$(R((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyt test_grid_columnconfigure_weight~sc	Cs�|jtd��|jjddd�WdQX|jtd��|jjddd�WdQX|jjddd�|j|jjdd�d�|j|jjd�dd�dS(Nsbad screen distance "foo"iR�R�s*invalid arg "-pad": should be non-negativei����i(R"RRR�R$(R((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_columnconfigure_pad�scCsY|jjddd�|j|jjdd�d�|j|jjd�dd�dS(NiR�R�(RR�R$(R((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyt!test_grid_columnconfigure_uniform�sc	Cs�|jt��|jj�WdQX|j|jjd�idd6dd6dd6dd6�|jtd��|jjdd�WdQX|jjddd	�|jtd
��|jjd�WdQXtj	|j�}|j
dddd�tdkr[|jjddd�|jtd��|jjd�WdQX|j|jjdd�d�n|j|jjdd�d	�|j|jjdd�d�tdkr�|jj|dd�|j|jjdd�d�ndS(NiR�R�R�R�sbad option "-foo"R�iis*must specify a single element on retrievalR�R�iiR�sexpected integer but got "all"i	i(ii(ii(ii(ii(R�R�RR�R$ReR"RRR�R�R(RR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_rowconfigure�s,#	
"cCs�|jtd��|jjddd�WdQX|jjddd�|j|jjdd�d�|j|jjd�dd�dS(Nsbad screen distance "foo"iR�R�i
(R"RRR�R$(R((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_rowconfigure_minsize�s
c	Cs�|jtd��|jjddd�WdQX|jtd��|jjddd�WdQX|jjddd�|j|jjdd�d�|j|jjd�dd�dS(Nsexpected integer but got "bad"iR�R�s-invalid arg "-weight": should be non-negativei����i(R"RRR�R$(R((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_rowconfigure_weight�sc	Cs�|jtd��|jjddd�WdQX|jtd��|jjddd�WdQX|jjddd�|j|jjdd�d�|j|jjd�dd�dS(Nsbad screen distance "foo"iR�R�s*invalid arg "-pad": should be non-negativei����i(R"RRR�R$(R((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_rowconfigure_pad�scCsY|jjddd�|j|jjdd�d�|j|jjd�dd�dS(NiR�R�(RR�R$(R((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_rowconfigure_uniform�scCs�tj|j�}tj|j�}|jdddddddddddd	d
d�|j|jj�|g�|j�|j�|j|jj�g�|j|j�i�|jdddd�|j�}|j|d|jd��|j|d|jd��|j|d|jd
��|j|d|jd
��|j|d|jd��|j|d|jd��|j|d
d�dS(NR�iR�R�R�R(iR*iR�tnsiiRp(	RR�RR�R$tgrid_slavestgrid_forgetR�RP(RRRRZ((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_forget�s$!

cCs�tj|j�}tj|j�}|jdddddddddddd	d
d�|j|jj�|g�|j�|j�|j|jj�g�|j|j�i�|jdddd�|j�}|j|d|jd��|j|d|jd��|j|d|jd��|j|d|jd��|j|d|jd��|j|d|jd	��|j|d
d�dS(
NR�iR�R�R�R(iR*iR�R�i(	RR�RR�R$R�tgrid_removeR�RP(RRRRZ((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_remove�s$!

cCsUtj|j�}|j|j�i�|jdddddddddddd	d
d�|j�}|j|t�|j|d|j�|j|d|jd��|j|d|jd��|j|d|jd��|j|d|jd��|j|d|jd��|j|d|jd	��|j|d
d�dS(
NR�iR�R�R�R(iR*iR�R�RW(	RR�RR$R�R�RXRYRP(RRRZ((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_info�s!cCs�|j|jj�d�|j|jjdd�d�|j|jjdddd�d�|jtd��|jjdd�WdQX|jtd��|jjdd�WdQX|jtd��|jjdddd�WdQX|jtd��|jjdddd�WdQX|jt��!|jjddddd�WdQX|j}|jd�|jd�tj	|ddd	dd
d�}tj	|ddd	dd
d
�}|j
dddd�|j
dddd�|jj�|j|j�d�|j|jdd�d�|j|jdddd�d�|j|jdd�d�|j|jdddd�d�|j|jdddd�d�|j|jdddd�d�dS(Niisexpected integer but got "x"RMs1x1+0+0RpR
iKRRRiZRR�R�i�i
i����i����i(iiii(iiii(iiii(iii�i�(iiiKiK(iii�i�(iKiKiZiZ(iii�i�(iiii(i�i�ii(R$Rt	grid_bboxR"RR�R�RRRR�R.(RRmtf1Ro((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_bboxs8%"	

!!
"""cCs�|jt��|jj�WdQX|jt��|jjd�WdQX|jt��|jjddd�WdQX|jtd��|jjdd�WdQX|jtd��|jjdd�WdQX|j}|jd�|jd�tj|d	d
ddd
ddd�}|j	|jdd�d�|j
�|jj�|j	|jdd�d�|j	|jdd�d�|j	|jdd�d�|j	|jdd�d�|j	|jdd�d�|j	|jdd�d�|j	|jd
d�d�|j	|jdd�d�|j	|jdd�d�|j	|jdd�d �|j	|jdd�d!�dS("Nisbad screen distance "x"RMRksbad screen distance "y"RNs1x1+0+0RpR
i�RidthighlightthicknessRRi
i����i����i�iie(i����i����(i����i����(i����i(i����i(ii����(ii����(ii(ii(ii(ii(ii(ii(R�R�Rt
grid_locationR"RRRRR$R�R.(RRmRn((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_location&s:	



c	Cs�|j|jj�t�|jt��|jjtt�WdQX|jjt�|j|jj��tj	|jdddddd�}|j
dddd�|jj�|j|j�d�|j|j
�d�|jt�tj	|jdd	dd
dd�}|j
d|dddd�|jj�|j|j�d�|j|j
�d�|jt�|jj�|j|j�d	�|j|j
�d
�dS(
NR
idRRRR�iR�iKiURRG(R$RR�R-R�R�R^R�RRR�R.R�R�(RRntg((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_propagateFs($

$


cCs�|jt��|jjd�WdQX|j|jj�d�tj|j�}|jdddd�|j|jj�d	�|jdddd�|j|jj�d
�dS(NiR�R�iiii(ii(ii(ii(R�R�RR�R$RtScaleR�(RRn((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_size\scCs�|j|jj�g�tj|j�}|jdddd�tj|j�}|jdddd�tj|j�}|jdddd�tj|j�}|jdddd�|j|jj�||||g�|j|jjdd�|g�|j|jjdd�|||g�|j|jjdd�|g�|j|jjdd�|||g�|j|jjdddd�||g�dS(NR�iR�i(R$RR�RtLabelR�(RRRRR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_slavesfs%"("(N("RcRdReRfR�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�(((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyR��s>									
	
							
	
				
	
						 		
t__main__(tunittestRttTkinterRRttest.test_supportRRttest_ttk.supportRRRtwidget_testsRRtTestCaseR	RgR�t	tests_guiRc(((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyt<module>s
����

?>