kWc@sTddlZddlZddlmZddlZddlZddlmZmZddl m Z m Z m Z m Z ddlmZmZmZmZmZmZmZmZmZmZeddeefdYZeed eejfd YZeed eejfd YZeed eejfdYZdeefdYZeedeejfdYZeedeejfdYZ eedeejfdYZ!eedeejfdYZ"eedeejfdYZ#de#ejfdYZ$eeedeejfdYZ%eede%ejfd YZ&eed!eejfd"YZ'eeed#eejfd$YZ(eeed%eejfd&YZ)eeed'eejfd(YZ*eeed)eejfd*YZ+eed+eejfd,YZ,eed-eejfd.YZ-eeed/eejfd0YZ.e e(e!e%eeee)e#e-e.e$e,e"e*e+e&e'egZ/e0d1krPee/ndS(2iN(tTclError(trequirest run_unittest(t tcl_versiont requires_tcltget_tk_patchlevelt widget_eq( tadd_standard_optionstnoconvt noconv_metht int_roundt pixels_roundtAbstractWidgetTesttStandardOptionsTeststIntegerSizeTeststPixelSizeTestst setUpModuletguitAbstractToplevelTestcBs2eZeZdZdZdZdZRS(cCso|j}|j|d|jjj|j|dddd|jdd}|j|dddS(NtclasstFooterrmsgs2can't modify -class option after widget is createdtclass_(tcreatet assertEqualt __class__t__name__ttitletcheckInvalidParam(tselftwidgettwidget2((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_classs  cCsc|j}|j|dd|j|dddd|jdd}|j|dddS(NtcolormapttnewRs5can't modify -colormap option after widget is created(RRR(RRR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_colormaps  cCs|j}|j|d|jr(dnd|j|dddd|jdt}|j|d|jrvdnddS(Nt containerit0iRs6can't modify -container option after widget is createdt1(RRt wantobjectsRtTrue(RRR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_container's  #cCsc|j}|j|dd|j|dddd|jdd}|j|dddS(NtvisualR"tdefaultRs3can't modify -visual option after widget is created(RRR(RRR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_visual/s  (Rt __module__R t_conv_pad_pixelsR R$R*R-(((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRs   t ToplevelTestcBs2eZdZdZdZdZdZRS(t backgroundt borderwidthRR!R%tcursortheightthighlightbackgroundthighlightcolorthighlightthicknesstmenutpadxtpadytrelieftscreent takefocustuseR+twidthcKstj|j|S(N(ttkintertTopleveltroot(Rtkwargs((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRBscCsN|j}tj|j}|j|d|dt|j|dddS(NR8teqR"(RR@tMenuRBt checkParamR(RRR8((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_menuEs cCs|j}|j|ddytjd}Wntk rQ|jdnX|j|d|dd|jd|}|j|d|dS(NR<R"tDISPLAYsNo $DISPLAY set.Rs3can't modify -screen option after widget is created(RRtostenvirontKeyErrortskipTestR(RRtdisplayR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_screenKs  cCsn|j}|j|dd|jdt}|j}|jd|}|jt|d|dS(NR>R"R%(RRR)twinfo_idtint(RRtparenttwidR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_useWs   (s backgroundR2sclassscolormaps containerR3R4R5R6R7smenuR9R:R;sscreenR=susesvisualswidth(RR.tOPTIONSRRGRNRS(((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR08s   t FrameTestcBseZdZdZRS(R1R2RR!R%R3R4R5R6R7R;R=R+R?cKstj|j|S(N(R@tFrameRB(RRC((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRis(s backgrounds borderwidthsclassscolormaps containerscursorsheightshighlightbackgroundshighlightcolorshighlightthicknesssreliefs takefocussvisualswidth(RR.RTR(((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRU`s tLabelFrameTestcBs)eZdZdZdZdZRS(R1R2RR!R%R3tfontt foregroundR4R5R6R7t labelanchort labelwidgetR9R:R;R=ttextR+R?cKstj|j|S(N(R@t LabelFrameRB(RRC((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRxscCsW|j}|j|ddddddddd d d d d |j|dddS(NRZtetentestntnetnwtstsetswtwtwntwstcenter(RtcheckEnumParamR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_labelanchor{s   cCsQ|j}tj|jdddd}|j|d|dd|jdS(NR\tMupptnametfooR[texpecteds.foo(RR@tLabelRBRFtdestroy(RRtlabel((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_labelwidgets (s backgrounds borderwidthsclassscolormaps containerscursorRXRYsheightshighlightbackgroundshighlightcolorshighlightthicknesss labelanchors labelwidgetspadxspadysreliefs takefocusstextsvisualswidth(RR.RTRRlRt(((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRWms  tAbstractLabelTestcBseZeZdZRS(c Cs2|j}|j|ddddddddS(NR7ig?g@iit10p(RtcheckPixelsParam(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_highlightthicknesss  (RR.R t _conv_pixelsRx(((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRust LabelTestcBseZdZdZRS(tactivebackgroundtactiveforegroundtanchorR1tbitmapR2tcompoundR3tdisabledforegroundRXRYR4R5R6R7timagetjustifyR9R:R;tstateR=R\t textvariablet underlineR?t wraplengthcKstj|j|S(N(R@RqRB(RRC((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRs(R{R|R}s backgroundR~s borderwidthRscursorRsfonts foregroundsheightshighlightbackgroundshighlightcolorshighlightthicknesssimageRspadxspadysreliefsstates takefocusstextRRswidthR(RR.RTR(((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRzst ButtonTestc Bs eZd"Zd Zd!ZRS(#R{R|R}R1R~R2tcommandRR3R,RRXRYR4R5R6R7RRt overreliefR9R:R;t repeatdelaytrepeatintervalRR=R\RRR?RcKstj|j|S(N(R@tButtonRB(RRC((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRscCs)|j}|j|dddddS(NR,tactivetdisabledtnormal(RRk(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_defaults ( sactivebackgroundsactiveforegroundsanchors backgroundsbitmaps borderwidthRscompoundscursorsdefaultsdisabledforegroundsfonts foregroundsheightshighlightbackgroundshighlightcolorshighlightthicknesssimagesjustifyRspadxspadysreliefRRsstates takefocusstexts textvariables underlineswidths wraplength(RR.RTRR(((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRs tCheckbuttonTestc&Bs)eZd)Zd&Zd'Zd(ZRS(*R{R|R}R1R~R2RRR3RRXRYR4R5R6R7Rt indicatoronRt offrelieftoffvaluetonvalueRR9R:R;t selectcolort selectimageRR=R\Rt tristateimaget tristatevalueRtvariableR?RcKstj|j|S(N(R@t CheckbuttonRB(RRC((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRscCs,|j}|j|ddddddS(NRigffffff@R"s any string(Rt checkParams(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_offvalues cCs,|j}|j|ddddddS(NRigffffff@R"s any string(RR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_onvalues (&sactivebackgroundsactiveforegroundsanchors backgroundsbitmaps borderwidthscommandscompoundscursorsdisabledforegroundsfonts foregroundsheightshighlightbackgroundshighlightcolorshighlightthicknesssimageRsjustifyRsoffvaluesonvalues overreliefspadxspadysreliefRRsstates takefocusstexts textvariableRRs underlinesvariableswidths wraplength(RR.RTRRR(((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRs  tRadiobuttonTestc%Bs eZd'Zd%Zd&ZRS((R{R|R}R1R~R2RRR3RRXRYR4R5R6R7RRRRRR9R:R;RRRR=R\RRRRtvalueRR?RcKstj|j|S(N(R@t RadiobuttonRB(RRC((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRscCs,|j}|j|ddddddS(NRigffffff@R"s any string(RR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_values (%sactivebackgroundsactiveforegroundsanchors backgroundsbitmaps borderwidthscommandscompoundscursorsdisabledforegroundsfonts foregroundsheightshighlightbackgroundshighlightcolorshighlightthicknesssimages indicatoronsjustifys offreliefs overreliefspadxspadysreliefs selectcolors selectimagesstates takefocusstexts textvariables tristateimages tristatevalues underlinesvaluesvariableswidths wraplength(RR.RTRR(((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRs tMenubuttonTestcBseZd(ZeeZdZdZd Ze j j Z e j ejd!kd"d#Zd$Zd%Zd&Zd'ZRS()R{R|R}R1R~R2RR3t directionRRXRYR4R5R6R7RRRR8R9R:R;RR=R\RRR?RcKstj|j|S(N(R@t MenubuttonRB(RRC((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRscCs/|j}|j|dddddddS(NRtabovetbelowtflushtlefttright(RRk(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_directions  cCs/|j}|j|dddddtdS(NR4idiitconv(RtcheckIntegerParamtstr(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_heights tdarwins"crashes with Cocoa Tk (issue19733)c Cs|j}tjd|jdd}|j|d|dtd}|jtj}d|dZd?ZRS(BtautoseparatorsR1t blockcursorR2R3tendlineRRXRYR4R5R6R7tinactiveselectbackgroundRRRRtinsertunfocussedRtmaxundoR9R:R;RRRtsetgridtspacing1tspacing2tspacing3t startlineRttabsttabstyleR=tundoR?RRtyscrollcommandiicKstj|j|S(N(R@tTextRB(RRC((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRscCs |j}|j|ddS(NR(RR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_autoseparatorss cCs |j}|j|ddS(NR(RR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_blockcursors cCs|j}djdtdD}|jd||j|dddd|j|dd dd|j|dd d d |j|dd |j|dd|j|ddd ddS(Ns css|] }dVqdS(sLine %dN((t.0ti((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pys sidtendRiRpR"iRRsexpected integer but got "spam"i2R ii s1-startline must be less than or equal to -endline(RtjointrangetinsertRFR(RRR\((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_endlines cCs^|j}|j|ddddd|j|dddd|j|dd dddS( NR4idgLY@gfffffY@t3ciRpii(RRwRF(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRs cCs)|j}|j|dddddS(NRiii(RR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_maxundo s cCs |j}|j|ddS(NR(RR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_inactiveselectbackgrounds icCs)|j}|j|dddddS(NRthollowRtsolid(RRk(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_insertunfocusseds  c Cs>|j}|j|ddddddtdtd kdS( NRg?g@iRvRt keep_origii(ii(RRwRR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_selectborderwidths  cCsE|j}|j|ddddd|j|dddddS( NRigffffff5@g6@s0.5ciRpi(RRwRF(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_spacing1!s cCsE|j}|j|ddddd|j|dddddS( NRig@gffffff@s0.1ciRpi(RRwRF(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_spacing2&s cCsE|j}|j|ddddd|j|dddddS( NRigffffff5@g6@s0.5ciRpi(RRwRF(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_spacing3+s cCs|j}djdtdD}|jd||j|dddd|j|dd dd|j|dd d d |j|dd |j|dd|j|ddd ddS(Ns css|] }dVqdS(sLine %dN((R(R)((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pys 3sidR*R iRpR"iRRsexpected integer but got "spam"i Ri2iFs1-startline must be less than or equal to -endline(RR+R,R-RFR(RRR\((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_startline0s cCsK|j}tdkr1|j|dddn|j|ddddS(NiiRRR(ii(RRRRk(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR>s  c Cs|j}tdkr7|j|ddd dn|j|dd|j|dd d d|j|dd d d|j|dddddtdkdS(Niii R!gffffff$@g333334@t1it2iRps10.2s20.7s10.2 20.7 1i 2is2c left 4c 6c centert2cRt4ct6cRjRRsbad screen distance "spam"R5(iii (gffffff$@g333334@R;R<(s10.2s20.7R;R<(gffffff$@g333334@R;R<(s10.2s20.7R;R<(R=sleftR>R?scenter(ii(RRRFRR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_tabsEs  cCs&|j}|j|ddddS(NR"ttabulart wordprocessor(RRk(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_tabstyleTs cCs |j}|j|ddS(NR#(RR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_undoYs cCsU|j}|j|dd|j|dddd|j|dddddS(NR?iinRpii(RRRF(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR]s cCsQ|j}tdkr4|j|ddddn|j|dddddS(NiiRtcharRtword(ii(RRRRk(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRcs  cCs|j}|j|jd|j|jd|jtj|jd|jtj|jd|jtj|j|jtj|jdddS(Ns1.1R*R(RRRt assertIsNoneRR@RR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRjs ()sautoseparatorss backgrounds blockcursors borderwidthscursorsendlinesexportselectionsfonts foregroundsheightshighlightbackgroundshighlightcolorshighlightthicknesssinactiveselectbackgroundsinsertbackgroundsinsertborderwidths insertofftimes insertontimesinsertunfocusseds insertwidthsmaxundospadxspadysreliefsselectbackgroundsselectborderwidthsselectforegroundRsspacing1sspacing2sspacing3s startlinesstatestabsstabstyles takefocussundoswidthswrapsxscrollcommandR$(ii(RR.RTRR)t _stringifyRR&RR'R.RR0R1R4R6R7R8R9R:RR@RCRDRRR(((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRsB               t CanvasTestcBs_eZd!ZeeZeZdZdZ dZ dZ dZ dZ d ZRS("R1R2t closeenoughtconfineR3R4R5R6R7RRRRRR;t scrollregionRRRRR=RtxscrollincrementR$tyscrollincrementR?cKstj|j|S(N(R@tCanvasRB(RRC((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRsc Cs2|j}|j|ddddddtdS(NRJig333333@g @iR(RRtfloat(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_closeenoughs cCs |j}|j|ddS(NRK(RR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_confines cCs|j}|j|dd|j|dd dd|j|dd|j|ddd d |j|dd |j|dd |j|dddS(NRLs 0 0 200 150iiiRpR"RRsbad scrollRegion "spam"(iiii(iiisspam(iii(iiiii(RRFR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_scrollregions cCs,|j}|j|ddddddS(NRRRRs0bad state value "{}": must be normal or disabled(RRk(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRs c Cs2|j}|j|ddddddddS(NRMi(igD@gE@is0.5i(RRw(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_xscrollincrements  c Cs2|j}|j|ddddddddS(NRNi igffffff&@g333333+@is0.1i(RRw(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_yscrollincrements  (s backgrounds borderwidths closeenoughsconfinescursorsheightshighlightbackgroundshighlightcolorshighlightthicknesssinsertbackgroundsinsertborderwidths insertofftimes insertontimes insertwidthsreliefs scrollregionsselectbackgroundsselectborderwidthsselectforegroundsstates takefocussxscrollcommandsxscrollincrementsyscrollcommandsyscrollincrementswidth(RR.RTRR RyR)RHRRQRRRSRRTRU(((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRIts&      t ListboxTestcBseZd(ZdZdZdZdZdZdZdZ dZ d Z d!Z d"Z d#Zd$Zd%Zd&Zd'ZRS()t activestyleR1R2R3RRRXRYR4R5R6R7t listvariableR;RRRt selectmodeRRR=R?RR$cKstj|j|S(N(R@tListboxRB(RRC((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRscCs)|j}|j|dddddS(NRWtdotboxRR(RRk(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_activestyles  cCs5|j}tj|j}|j|d|dS(NRX(RR@t DoubleVarRBtcheckVariableParam(RRtvar((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_listvariables cCs\|j}|j|dd|j|dd|j|dd|j|dddS(NRYtsingletbrowsetmultipletextended(RRF(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_selectmodes  cCs&|j}|j|ddddS(NRRR(RRk(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRs c Cs|j}|jtd|jdWdQXdj}|jd|x-t|D]\}}|j|d|q[W|jt|jWdQX|jtd|jdWdQX|j |jddd|j |jddd|j |jd dd|jd}|j |t x|j D]s\}}|j t|dt|d krD|j ||jd||j |d|jd|qDqDWdS(Nsitem number "0" out of rangeis)red orange yellow green blue white violetR*R1sbad listbox index "red"tredt BackgroundR"tviolets@0,0iii(R1R1RgR"Rf(R1R1RgR"Rh(R1R1RgR"Rf(ii(RtassertRaisesRegexpRt itemconfiguretsplitR-t enumerateRRRtassertIsInstancetdicttitemstassertIntlentitemcget(RRtcolorsR)tcolortdtktv((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_itemconfigures0  c Cs|j}|jddddd|jdi||6|j|jd|d||j|jd|||jtd|jdid |6WdQXdS( NR*RRRRuiisunknown color name "spam"R(RR-RjRRrRiR(RRnRR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pytcheck_itemconfigures  cCs|jdddS(NR1s#ff0000(Ry(R((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_itemconfigure_backgroundscCs|jdddS(Ntbgs#ff0000(Ry(R((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_itemconfigure_bgscCs|jdddS(Ntfgs#110022(Ry(R((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_itemconfigure_fgscCs|jdddS(NRYs#110022(Ry(R((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_itemconfigure_foregroundscCs|jdddS(NRs#110022(Ry(R((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt#test_itemconfigure_selectbackgroundscCs|jdddS(NRs#654321(Ry(R((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt#test_itemconfigure_selectforegroundscCs|j}|jddtdD|j|j|jd|j|jd|j|jd|jt|jd|jt|jd|jt |j|jt |jdddS(Nicss|]}d|VqdS(sel%dN((R(R)((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pys siii Ri( RR-R,tpackRRRGRRRR(Rtlb((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_box s   cCs|j}|jddtdD|jdtj|jdd|jd|j|jd|j t |jddS( Nicss|]}d|VqdS(sel%dN((R(R)((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pys siiiii(iiii( RR-R,tselection_clearR@tENDt selection_setRt curselectionRR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_curselections   cCs|j}|jddtdD|j|jdd|j|jdd|j|jdd|j|jdd |j|jd d |j|jdd d|j|jd dd|j|jd dd|j|jddd|jt|jd|jt|jd|jt|j|jt|jdd|jt|jddd|jt|jddS(Nicss|]}d|VqdS(sel%dN((R(R)((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pys sitel0itel3R*tel7R"iitel4tel5tel6Riig333333@(RRR(RRR((R( RR-R,RtgetRRRR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_gets"  (s activestyles backgrounds borderwidthscursorsdisabledforegroundsexportselectionsfonts foregroundsheightshighlightbackgroundshighlightcolorshighlightthicknesss listvariablesreliefsselectbackgroundsselectborderwidthsselectforegrounds selectmodessetgridsstates takefocusswidthsxscrollcommandsyscrollcommand(RR.RTRR\R`ReRRxRyRzR|R~RRRRRR(((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRVs0             t ScaleTestcBseZd+ZdZdZd Zd!Zd"Zd#Zd$Z d%Z d&Z d'Z d(Z d)Zd*ZRS(,R{R1t bigincrementR2RR3tdigitsRXRYRR5R6R7RstlengthtorientR;RRt resolutiont showvaluet sliderlengtht sliderreliefRR=t tickintervalRt troughcolorRR?tverticalcKstj|j|S(N(R@tScaleRB(RRC((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR?scCs)|j}|j|dddddS(NRg(@g7@i(RR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_bigincrementBs cCs&|j}|j|ddddS(NRii(RR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_digitsFs cCs/|j}|j|dddddtdS(NRidg-@g333333.@R(RRtround(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRJs cCs6|j}|j|dd|j|dddS(NRss any stringR"(RRF(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_labelNs cCs,|j}|j|ddddddS(NRigffffff`@g33333`@t5i(RRw(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_lengthSs cCs,|j}|j|ddddddS(NRg@ig@i(RR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_resolutionWs cCs |j}|j|ddS(NR(RR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_showvalue[s cCs/|j}|j|dddddddS(NRi gffffff&@g333333/@it3m(RRw(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_sliderlength_s  cCs |j}|j|ddS(NR(RR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_sliderreliefds c CsQ|j}|j|ddddddt|j|dddd dtdS( NRig333333@gffffff@iRiRpi(RRRRF(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_tickintervalhs  c Cs2|j}|j|ddddddtdS(NRi,g-@g333333.@iR(RRR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRos (sactivebackgrounds backgrounds bigincrements borderwidthscommandscursorsdigitssfonts foregroundsfromshighlightbackgroundshighlightcolorshighlightthicknessslabelslengthRsreliefs repeatdelaysrepeatintervals resolutions showvalues sliderlengths sliderreliefsstates takefocuss tickintervalstoRsvariableswidth(RR.RTtdefault_orientRRRRRRRRRRRR(((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR2s(           t ScrollbarTestcBs\eZdZeeZeZdZdZ dZ dZ dZ dZ dZRS(R{t activereliefR1R2RR3telementborderwidthR5R6R7tjumpRR;RRR=RR?RcKstj|j|S(N(R@t ScrollbarRB(RRC((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRscCs |j}|j|ddS(NR(RR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_activereliefs cCs,|j}|j|ddddddS(NRg333333@gffffff@it1m(RRw(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_elementborderwidths cCs,|j}|j|ddddddS(NRRt horizontalRs4bad orientation "{}": must be vertical or horizontal(RRk(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_orients cCsg|j}xdD]}|j|qW|jd|jt|j|jt|jdddS(Ntarrow1tslidertarrow2R"(RRR(RtactivateRR(RtsbR^((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_activates    cCs|j}|jdd|j|jd|jt|jdd|jt|jdd|jt|jdd|jt|jd|jt|jddddS( Ng?g?tabctdefg333333?gffffff?g?(g?g?(RtsetRRRRR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_sets (sactivebackgrounds activereliefs backgrounds borderwidthscommandscursorselementborderwidthshighlightbackgroundshighlightcolorshighlightthicknesssjumpsorientsreliefs repeatdelaysrepeatintervals takefocuss troughcolorswidth(RR.RTRR RyR)RHRRRRRRR(((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRus       tPanedWindowTestcBseZd+ZdZdZdZdZdZdZdZ dZ dZ dZ dZ dZdZdZedZdZdZd Zd!Zed"d#d$Zd%Zd&Zd'Zd(Zed"d#d)Zd*ZRS(,R1R2R3t handlepadt handlesizeR4t opaqueresizeRR;t sashcursortsashpadt sashrelieft sashwidtht showhandleR?RcKstj|j|S(N(R@t PanedWindowRB(RRC((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRscCs/|j}|j|dddddddS(NRig@gffffff@iR(RRw(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_handlepads c Cs5|j}|j|dddddddtdS(NRig"@g333333%@it2mR(RRwR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_handlesizes c Cs8|j}|j|ddddddddtdS( NR4idgLY@gfffffY@iiR;R(RRwR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRs !cCs |j}|j|ddS(NR(RR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_opaqueresizes cCs |j}|j|ddS(NR(RR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_sashcursors cCs/|j}|j|dddddddS(NRig?g@iR(RRw(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_sashpads cCs |j}|j|ddS(NR(RR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_sashreliefs c Cs5|j}|j|dddddddtdS(NRi g333333&@g333333/@iRR(RRwR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_sashwidths cCs |j}|j|ddS(NR(RR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_showhandles c Cs8|j}|j|ddddddddtdS( NR?igfffff6y@gIy@iniRR(RRwR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRs !cCsQ|j}tj|}tj|}|j||j||||fS(N(RR@Rtadd(RtpRR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pytcreate2s    cCs|j\}}}|jt|j|j|}|j|txl|jD]^\}}|jt|d|j||j|||j|d|j ||qTWdS(Nii( RRRt paneconfigureRmRnRoRRqtpanecget(RRRRRuRvRw((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigurescCsd}|j s|r(t|}n|jr@|r@t}n|j|i||6|j||j||d||j||j|||dS(NcSs|S(N((tx((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pytsi(R(RRRR(RRRRnRRpt stringifyR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pytcheck_paneconfigures  &c Cs4|jt||j|id|6WdQXdS(NtbadValue(RiRR(RRRRntmsg((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pytcheck_paneconfigure_badscCsN|j\}}}|j||d|t||j||dddS(Ntaftersbad window path name "badValue"(RRRR(RRRR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_afterscCsN|j\}}}|j||d|t||j||dddS(Ntbeforesbad window path name "badValue"(RRRR(RRRR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_beforesc CsT|j\}}}|j||ddddtdk|j||dddS(NR4i Riisbad screen distance "badValue"(ii(RRRR(RRRR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_height s  iicCsH|j\}}}|j||dtd|j||dddS(Nthideis)expected boolean value but got "badValue"(RRtFalseR(RRRR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_hidescCsH|j\}}}|j||ddd|j||dddS(Ntminsizei sbad screen distance "badValue"(RRR(RRRR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_minsizescCsH|j\}}}|j||ddd|j||dddS(NR9g?isbad screen distance "badValue"(RRR(RRRR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_padx!scCsH|j\}}}|j||ddd|j||dddS(NR:g?isbad screen distance "badValue"(RRR(RRRR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_pady'scCsH|j\}}}|j||ddd|j||dddS(Ntstickytnsewtnesws[bad stickyness value "badValue": must be a string containing zero or more of n, e, s, and w(RRR(RRRR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_sticky-scCsH|j\}}}|j||ddd|j||dddS(NtstretchtalwtalwayssEbad stretch "badValue": must be always, first, last, middle, or never(RRR(RRRR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_stretch5sc CsT|j\}}}|j||ddddtdk|j||dddS(NR?i Riisbad screen distance "badValue"(ii(RRRR(RRRR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_width=s  (s backgrounds borderwidthscursors handlepads handlesizesheights opaqueresizesorientsreliefs sashcursorssashpads sashreliefs sashwidths showhandleswidth(RR.RTRRRRRRRRRRRRRRRRRRRRRRRRRRRR(((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRs>                    tMenuTestcBseeZdZeZdZdZdZdZdZ dZ dZ dZ dZ RS(R{tactiveborderwidthR|R1R2R3RRXRYt postcommandR;RR=ttearoffttearoffcommandRttypecKstj|j|S(N(R@RERB(RRC((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRPscCs |j}|j|ddS(NR(RR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_postcommandSs cCs |j}|j|ddS(NR(RR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_tearoffWs cCs |j}|j|ddS(NR(RR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_tearoffcommand[s cCs#|j}|j|dddS(NRs any string(RRF(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_title_s cCs)|j}|j|dddddS(NRRRtmenubar(RRk(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_typecs  cCs |j}|jdd|jt|j|jtd|jdWdQX|jd}|j|tx|j D]v\}}|j|t |j|t |j t |d|j |d||j |jd||dqW|jdS( NRsttestsbad menu entry index "foo"Roiiii(Rt add_commandRRtentryconfigureRiRRmRnRoRttupleRRqt entrycgetRr(Rtm1RuRvRw((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_entryconfigurehs $cCsk|j}|jdd|j|jddd|jddd|j|jddddS(NRsRitchanged(RRRRR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_entryconfigure_labelxs  c Cs|j}tj|j}tj|j}|jd|dtdtdd|jt|j ddt||j dd||jt|j ddt|dS(NRRRRstNonsensei( RR@t BooleanVarRBtadd_checkbuttonR)RRRRR(RRtv1tv2((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_entryconfigure_variables ((sactivebackgroundRsactiveforegrounds backgrounds borderwidthscursorsdisabledforegroundsfonts foregrounds postcommandsreliefs selectcolors takefocusstearoffstearoffcommandstitlestype(RR.RTR RyRRRRRRRR R(((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyREs        t MessageTestcBs&eZdZeZdZdZRS(R}taspectR1R2R3RXRYR5R6R7RR9R:R;R=R\RR?cKstj|j|S(N(R@tMessageRB(RRC((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRscCs)|j}|j|dddddS(NRiii(RR(RR((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_aspects (sanchorsaspects backgrounds borderwidthscursorsfonts foregroundshighlightbackgroundshighlightcolorshighlightthicknesssjustifyspadxspadysreliefs takefocusstexts textvariableswidth(RR.RTR R/RR(((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRs t__main__(1RtTkinterR@RRIRttest.test_supportRRttest_ttk.supportRRRRt widget_testsRRR R R R R RRRRtTestCaseR0RURWRuRzRRRRRRRRRIRVRRRRRt tests_guiR(((s;/usr/lib/python2.7/lib-tk/test/test_tkinter/test_widgets.pytsl    "F % '       AE ` 9B1  D