ó {G_Tc@sddlZddlZddlZddlmZddlmZmZddlmZm Z m Z ddl m Z m Z edƒde ejfd„ƒYZd e ejfd „ƒYZd e ejfd „ƒYZeeefZed kreeŒndS(iÿÿÿÿN(tTclError(trequirest run_unittest(t pixels_convt tcl_versiont requires_tcl(tAbstractWidgetTestt int_roundtguitPackTestcBs}eZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z d „ZRS( c Csätj|jddƒ}|jdƒ|jddƒtj|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((sK/usr/local/lib/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_configuret assertEqualt pack_slaves(RR R RRR((sK/usr/local/lib/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 d td |ƒˆjjƒˆjˆjƒ|ƒdS( NR R!tipadxitpadxi tipadyitpadyitexpandtanchor(R#tTrueRtupdateR$twinfo_geometry(R,tgeom(R R(sK/usr/local/lib/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 RsK/usr/local/lib/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%(RR R RRR((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_pack_configure_before:s""cs{ˆjƒ\}‰‰‰‰‡‡‡‡‡fd†}ˆjddƒˆjddƒˆjddƒˆjddƒ|ddd d ƒˆjddd d ƒˆjddd d ƒˆjddd tƒˆjddd dƒ|ddddƒˆjddd d ddƒˆjddd d ddƒˆjddd tddƒˆjddd dddƒ|ddddƒdS(Ncsyˆjjƒˆjˆjƒ|dƒˆjˆjƒ|dƒˆjˆjƒ|dƒˆjˆjƒ|dƒdS(Niiii(RR.R$R/(tgeoms(R RRRR(sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyR1Ls  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 RRRRsK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_pack_configure_expandJs"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(RR R RRR((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_pack_configure_inbs" c síˆjƒ\}‰‰}}‡‡‡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-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(t pack_forgetR#R-RR.R$R/(tgeom1tgeom2tkwargs(R RR(sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyR1us    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 RRsK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyt#test_pack_configure_padx_ipadx_fillssB      c síˆjƒ\}‰‰}}‡‡‡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-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(sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyR1Ÿs    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 RRsK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyt#test_pack_configure_pady_ipady_fillsB      cstˆjƒ\}‰‰}}‡‡‡fd†}|dddƒ|dddƒ|dd d ƒ|d d 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(sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyR1És  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 RRsK/usr/local/lib/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(RR R RRR((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_pack_forgetÕs     cCsŠ|jƒ\}}}}}|jtd|ƒ|jƒWdQX|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|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(RR R RRRtinfo((sK/usr/local/lib/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-(RR R RRR((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_pack_propagateÿs     cCs~|jƒ\}}}}}|j|jƒgƒ|jƒ|j|jƒ|gƒ|jƒ|j|jƒ||gƒdS(N(RR$R%R#(RR R RRR((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_pack_slaves s   (t__name__t __module__RR&R;R=RFRHRRRSRTRUR[RaRb(((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyR s      * *   t PlaceTestcBseZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z d „Zd „Zd„ZRS(c Cs¯tj|jddddddƒ}|jdƒtj|dddd dd d d ƒ}|jd dddƒtj|dddddd d d ƒ}|jjƒ|||fS(NR i,RiÈtbdis+0+0išiTitrelieftraisedRMi0tyi&ii<(RRRRRtplace_configureR.(Rtttftf2((sK/usr/local/lib/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"RtretescapetstrRjR(RRkRlRm((sK/usr/local/lib/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"Ro( RRjR$t place_infoRR.twinfo_xR"R(RRkRlRm((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_configure_x-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(NRGRiRvi(i2t50iZiöÿÿÿtrelyis-10insbad screen distance "spam"Ro( RRjR$RyRR.twinfo_yR"R(RRkRlRm((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_configure_y>s   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( NRGRxRvi2gà?s0.5i}it1iÈs-expected floating-point number but got "spam"Ro( RRjR$RyRR.RzR"R(RRkRlRm((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_configure_relxOs   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( NRGR}Rvi(gà?s0.5iPiR€ixs-expected floating-point number but got "spam"Ro( RRjR$RyRR.R~R"R(RRkRlRm((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_configure_relyas   c Cs£tj|jƒ}|jtdƒ|jddƒWdQX|jtdƒ|jddƒWdQXx8dD]0}|jd|ƒ|j|jƒd|ƒqkWdS(Nsbad anchor "j"R,tjsambiguous anchor ""RnR2R3R4R5R6R7R8R9R:( R2sneR4sseR6sswR8snwscenter(RRRR"RRjR$Ry(RRltvalue((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_configure_anchorss cCs®|jƒ\}}}|jd|ddƒ|jjƒ|j|jƒdƒ|jddƒ|jjƒ|j|jƒdƒ|jtdƒ|jddƒWdQXdS(NRGR ixRnisbad screen distance "abcd"tabcd(RRjRR.R$t winfo_widthR"R(RRkRlRm((sK/usr/local/lib/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(NRGRixRni<sbad screen distance "abcd"R†(RRjRR.R$t winfo_heightR"R(RRkRlRm((sK/usr/local/lib/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à?iKRnis-expected floating-point number but got "abcd"R†(RRjRR.R$R‡R"R(RRkRlRm((sK/usr/local/lib/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(Rni<s-expected floating-point number but got "abcd"R†(RRjRR.R$R‰R"R(RRkRlRm((sK/usr/local/lib/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 ""Rntinsidetoutsidetignore(RR‘signore(RRRR"RRjR$Ry(RRlR„((sK/usr/local/lib/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( RRRRjR.t place_forgett assertFalsetwinfo_ismappedt assertRaisest TypeError(Rtfoo((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_forgetµs   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ƒ|jdƒWdQXdS(NRGRMiRiiR iRiRxgš™™™™™¹?R}gš™™™™™É?R‹g333333Ó?Rgš™™™™™Ù?R,R5RR‘R€t2t3t4s0.1s0.2s0.3s0.4i(RRjRyRXRYR$R—R˜(RRkRlRmRZ((sK/usr/local/lib/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_slavesRjR—R˜(RR™tbar((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_place_slavesÕs(RcRdRRuR{RRR‚R…RˆRŠRŒRŽR“RšRžR¡(((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyRes     tGridTestcBseZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z d „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(c CsÂtt|ƒjƒ|jjƒ\}}x@t|dƒD].}|jj|ddddddddƒq9Wx@t|dƒD].}|jj|ddddddddƒq|W|jjdƒdS(NitweightitminsizetpadtuniformRn( tsuperR¢ttearDownRt grid_sizetrangetgrid_columnconfiguretgrid_rowconfiguretgrid_propagate(Rtcolstrowsti((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyR¨ás,,cCs tj|jƒ}|j|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( RtButtonRt addCleanuptdestroyR$t grid_infotgrid_configureRP(RR((sK/usr/local/lib/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((sK/usr/local/lib/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((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configure_columnspanþs 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·(RRlR((sK/usr/local/lib/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((sK/usr/local/lib/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((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configure_ipadys#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((sK/usr/local/lib/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((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configure_pady4s##cCs‚tj|jƒ}|j|jƒ|jtdƒ|jddƒWdQX|jddƒ|j|j ƒd|j dƒƒdS(Ns9bad (row|grid) value "-1": must be a non-negative integerR²iÿÿÿÿi( RR³RR´RµR"RR·R$R¶RP(RR((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configure_rowAs 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((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configure_rownspanJs 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¶(RRl((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_configure_stickyRsc Csá|jtƒ|jjƒWdQX|j|jjdƒidd6dd6dd6dd6ƒ|jtdƒ|jjddƒWdQX|jjddd ƒ|jtd ƒ|jjdƒWdQXtj |jƒ}|j d dd dƒt dkr[|jjdddƒ|jtdƒ|jjdƒWdQX|j|jjddƒdƒn|j|jjddƒd ƒ|j|jjddƒdƒt dkrÝ|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$tNoneR"RRR³R·R(RR((sK/usr/local/lib/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((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyt!test_grid_columnconfigure_minsizess 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((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyt test_grid_columnconfigure_weightzsc 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((sK/usr/local/lib/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((sK/usr/local/lib/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 d dd dƒt dkr[|jjdddƒ|jtdƒ|jjdƒWdQX|j|jjddƒdƒn|j|jjddƒd ƒ|j|jjddƒdƒt dkrÝ|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$RÊR"RRR³R·R(RR((sK/usr/local/lib/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((sK/usr/local/lib/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((sK/usr/local/lib/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((sK/usr/local/lib/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((sK/usr/local/lib/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ÅtnsiiRn( RR³RR·R$t grid_slavest grid_forgetR¶RP(RRRRZ((sK/usr/local/lib/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×t grid_removeR¶RP(RRRRZ((sK/usr/local/lib/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((sK/usr/local/lib/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ƒWdQXtj|jƒ}|j dƒ|j dƒ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+0RnR 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˜RRRRR·R.(RRktf1Rm((sK/usr/local/lib/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ƒWdQXtj|jƒ}|jdƒ|jdƒtj |d d d d 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"RMRisbad screen distance "y"RNs1x1+0+0RnR 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"RRRRRR$R·R.(RRkRl((sK/usr/local/lib/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‰(RRltg((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_propagateBs($  $   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·(RRl((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_sizeXscCs¡|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((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyttest_grid_slavesbs%"("(( RcRdR¨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è(((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyR¢ßs<               t__main__(tunittestRrRRttest.test_supportRRttest_ttk.supportRRRt widget_testsRRtTestCaseR ReR¢t tests_guiRc(((sK/usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_geometry_managers.pyts    ÿ Êÿ—