zfc@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/lib64/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/lib64/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/lib64/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/lib64/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/lib64/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/lib64/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/lib64/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/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_screenKs  cCsl|j}|j|dd|jdt}d|j}|jd|}|j|d|dS(NR>R"R%s%#x(RRR)twinfo_id(RRtparenttwidR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_useWs  (R1R2RR!R%R3R4R5R6R7R8R9R:R;R<R=R>R+R?(RR.tOPTIONSRRGRNRR(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR08s   t FrameTestcBseZdZdZRS(R1R2RR!R%R3R4R5R6R7R9R:R;R=R+R?cKstj|j|S(N(R@tFrameRB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRjs(R1R2RR!R%R3R4R5R6R7R9R:R;R=R+R?(RR.RSR(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRTas tLabelFrameTestcBs)eZdZdZdZdZRS(R1R2RR!R%R3tfontt foregroundR4R5R6R7t labelanchort labelwidgetR9R:R;R=ttextR+R?cKstj|j|S(N(R@t LabelFrameRB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRyscCsW|j}|j|ddddddddd d d d d |j|dddS(NRYtetentestntnetnwtstsetswtwtwntwstcenter(RtcheckEnumParamR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_labelanchor|s   cCsQ|j}tj|jdddd}|j|d|dd|jdS(NR[tMupptnametfooRZtexpecteds.foo(RR@tLabelRBRFtdestroy(RRtlabel((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_labelwidgets (R1R2RR!R%R3RWRXR4R5R6R7RYRZR9R:R;R=R[R+R?(RR.RSRRkRs(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRVns  tAbstractLabelTestcBseZeZdZRS(c Cs2|j}|j|ddddddddS(NR7ig?g@iit10p(RtcheckPixelsParam(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_highlightthicknesss  (RR.R t _conv_pixelsRw(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRtst LabelTestcBseZdZdZRS(tactivebackgroundtactiveforegroundtanchorR1tbitmapR2tcompoundR3tdisabledforegroundRWRXR4R5R6R7timagetjustifyR9R:R;tstateR=R[t textvariablet underlineR?t wraplengthcKstj|j|S(N(R@RpRB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRs(RzR{R|R1R}R2R~R3RRWRXR4R5R6R7RRR9R:R;RR=R[RRR?R(RR.RSR(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRyst ButtonTestc Bs eZd"Zd Zd!ZRS(#RzR{R|R1R}R2tcommandR~R3R,RRWRXR4R5R6R7RRt overreliefR9R:R;t repeatdelaytrepeatintervalRR=R[RRR?RcKstj|j|S(N(R@tButtonRB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRscCs)|j}|j|dddddS(NR,tactivetdisabledtnormal(RRj(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_defaults ( RzR{R|R1R}R2RR~R3R,RRWRXR4R5R6R7RRRR9R:R;RRRR=R[RRR?R(RR.RSRR(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRs tCheckbuttonTestc&Bs)eZd)Zd&Zd'Zd(ZRS(*RzR{R|R1R}R2RR~R3RRWRXR4R5R6R7Rt indicatoronRt offrelieftoffvaluetonvalueRR9R:R;t selectcolort selectimageRR=R[Rt tristateimaget tristatevalueRtvariableR?RcKstj|j|S(N(R@t CheckbuttonRB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRscCs,|j}|j|ddddddS(NRigffffff@R"s any string(Rt checkParams(RR((s=/usr/lib64/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/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_onvalues (&RzR{R|R1R}R2RR~R3RRWRXR4R5R6R7RRRRRRRR9R:R;RRRR=R[RRRRRR?R(RR.RSRRR(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRs  tRadiobuttonTestc%Bs eZd'Zd%Zd&ZRS((RzR{R|R1R}R2RR~R3RRWRXR4R5R6R7RRRRRR9R:R;RRRR=R[RRRRtvalueRR?RcKstj|j|S(N(R@t RadiobuttonRB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRscCs,|j}|j|ddddddS(NRigffffff@R"s any string(RR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_values (%RzR{R|R1R}R2RR~R3RRWRXR4R5R6R7RRRRRR9R:R;RRRR=R[RRRRRRR?R(RR.RSRR(((s=/usr/lib64/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()RzR{R|R1R}R2R~R3t directionRRWRXR4R5R6R7RRRR8R9R:R;RR=R[RRR?RcKstj|j|S(N(R@t MenubuttonRB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRscCs/|j}|j|dddddddS(NRtabovetbelowtflushtlefttright(RRj(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_directions  cCs/|j}|j|dddddtdS(NR4idiitconv(RtcheckIntegerParamtstr(RR((s=/usr/lib64/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 blockcursorR2R3tendlineRRWRXR4R5R6R7tinactiveselectbackgroundRRRRtinsertunfocussedRtmaxundoR9R:R;RRRtsetgridtspacing1tspacing2tspacing3t startlineRttabsttabstyleR=tundoR?RRtyscrollcommandiicKstj|j|S(N(R@tTextRB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRscCs |j}|j|ddS(NR(RR (RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_autoseparatorss cCs |j}|j|ddS(NR(RR (RR((s=/usr/lib64/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/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pys sidtendRiRoR"iRRsexpected integer but got "spam"i2R#ii s1-startline must be less than or equal to -endline(RtjointrangetinsertRFR(RRR[((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_endlines cCs^|j}|j|ddddd|j|dddd|j|dd dddS( NR4idgLY@gfffffY@t3ciRoii(RRvRF(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRs cCs)|j}|j|dddddS(NRiii(RR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_maxundos cCs |j}|j|ddS(NR(RR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_inactiveselectbackgrounds icCs)|j}|j|dddddS(NRthollowRtsolid(RRj(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_insertunfocusseds  c Cs>|j}|j|ddddddtdtd kdS( NRg?g@iRuRt keep_origii(ii(RRvRR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_selectborderwidth$s  cCsE|j}|j|ddddd|j|dddddS( NR igffffff5@g6@s0.5ciRoi(RRvRF(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_spacing1*s cCsE|j}|j|ddddd|j|dddddS( NR!ig@gffffff@s0.1ciRoi(RRvRF(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_spacing2/s cCsE|j}|j|ddddd|j|dddddS( NR"igffffff5@g6@s0.5ciRoi(RRvRF(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_spacing34s 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/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pys <sidR-R#iRoR"iRRsexpected integer but got "spam"i Ri2iFs1-startline must be less than or equal to -endline(RR.R/R0RFR(RRR[((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_startline9s cCsK|j}tdkr1|j|dddn|j|ddddS(NiiRRR(ii(RRRRj(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRGs  c Cs|j}tdkr7|j|ddd dn|j|dd|j|dd d d|j|dd d d|j|dddddtdkdS(Niii R$gffffff$@g333334@t1it2iRos10.2s20.7s10.2 20.7 1i 2is2c left 4c 6c centert2cRt4ct6cRiRRsbad screen distance "spam"R8(iii (gffffff$@g333334@R>R?(s10.2s20.7R>R?(gffffff$@g333334@R>R?(s10.2s20.7R>R?(R@RRARBRi(ii(RRRFRR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_tabsNs  cCs&|j}|j|ddddS(NR%ttabulart wordprocessor(RRj(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_tabstyle]s cCs |j}|j|ddS(NR&(RR (RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_undobs cCsU|j}|j|dd|j|dddd|j|dddddS(NR?iinRoii(RRRF(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRfs cCsQ|j}tdkr4|j|ddddn|j|dddddS(NiiRtcharRtword(ii(RRRRj(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRls  cCs|j}|j|jd|j|jd|jtj|jd|jtj|jd|jtj|j|jtj|jdddS(Ns1.1R-R(RRRt assertIsNoneRR@RR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRss ()RR1RR2R3RRRWRXR4R5R6R7RRRRRRRRR9R:R;RRRRR R!R"R#RR$R%R=R&R?RRR'(ii(RR.RSRR)t _stringifyRR)RR*R1RR3R4R7R9R:R;R<R=RRCRFRGRRR(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRsB               t CanvasTestcBsheZd#ZeeZeZdZdZ dZ dZ dZ d Z d!Zd"ZRS($R1R2t closeenoughtconfineR3R4R5R6R7RRRRRtoffsetR;t scrollregionRRRRR=RtxscrollincrementR'tyscrollincrementR?cKstj|j|S(N(R@tCanvasRB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRsc Cs2|j}|j|ddddddtdS(NRMig333333@g @iR(RRtfloat(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_closeenoughs cCs |j}|j|ddS(NRN(RR (RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_confines c Cs|j}|j|dd|j|dddddddd d d |j|dd |j|dd |j|dddS(NROs0,0R`RaR]RdRcReRfRbRis10,20s#5,6R(RRRRFR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_offsets  cCs|j}|j|dd|j|dd dd|j|dd|j|ddd d |j|dd |j|dd |j|dddS(NRPs 0 0 200 150iiiRoR"RRsbad scrollRegion "spam"(iiii(iiiR(iii(iiiii(RRFR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_scrollregions cCs,|j}|j|ddddddS(NRRRRs0bad state value "{}": must be normal or disabled(RRj(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRs c Cs2|j}|j|ddddddddS(NRQi(igD@gE@is0.5i(RRv(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_xscrollincrements  c Cs2|j}|j|ddddddddS(NRRi igffffff&@g333333+@is0.1i(RRv(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_yscrollincrements  (R1R2RMRNR3R4R5R6R7RRRRRROR;RPRRRRR=RRQR'RRR?(RR.RSRR RxR)RKRRURVRWRXRRYRZ(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRL}s(      t ListboxTestcBseZd,ZdZdZedddejjZdZ dZ d Z d!Z d"Z d#Zd$Zd%Zd&Zd'Zd(Zd)Zd*Zd+ZRS(-t activestyleR1R2R3RRRWRXR4R5R6R7Rt listvariableR;RRRt selectmodeRRR=R?RR'cKstj|j|S(N(R@tListboxRB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRscCs)|j}|j|dddddS(NR\tdotboxRR(RRj(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_activestyles  iiicCs5|j}tj|j}|j|d|dS(NR](RR@t DoubleVarRBtcheckVariableParam(RRtvar((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_listvariables cCs\|j}|j|dd|j|dd|j|dd|j|dddS(NR^tsingletbrowsetmultipletextended(RRF(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_selectmodes  cCs&|j}|j|ddddS(NRRR(RRj(RR((s=/usr/lib64/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(R1R1RlR"Rk(R1R1RlR"Rm(R1R1RlR"Rk(ii(RtassertRaisesRegexpRt itemconfiguretsplitR0t enumerateRRRtassertIsInstancetdicttitemstassertIntlentitemcget(RRtcolorsR,tcolortdtktv((s=/usr/lib64/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-RRRRziisunknown color name "spam"R(RR0RoRRwRnR(RRmRR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pytcheck_itemconfigures  cCs|jdddS(NR1s#ff0000(R~(R((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_itemconfigure_background scCs|jdddS(Ntbgs#ff0000(R~(R((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_itemconfigure_bgscCs|jdddS(Ntfgs#110022(R~(R((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_itemconfigure_fgscCs|jdddS(NRXs#110022(R~(R((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_itemconfigure_foregroundscCs|jdddS(NRs#110022(R~(R((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt#test_itemconfigure_selectbackgroundscCs|jdddS(NRs#654321(R~(R((s=/usr/lib64/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/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pys siii Ri( RR0R/tpackRRRJRRRR(Rtlb((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_boxs   cCs|j}|jddtdD|jdtj|jdd|jd|j|jd|j t |jddS( Nicss|]}d|VqdS(sel%dN((R+R,((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pys +siiiii(iiii( RR0R/tselection_clearR@tENDt selection_setRt curselectionRR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_curselection)s   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/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pys 4sitel0itel3R-tel7R"iitel4tel5tel6Riig333333@(RRR(RRR((R( RR0R/RtgetRRRR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_get2s"  (R\R1R2R3RRRWRXR4R5R6R7RR]R;RRRR^RRR=R?RR'(RR.RSRRaRR t test_justifyRReRjRR}R~RRRRRRRRR(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR[s2             t ScaleTestcBseZd+ZdZdZd Zd!Zd"Zd#Zd$Z d%Z d&Z d'Z d(Z d)Zd*ZRS(,RzR1t bigincrementR2RR3tdigitsRWRXRR5R6R7RrtlengthtorientR;RRt resolutiont showvaluet sliderlengtht sliderreliefRR=t tickintervalRt troughcolorRR?tverticalcKstj|j|S(N(R@tScaleRB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRSscCs)|j}|j|dddddS(NRg(@g7@i(RR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_bigincrementVs cCs&|j}|j|ddddS(NRii(RR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_digitsZs cCs/|j}|j|dddddtdS(NRidg-@g333333.@R(RRtround(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR^s cCs6|j}|j|dd|j|dddS(NRrs any stringR"(RRF(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_labelbs cCs,|j}|j|ddddddS(NRigffffff`@g33333`@t5i(RRv(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_lengthgs cCs,|j}|j|ddddddS(NRg@ig@i(RR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_resolutionks cCs |j}|j|ddS(NR(RR (RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_showvalueos cCs/|j}|j|dddddddS(NRi gffffff&@g333333/@it3m(RRv(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_sliderlengthss  cCs |j}|j|ddS(NR(RR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_sliderreliefxs c CsQ|j}|j|ddddddt|j|dddd dtdS( NRig333333@gffffff@iRiRoi(RRRRF(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_tickinterval|s  c Cs2|j}|j|ddddddtdS(NRi,g-@g333333.@iR(RRR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRs (RzR1RR2RR3RRWRXRR5R6R7RrRRR;RRRRRRRR=RRRRR?(RR.RStdefault_orientRRRRRRRRRRRR(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRFs(           t ScrollbarTestcBs\eZdZeeZeZdZdZ dZ dZ dZ dZ dZRS(Rzt activereliefR1R2RR3telementborderwidthR5R6R7tjumpRR;RRR=RR?RcKstj|j|S(N(R@t ScrollbarRB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRscCs |j}|j|ddS(NR(RR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_activereliefs cCs,|j}|j|ddddddS(NRg333333@gffffff@it1m(RRv(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_elementborderwidths cCs,|j}|j|ddddddS(NRRt horizontalRs4bad orientation "{}": must be vertical or horizontal(RRj(RR((s=/usr/lib64/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/lib64/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/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_sets (RzRR1R2RR3RR5R6R7RRR;RRR=RR?(RR.RSRR RxR)RKRRRRRRR(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRs       tPanedWindowTestcBsgeZd2ZdZdZdZdZdZdZe ddddZ e ddddZ e ddddZ dZ dZd Zd!Zd"Zd#Zd$Zd%Zed&Zd'Zd(Zd)Zd*Ze ddd+Zd,Zd-Zd.Zd/Ze ddd0Z d1Z!RS(3R1R2R3t handlepadt handlesizeR4t opaqueresizeRtproxybackgroundtproxyborderwidtht proxyreliefR;t sashcursortsashpadt sashrelieft sashwidtht showhandleR?RcKstj|j|S(N(R@t PanedWindowRB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRscCs/|j}|j|dddddddS(NRig@gffffff@iR(RRv(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_handlepads c Cs5|j}|j|dddddddtdS(NRig"@g333333%@it2mR(RRvR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_handlesizes c Cs8|j}|j|ddddddddtdS( NR4idgLY@gfffffY@iiR>R(RRvR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRs !cCs |j}|j|ddS(NR(RR (RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_opaqueresizes iiicCs |j}|j|ddS(NR(RR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_proxybackgrounds c Cs8|j}|j|ddddddddtdS( NRig?g333333@iiRuR(RRvR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_proxyborderwidths  cCs |j}|j|ddS(NR(RR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_proxyreliefs cCs |j}|j|ddS(NR(RR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_sashcursors cCs/|j}|j|dddddddS(NRig?g@iR(RRv(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_sashpads cCs |j}|j|ddS(NR(RR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_sashreliefs c Cs5|j}|j|dddddddtdS(NRi g333333&@g333333/@iRR(RRvR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_sashwidths cCs |j}|j|ddS(NR(RR (RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_showhandles c Cs8|j}|j|ddddddddtdS( NR?igfffff6y@gIy@iniRR(RRvR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRs !cCsQ|j}tj|}tj|}|j||j||||fS(N(RR@Rtadd(RtpRR((s=/usr/lib64/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 paneconfigureRrRsRtRRvtpanecget(RRRRRzR{R|((s=/usr/lib64/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/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pytR"i(R(RRRR(RRRRmRRot stringifyR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pytcheck_paneconfigures  &c Cs4|jt||j|id|6WdQXdS(NtbadValue(RnRR(RRRRmtmsg((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pytcheck_paneconfigure_bad$scCsN|j\}}}|j||d|t||j||dddS(Ntaftersbad window path name "badValue"(RRRR(RRRR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_after(scCsN|j\}}}|j||d|t||j||dddS(Ntbeforesbad window path name "badValue"(RRRR(RRRR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_before.sc CsW|j\}}}|j||ddddtdk|j||dddS( NR4i Riii sbad screen distance "badValue"(iii (RRRR(RRRR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_height4s cCsH|j\}}}|j||dtd|j||dddS(Nthideis)expected boolean value but got "badValue"(RRtFalseR(RRRR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_hide;scCsH|j\}}}|j||ddd|j||dddS(Ntminsizei sbad screen distance "badValue"(RRR(RRRR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_minsizeBscCsH|j\}}}|j||ddd|j||dddS(NR9g?isbad screen distance "badValue"(RRR(RRRR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_padxHscCsH|j\}}}|j||ddd|j||dddS(NR:g?isbad screen distance "badValue"(RRR(RRRR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_padyNscCsH|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/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_stickyTscCsH|j\}}}|j||ddd|j||dddS(NtstretchtalwtalwayssEbad stretch "badValue": must be always, first, last, middle, or never(RRR(RRRR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_stretch\sc CsW|j\}}}|j||ddddtdk|j||dddS( NR?i Riii sbad screen distance "badValue"(iii (RRRR(RRRR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_widthds (R1R2R3RRR4RRRRRR;RRRRRR?("RR.RSRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRsH                    tMenuTestcBseeZdZeZdZdZdZdZdZ dZ dZ dZ dZ RS(RztactiveborderwidthR{R1R2R3RRWRXt postcommandR;RR=ttearoffttearoffcommandRttypecKstj|j|S(N(R@RERB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRwscCs |j}|j|ddS(NR(RR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_postcommandzs cCs |j}|j|ddS(NR(RR (RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_tearoff~s cCs |j}|j|ddS(NR(RR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_tearoffcommands cCs#|j}|j|dddS(NRs any string(RRF(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_titles cCs)|j}|j|dddddS(NRRRtmenubar(RRj(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_types  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( NRrttestsbad menu entry index "foo"Rniiii(Rt add_commandRRtentryconfigureRnRRrRsRtRttupleRRvt entrycgetRq(Rtm1RzR{R|((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_entryconfigures $cCsk|j}|jdd|j|jddd|jddd|j|jddddS(NRrR itchanged(RRRRR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_entryconfigure_labels  c Cs|j}tj|j}tj|j}|jd|dtdtdd|jt|j ddt||j dd||jt|j ddt|dS(NRRRRrtNonsensei( RR@t BooleanVarRBtadd_checkbuttonR)RRRRR(RRtv1tv2((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_entryconfigure_variables ((RzRR{R1R2R3RRWRXRR;RR=RRRR(RR.RSR RxRRRR R R RRR(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRls        t MessageTestcBs&eZdZeZdZdZRS(R|taspectR1R2R3RWRXR5R6R7RR9R:R;R=R[RR?cKstj|j|S(N(R@tMessageRB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRscCs)|j}|j|dddddS(NRiii(RR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt test_aspects (R|RR1R2R3RWRXR5R6R7RR9R:R;R=R[RR?(RR.RSR R/RR(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRs t__main__(1RtTkinterR@RRIRttest.test_supportRRttest_ttk.supportRRRRt widget_testsRRR R R R R RRRRtTestCaseR0RTRVRtRyRRRRRRRRRLR[RRRRRt tests_guiR(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pytsl    "F % (       AE h BB1  D