7ec@sddlZddlZddlZddlmZddlmZmZddlm Z m Z m Z ddl m Z mZedde ejfdYZd e ejfd YZd e ejfd YZeeefZed kreendS(iN(tTclError(trequirest run_unittest(t pixels_convt tcl_versiont requires_tcl(tAbstractWidgetTestt int_roundtguitPackTestcBseZd ZdZdZdZdZdZdZ dZ dZ dZ d Z d Zd Zd ZRS(c Cstj|jdd}|jd|jddtj|dddddd d d }tj|dd dd ddd d}tj|ddddddd d}tj|dddd ddd d}|||||fS(Ntnametpacks 300x200+0+0itatwidthitheighti(tbgtredtbi2itbluetciPtgreentdtyellow(ttkintertTopleveltroott wm_geometryt wm_minsizetFrame(tselfR R RRR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pytcreate2s ''''cCs;|j\}}}}}|jtd||jd|WdQX|jtd|jddWdQX|jdd|jdd|jdd|jdd|j|j||||g|jd||j|j||||g|jd||j|j||||gdS(Nswindow "%s" isn't packedtaftersbad window path name ".foo"s.footsidettop(RtassertRaisesRegexpRtpack_configuret assertEqualt pack_slaves(RR R RRR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_pack_configure_afters""csj\}}}}fd}|dd|dd|dd|dd |d d |d d |dd|dd|dddS(Ncs[jddddddddd d d td |jjjj|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+110tws 30x70+10+65tnws 30x70+10+20tcenters 30x70+135+65(R(RR RRRR1((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|jddWdQX|jdd|jdd|jdd|jdd|j|j||||g|jd||j|j||||g|jd||j|j||||gdS(Nswindow "%s" isn't packedtbeforesbad window path name ".foo"s.fooR R!(RR"RR#R$R%(RR R RRR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_pack_configure_before<s""cs{j\}fd}jddjddjddjdd|ddd d jddd d jddd d jddd tjddd d|ddddjddd d ddjddd d ddjddd tddjddd ddd|dddddS(Ncsyjjjj|djj|djj|djj|ddS(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+80s 50x30+135+0s 80x80+220+75s 40x30+100+170R+tyestonis 20x40+40+80s 50x30+175+35s 80x80+180+110s 40x30+100+135tfilltboths 100x200+0+0s 200x100+100+0s160x100+140+100s40x100+100+100(RR#R-(RR R1((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|jddWdQXdS(NR R!tin_scan't pack %s inside itselfsbad window path name ".foo"s.foo(RR#R$R%R"R(RR R RRR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_pack_configure_inds" c sj\}}}fd}|dddddd|dddddd'|d dddd d|d dddd ddd |dddddddd|dddddd(dd|d dddd 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-ddjdd&jjdj|jd&jd d&jjd j|jd&dS(.Ncstjjj|jdtddjjjj|jj|dS(NR+RDRE(t pack_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+80s 240x200+0+0R R@R(is 20x40+250+80i is 60x40+240+80R's 30x40+260+80s 250x200+0+0iRDtxs 20x40+249+80i is 30x40+255+80is 20x40+140+0s 300x160+0+40R!s 20x40+120+0ii(s 60x40+120+0s 30x40+135+0s 30x40+130+0s 260x40+20+0s 260x40+25+0is 300x40+0+0s 280x40+10+0s 280x40+5+0t1c(i i(i i(ii(ii((ii(ii(ii(RR#R$t pack_infot_strt winfo_pixels(RR RRR1((R RRsG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyt#test_pack_configure_padx_ipadx_fillusB      c sj\}}}fd}|dddddd|dddddd'|d dddd d|d dddd ddd |dddddddd|dddddd(dd|d dddd 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-ddjdd&jjdj|jd&jd d&jjd j|jd&dS(.Ncstjjj|jdtddjjjj|jj|dS(NR+RDRE(RIR#R-RR.R$R/(RJRKRL(R RR(sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyR1s    s 20x40+280+80s 280x200+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!s 20x40+140+0ii(s 20x80+140+0s 20x50+140+10s 300x130+0+70s 20x50+140+5s 300x40+0+20s 300x40+0+25is 300x80+0+0s 300x50+0+10s 300x50+0+5RN(i i(i i(ii(ii((ii(ii(ii(RR#R$RORPRQ(RR RRR1((R RRsG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyt#test_pack_configure_pady_ipady_fillsB      cstj\}}}fd}|ddd|ddd|dd d |d d d dS(Ncs}jd|jjd|jdtddjjjj|jj|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.pyR1s  R!s 20x40+140+0s 300x160+0+40RAs 20x40+140+160s 300x160+0+0R?s 20x40+0+80s 280x200+20+0R@s 20x40+280+80s 280x200+0+0(R(RR RRR1((R RRsG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_pack_configure_sides cCs|j\}}}}}|j|j|j|j|j|||g|j|j|j||g|j|j|j||g|jdS(N(RR#R$R%RI(RR R RRR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_pack_forgets     cCs|j\}}}}}|jtd||jWdQX|j|jddd|dddtdd d d d 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|dddS(Nswindow "%s" isn't packedR R@RGR,R6R+RDRMR'iR(i R)iR*iR:itnonetinR!i(ii(ii( RR"RROR#R-tassertIsInstancetdictR$RP(RR R RRRtinfo((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_pack_infos8 '  cCs|j\}}}}}|jdddd|j|jt|jj|j|jd|j|j d|jt |jj|j|jd|j|j ddS(NR i,Riii(( Rt configureR#tpack_propagatetFalseRR.R$twinfo_reqwidthtwinfo_reqheightR-(RR R RRR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_pack_propagates     cCs~|j\}}}}}|j|jg|j|j|j|g|j|j|j||gdS(N(RR$R%R#(RR R 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 PlaceTestcBseZdZdZdZdZdZdZdZ dZ dZ dZ d Z d Zd Zd Zd ZdZRS(c Cstj|jdddddd}|jdtj|dddd dd d d }|jd dddtj|dddddd d d }|jj|||fS(NR i,Ritbdis 300x200+0+0iiTitrelieftraisedRMi0tyi&ii<(RRRRRtplace_configureR.(Rtttftf2((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyRs$ '' cCs|j\}}}|j|jd|jtdtjt||jd|WdQXt d kr|j|jdn|jtd|jddWdQX|jd||j|jddS( 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|jdd|jj|j|jd|jdd|j|jdd|jj|j|jd|jddd d |j|jdd |jj|j|jd |jtd |jd|ddWdQXdS(NRGRMt0i2idt100iitrelxis-10isbad 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|jdd|jj|j|jd|jdd|j|jdd|jj|j|jd|jddd d |j|jdd |jj|j|jd |jtd |jd|ddWdQXdS(NRGRkRxi(i2t50iZitrelyis-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|jdd|jj|j|jd|jdd|j|jdd|jj|j|jd|jdd|j|jdd |jj|j|jd |jtd |jd|dd WdQXdS( NRGRzRxi2g?s0.5i}it1is-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|jdd|jj|j|jd|jdd|j|jdd|jj|j|jd|jdd|j|jdd |jj|j|jd |jtd |jd|dd WdQXdS( NRGRRxi(g?s0.5iPiRixs-expected floating-point number but got "spam"Rq( RRlR$R{RR.RR"R(RRmRnRo((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_configure_relyes   c Cstj|j}|jtd|jddWdQX|jtd|jddWdQXx8dD]0}|jd||j|jd|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|jd|jdd|jj|j|jd|jtd|jddWdQXdS(NRGR ixRpisbad screen distance "abcd"tabcd(RRlRR.R$t winfo_widthR"R(RRmRnRo((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_configure_widths  cCs|j\}}}|jd|dd|jj|j|jd|jdd|jj|j|jd|jtd|jddWdQXdS(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_heights  cCs|j\}}}|jd|dd|jj|j|jd|jdd|jj|j|jd|jtd|jddWdQXdS( NRGtrelwidthg?iKRpis-expected floating-point number but got "abcd"R(RRlRR.R$RR"R(RRmRnRo((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_configure_relwidths  cCs|j\}}}|jd|dd|jj|j|jd|jdd|jj|j|jd|jtd|jddWdQXdS( NRGt relheightg?i(Rpi<s-expected floating-point number but got "abcd"R(RRlRR.R$RR"R(RRmRnRo((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_configure_relheights  cCstj|j}|jtd|jddWdQX|jtd|jddWdQXx8d D]0}|jd||j|jd|qkWdS( Nsbad bordermode "j"t bordermodeRsambiguous bordermode ""Rptinsidetoutsidetignore(RRR(RRRR"RRlR$R{(RRnR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_configure_bordermodes cCstj|j}|jdddd|jj|j|jj|j|j|jt |jdWdQXdS(NR i2Ri( RRRRlR.t place_forgett assertFalsetwinfo_ismappedt assertRaisest TypeError(Rtfoo((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_forgets   cCs|j\}}}|jd|dddddddd d d d 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|jdWdQXdS(NRGRMiRkiR iRiRzg?Rg?Rg333333?Rg?R,R5RRRt2t3t4s0.1s0.2s0.3s0.4i(RRlR{RXRYR$RR(RRmRnRoRZ((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_infos('  cCstj|j}tj|j}|j|jg|jd||j|j|g|jt|jdWdQXdS(NRGi(RRRR$t place_slavesRlRR(RRtbar((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_slavessN(RcRdReRfRRwR}RRRRRRRRRRRR(((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyRgs      tGridTestcBseZdZdZdZdZdZdZdZ dZ dZ dZ d Z d Zd Zd Zd ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!RS(c Cs|jj\}}x@t|dD].}|jj|ddddddddq&Wx@t|dD].}|jj|ddddddddqiW|jjdtt|jdS(NitweightitminsizetpadtuniformRp( Rt grid_sizetrangetgrid_columnconfiguretgrid_rowconfiguretgrid_propagatetsuperRttearDown(Rtcolstrowsti((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyRs,,cCstj|j}|j|ji|j|j|jd|j|j|jd|jd|j|jd|jd|jidd6dd|j|jd|jd|j|jd|jddS(NRWtcolumnitrowii(RtButtonRR$t grid_infotgrid_configureRP(RR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configures ###cCsrtj|j}|jtd|jddWdQX|jdd|j|jd|jddS(Ns5bad column value "-1": must be a non-negative integerRii( RRRR"RRR$RRP(RR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configure_columns cCsrtj|j}|jtd|jddWdQX|jdd|j|jd|jddS(Ns4bad columnspan value "0": must be a positive integert columnspanii( RRRR"RRR$RRP(RR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configure_columnspans cCstj|j}tj|j}|j|ji|j|j|jd|j|jd||j|jd||ji|jd6|j|jd|jdS(NRWRG(RRRRR$RR(RRnR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configure_in s cCstj|j}|jtd|jddWdQX|jdd|j|jd|jd|jdd|j|jd|jt t d|j dS(Ns6bad ipadx value "-1": must be positive screen distanceR'iis.5c( RRRR"RRR$RRPRRtscaling(RR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configure_ipadxs#cCstj|j}|jtd|jddWdQX|jdd|j|jd|jd|jdd|j|jd|jt t d|j dS(Ns6bad ipady value "-1": must be positive screen distanceR)iis.5c( RRRR"RRR$RRPRRR(RR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configure_ipady!s#cCstj|j}|jtd|jddWdQX|jdd|j|jd|jd|jdd|j|jd|jd |jdd|j|jd|jt t d|j dS( Ns4bad pad value "-1": must be positive screen distanceR(iii is.5c(i i(i i( RRRR"RRR$RRPRRR(RR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configure_padx,s##cCstj|j}|jtd|jddWdQX|jdd|j|jd|jd|jdd|j|jd|jd |jdd|j|jd|jt t d|j dS( Ns4bad pad value "-1": must be positive screen distanceR*iii is.5c(i i(i i( RRRR"RRR$RRPRRR(RR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configure_pady9s##cCsrtj|j}|jtd|jddWdQX|jdd|j|jd|jddS(Ns9bad (row|grid) value "-1": must be a non-negative integerRii( RRRR"RRR$RRP(RR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configure_rowFs cCsrtj|j}|jtd|jddWdQX|jdd|j|jd|jddS(Ns1bad rowspan value "0": must be a positive integertrowspanii( RRRR"RRR$RRP(RR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configure_rownspanNs cCstj|jdd}|jtd|jddWdQX|jdd|j|jdd|jdd|j|jdddS( NRRsbad stickyness value "glue"tstickytglueR3sn,s,e,wtnesw(RRRR"RRR$R(RRn((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configure_stickyVsc Cs|jt|jjWdQX|j|jjdidd6dd6dd6dd6|jtd|jjddWdQX|jjddd |jtd |jjdWdQXtj |j}|j d dd dt dkr[|jjddd|jtd|jjdWdQX|j|jjdddn|j|jjddd |j|jjdddt dkr|jj|dd|j|jjdddndS(NiRRRRsbad option "-foo"Riis*must specify a single element on retrievalRRiitallsexpected integer but got "all"i i(ii(ii(ii(ii( RRRRR$ReR"RRRRR(RR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_columnconfigure_s,#   " cCs|jtd|jjdddWdQX|jjddd|j|jjddd|j|jjddddS(Nsbad screen distance "foo"iRRi (R"RRRR$(R((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyt!test_grid_columnconfigure_minsizews c Cs|jtd|jjdddWdQX|jtd|jjdddWdQX|jjddd|j|jjddd|j|jjddddS(Nsexpected integer but got "bad"iRtbads-invalid arg "-weight": should be non-negativeii(R"RRRR$(R((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyt test_grid_columnconfigure_weight~sc Cs|jtd|jjdddWdQX|jtd|jjdddWdQX|jjddd|j|jjddd|j|jjddddS(Nsbad screen distance "foo"iRRs*invalid arg "-pad": should be non-negativeii(R"RRRR$(R((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_columnconfigure_padscCsY|jjddd|j|jjddd|j|jjddddS(NiRR(RRR$(R((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyt!test_grid_columnconfigure_uniformsc Cs|jt|jjWdQX|j|jjdidd6dd6dd6dd6|jtd|jjddWdQX|jjddd |jtd |jjdWdQXtj |j}|j d dd dt dkr[|jjddd|jtd|jjdWdQX|j|jjdddn|j|jjddd |j|jjdddt dkr|jj|dd|j|jjdddndS(NiRRRRsbad option "-foo"Riis*must specify a single element on retrievalRRiiRsexpected integer but got "all"i i(ii(ii(ii(ii( RRRRR$ReR"RRRRR(RR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_rowconfigures,#   " cCs|jtd|jjdddWdQX|jjddd|j|jjddd|j|jjddddS(Nsbad screen distance "foo"iRRi (R"RRRR$(R((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_rowconfigure_minsizes c Cs|jtd|jjdddWdQX|jtd|jjdddWdQX|jjddd|j|jjddd|j|jjddddS(Nsexpected integer but got "bad"iRRs-invalid arg "-weight": should be non-negativeii(R"RRRR$(R((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_rowconfigure_weightsc Cs|jtd|jjdddWdQX|jtd|jjdddWdQX|jjddd|j|jjddd|j|jjddddS(Nsbad screen distance "foo"iRRs*invalid arg "-pad": should be non-negativeii(R"RRRR$(R((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_rowconfigure_padscCsY|jjddd|j|jjddd|j|jjddddS(NiRR(RRR$(R((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_rowconfigure_uniformscCstj|j}tj|j}|jdddddddddddd d d |j|jj|g|j|j|j|jjg|j|ji|jdd dd |j}|j|d|jd |j|d|jd |j|d|jd |j|d|jd |j|d|jd |j|d|jd |j|d ddS(NRiRRRR(iR*iRtnsiiRp( RRRRR$t grid_slavest grid_forgetRRP(RRRRZ((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_forgets$!   cCstj|j}tj|j}|jdddddddddddd d d |j|jj|g|j|j|j|jjg|j|ji|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( NRiRRRR(iR*iRRi( RRRRR$Rt grid_removeRRP(RRRRZ((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_removes$!   cCsUtj|j}|j|ji|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( NRiRRRR(iR*iRRRW( RRRR$RRRXRYRP(RRRZ((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_infos! cCs|j|jjd|j|jjddd|j|jjddddd|jtd|jjddWdQX|jtd|jjddWdQX|jtd|jjddddWdQX|jtd|jjddddWdQX|jt!|jjdddddWdQX|j}|jd|jdtj |ddd dd d }tj |dd d d d d }|j dddd|j dddd|jj |j|jd|j|jddd|j|jddddd|j|jddd|j|jddddd|j|jddddd|j|jddddddS(Niisexpected integer but got "x"RMs1x1+0+0RpR iKRRRiZRRRii iii (iiii(iiii(iiii(iiii(iiiKiK(iiii(iKiKiZiZ(iiii(iiii(iiii( R$Rt grid_bboxR"RRRRRRRR.(RRmtf1Ro((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_bboxs8%"   !! """cCs|jt|jjWdQX|jt|jjdWdQX|jt|jjdddWdQX|jtd|jjddWdQX|jtd|jjddWdQX|j}|jd|jdtj|d d d d d ddd}|j |jddd|j |jj |j |jddd|j |jddd|j |jddd|j |jddd|j |jddd|j |jddd|j |jd dd|j |jddd|j |jdd d|j |jddd |j |jddd!dS("Nisbad screen distance "x"RMRksbad screen distance "y"RNs1x1+0+0RpR iRidthighlightthicknessRRi iiiiie(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii( RRRt grid_locationR"RRRRR$RR.(RRmRn((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_location&s:     c Cs|j|jjt|jt|jjttWdQX|jjt|j|jjtj |jdddddd}|j dddd|jj |j|j d|j|j d|jttj |jdd dd dd }|j d |dddd|jj |j|j d|j|j d|jt|jj |j|j d |j|j d dS( NR idRRRRiRiKiURRG(R$RRR-RRR^RRRRR.RR(RRntg((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_propagateFs($  $   cCs|jt|jjdWdQX|j|jjdtj|j}|jdddd|j|jjd |jdddd|j|jjd dS( NiRRiiii(ii(ii(ii(RRRRR$RtScaleR(RRn((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_size\scCs|j|jjgtj|j}|jddddtj|j}|jddddtj|j}|jddddtj|j}|jdddd|j|jj||||g|j|jjdd|g|j|jjdd|||g|j|jjdd|g|j|jjdd|||g|j|jjdddd||gdS(NRiRi(R$RRRtLabelR(RR RRR((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_slavesfs%"("(N("RcRdReRfRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR(((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyRs>                t__main__(tunittestRttTkinterRRttest.test_supportRRttest_ttk.supportRRRt widget_testsRRtTestCaseR RgRt tests_guiRc(((sG/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyts