ó zfc@sVddlZddlZddlZddlmZddlmZmZm Z m Z m Z m Z ddl ZeZZe ƒdddfkr™eZneo¨eeƒZd„ZeZe ƒd dddfkrßeZneƒZd efd „ƒYZd efd „ƒYZd efd„ƒYZdefd„ƒYZd„Zd„ZdS(iÿÿÿÿN(tScale(tAbstractTkTestt tcl_versiont requires_tcltget_tk_patchlevelt pixels_convt tcl_obj_eqiii cCstt|ƒƒS(N(tinttround(tx((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyt int_roundsitAbstractWidgetTestcBsìeZeeƒZdZeZe d„ƒZ d„Z de j d„Zeedd„Zded„Zd„Zd„Zd„Zd„Zdd „Zd „Zd „Zd „Zd „Zd„Zd„Zd„Zd„Zd„Z RS(cCsEy |jSWn3tk r@t|jjddƒƒ|_|jSXdS(Nttktscaling(t_scalingtAttributeErrortfloattroottcall(tself((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyR "s   cCsU|j r#|jr#tdkr#|St|tƒrKdjt|j|ƒƒSt|ƒS(Niit (ii( t _stringifyt wantobjectsRt isinstancettupletjointmapt_strtstr(Rtvalue((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyR*s cCs*|||ƒrdS|j|||ƒdS(N(t assertEqual(Rtactualtexpectedtmsgteq((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyt assertEqual21scCs|||<|tkr|}n|r4||ƒ}n|jsG|j rwt|tƒrhtj|ƒ}qwt|ƒ}n|dkrŒt }n|j |||d|ƒ|j |j |ƒ|d|ƒt|t ƒs|j |ƒ}|jt|ƒdƒ|j |d|d|ƒndS(NR"ii(t _sentinelRRRRttkintert_joinRtNoneRR#tcgetRt configureRtlen(RtwidgettnameRR tconvR"tt((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyt checkParam6s"     c Cs||}|dk r(|j|ƒ}n|jtjƒ�}|||RARJRRRWR[R`RdRkRpRrRxR�(((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyR s0            tStandardOptionsTestsc*BseZdbZd*„Zd+„Zd,„Zd-„Zd.„Zd/„Zd0„Z d1„Z d2„Z d3„Z d4„Z d5„Zd6„Zd7„Zd8„Zd9„Zejejd:kd;ƒd<„ƒZd=„Zd>„Zd?„Zd@„ZdA„ZdB„ZdC„ZdD„ZdE„Z dF„Z!dG„Z"dH„Z#dI„Z$dJ„Z%dK„Z&dL„Z'dM„Z(dN„Z)dO„Z*dP„Z+dQ„Z,dR„Z-dS„Z.dT„Z/dU„Z0dV„Z1dW„Z2dX„Z3dY„Z4dZ„Z5d[„Z6d\„Z7e8d]d^ƒd_„ƒZ9e8d]d^ƒd`„ƒZ:da„Z;RS(ctactivebackgroundtactiveborderwidthtactiveforegroundtanchorR{tbitmapRytcompoundtcursortdisabledforegroundtexportselectiontfontR}thighlightbackgroundthighlightcolorthighlightthicknessRotinsertbackgroundtinsertborderwidtht insertofftimet insertontimet insertwidthtjumptjustifytorienttpadxtpadytrelieft repeatdelaytrepeatintervaltselectbackgroundtselectborderwidthtselectforegroundtsetgridt takefocusttextt textvariablet troughcolort underlinet wraplengthtxscrollcommandtyscrollcommandcCs |jƒ}|j|dƒdS(NR˜(RƒRR(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_activebackground s c Cs2|jƒ}|j|dddddddƒdS(NR™igÍÌÌÌÌÌô?g333333@iiþÿÿÿR=(RƒRd(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_activeborderwidths  cCs |jƒ}|j|dƒdS(NRš(RƒRR(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_activeforegrounds c Cs;|jƒ}|j|ddddddddd d ƒ dS( NR›tntnetetsetstswtwtnwtcenter(RƒR`(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyt test_anchors  cCsB|jƒ}|j|dƒd|jkr>|j|dƒndS(NR{R|(RƒRRRŠ(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_backgrounds cCs´|jƒ}|j|ddƒ|j|ddƒtjjdddƒ}|j|dd|ƒd|jjjd d ƒko‘d |jjƒks°|j |dd d dƒndS(NRœt questheadtgray50s python.xbmtsubdirt imghdrdatat@taquaR twindowingsystemtAppKitR?R4sbitmap "spam" not defined( RƒR/R†R‡tfindfileRR Rt winfo_serverR8(RR+tfilename((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyt test_bitmap%s c Csf|jƒ}|j|dddddddƒd|jkrb|j|dddddddƒndS( NRyigÍÌÌÌÌÌô?gÍÌÌÌÌÌ@iiþÿÿÿR=Rz(RƒRdRŠ(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_borderwidth2s   c Cs2|jƒ}|j|dddddddƒdS(NR�tbottomRÉtleftRVtrightttop(RƒR`(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyt test_compound9s  cCs |jƒ}|j|dƒdS(NRž(RƒRW(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyt test_cursor>s cCs |jƒ}|j|dƒdS(NRŸ(RƒRR(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_disabledforegroundBs cCs |jƒ}|j|dƒdS(NR (RƒRJ(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_exportselectionFs cCs<|jƒ}|j|ddƒ|j|ddddƒdS(NR¡s3-Adobe-Helvetica-Medium-R-Normal--*-120-*-*-*-*-*-*R<R4sfont "" doesn't exist(RƒR/R8(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyt test_fontJs   cCsB|jƒ}|j|dƒd|jkr>|j|dƒndS(NR}R~(RƒRRRŠ(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_foregroundQs cCs |jƒ}|j|dƒdS(NR¢(RƒRR(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_highlightbackgroundWs cCs |jƒ}|j|dƒdS(NR£(RƒRR(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_highlightcolor[s cCsQ|jƒ}|j|ddddddƒ|j|ddddd |jƒdS( NR¤igÍÌÌÌÌÌô?gÍÌÌÌÌÌ@iR=iþÿÿÿR R-(RƒRdR/Rb(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_highlightthickness_s   tdarwins"crashes with Cocoa Tk (issue19733)cCs |jƒ}|j|dƒdS(NRo(RƒRp(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyt test_imagefs cCs |jƒ}|j|dƒdS(NR¥(RƒRR(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_insertbackgroundls c Cs2|jƒ}|j|dddddddƒdS(NR¦igÍÌÌÌÌÌô?gÍÌÌÌÌÌ@iiþÿÿÿR=(RƒRd(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_insertborderwidthps  cCs#|jƒ}|j|ddƒdS(NR§id(RƒR>(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_insertofftimeus cCs#|jƒ}|j|ddƒdS(NR¨id(RƒR>(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_insertontimeys cCs,|jƒ}|j|dddddƒdS(NR©gÍÌÌÌÌÌô?gÍÌÌÌÌÌ@iþÿÿÿR=(RƒRd(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_insertwidth}s cCs |jƒ}|j|dƒdS(NRª(RƒRJ(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyt test_jump�s cCsH|jƒ}|j|ddddddƒ|j|ddddƒdS( NR«RÚRÛRÉR4s6bad justification "{}": must be left, right, or centerR<s:ambiguous justification "": must be left, right, or center(RƒR`R8(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyt test_justify…s  cCsC|jƒ}|jt|dƒ|jƒ|j|dddƒdS(NR¬t horizontaltvertical(RƒRRtdefault_orientR`(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyt test_orientŽs c Cs8|jƒ}|j|ddddddd|jƒdS(NR­igš™™™™™@gffffff@iþÿÿÿt12mR-(RƒRdR“(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyt test_padx“s c Cs8|jƒ}|j|ddddddd|jƒdS(NR®igš™™™™™@gffffff@iþÿÿÿRóR-(RƒRdR“(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyt test_pady˜s cCs |jƒ}|j|dƒdS(NR¯(RƒRk(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyt test_relief�s cCs&|jƒ}|j|dddƒdS(NR°i þÿÿiô(RƒR>(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_repeatdelay¡s cCs&|jƒ}|j|dddƒdS(NR±i þÿÿiô(RƒR>(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_repeatinterval¥s cCs |jƒ}|j|dƒdS(NR²(RƒRR(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_selectbackground©s cCs,|jƒ}|j|dddddƒdS(NR³gÍÌÌÌÌÌô?gÍÌÌÌÌÌ@iþÿÿÿR=(RƒRd(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_selectborderwidth­s cCs |jƒ}|j|dƒdS(NR´(RƒRR(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_selectforeground±s cCs |jƒ}|j|dƒdS(NRµ(RƒRJ(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyt test_setgridµs cCs)|jƒ}|j|ddddƒdS(Ntstatetactivetdisabledtnormal(RƒR`(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyt test_state¹s cCs)|jƒ}|j|ddddƒdS(NR¶t0t1R<(RƒR;(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_takefocus½s cCs&|jƒ}|j|dddƒdS(NR·R<s any string(RƒR;(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyt test_textÁs cCs5|jƒ}tj|jƒ}|j|d|ƒdS(NR¸(RƒR%t StringVarRRr(RR+Rq((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_textvariableÅs cCs |jƒ}|j|dƒdS(NR¹(RƒRR(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_troughcolorÊs cCs)|jƒ}|j|ddddƒdS(NRºiii (RƒR>(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_underlineÎs cCs#|jƒ}|j|ddƒdS(NR»id(RƒRd(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_wraplengthÒs cCs |jƒ}|j|dƒdS(NR¼(RƒR[(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_xscrollcommandÖs cCs |jƒ}|j|dƒdS(NR½(RƒR[(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_yscrollcommandÚs cCs |jƒ}|j|dƒdS(NRY(RƒR[(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyt test_commandàs cCs |jƒ}|j|dƒdS(Nt indicatoron(RƒRJ(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_indicatoronäs cCs |jƒ}|j|dƒdS(Nt offrelief(RƒRk(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_offreliefès cCs |jƒ}|j|dƒdS(Nt overrelief(RƒRk(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_overreliefìs cCs |jƒ}|j|dƒdS(Nt selectcolor(RƒRR(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_selectcolorðs cCs |jƒ}|j|dƒdS(Nt selectimage(RƒRp(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_selectimageôs iicCs |jƒ}|j|dƒdS(Nt tristateimage(RƒRp(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_tristateimageøs cCs#|jƒ}|j|ddƒdS(Nt tristatevaluet unknowable(RƒR/(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyttest_tristatevalueýs cCs5|jƒ}tj|jƒ}|j|d|ƒdS(Ntvariable(RƒR%t DoubleVarRRr(RR+Rq((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyt test_variables (*R˜R™RšR›R{RœRyR�RžRŸR R¡R}R¢R£R¤RoR¥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�tSTANDARD_OPTIONSR¾R¿RÀRÊRËR×RØRÝRÞRßRàRáRâRãRäRåtunittesttskipIftsystplatformRçRèRéRêRëRìRíRîRòRôRõRöR÷RøRùRúRûRüRRRRRR R R R R RRRRRRRRR(((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyR—þs€                                              tIntegerSizeTestscBseZd„Zd„ZRS(cCs)|jƒ}|j|ddddƒdS(Ntheightidiœÿÿÿi(RƒR>(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyt test_height s cCs)|jƒ}|j|ddddƒdS(Ntwidthi’inþÿÿi(RƒR>(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyt test_width s (RŒR�R'R)(((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyR%s tPixelSizeTestscBseZd„Zd„ZRS(c Cs2|jƒ}|j|dddddddƒdS(NR&idgÍÌÌÌÌLY@gfffff¦Y@iœÿÿÿit3c(RƒRd(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyR's c Cs2|jƒ}|j|dddddddƒdS(NR(i’gfffff6y@gš™™™™Iy@inþÿÿit5i(RƒRd(RR+((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyR)s (RŒR�R'R)(((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyR*s cs‡fd†}|S(NcsŸx˜ˆjD]�}d|}tˆ|ƒs xkˆD]5}t||ƒr0tˆ|t||ƒjƒPq0q0W|‡fd†}||_tˆ||ƒq q WˆS(Nttest_cs1|jƒ}||td|ˆjfƒ‚dS(NsOption "%s" is not tested in %s(RƒtAssertionErrorRŒ(RtoptionR+(tcls(s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyR†)s (RŠthasattrtsetattrtgetattrtim_funcRŒ(R0R/t methodnamet source_classR†(tsource_classes(R0s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyt decorators    ((R7R8((R7s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pytadd_standard_optionsscCs4tjjr0tjƒ}dG|jddƒGHndS(Ns patchlevel =tinfot patchlevel(R†R‡RˆR%tTclR(ttcl((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyt setUpModule3s  (R!R#tTkinterR%tttkRttest_ttk.supportRRRRRRttest.test_supportR†RHtnoconvt noconv_methRR‘R R’RR•R$R R—R%R*R9R>(((s0/usr/lib64/python2.7/lib-tk/test/widget_tests.pyts*   .      áÿ