ok

Mini Shell

Direktori : /usr/lib64/python2.7/lib-tk/test/test_tkinter/
Upload File :
Current File : //usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyo

�
zfc@sTddlZddlZddlmZddlZddlZddlmZmZddl	m
Z
mZmZm
Z
ddlmZmZmZmZmZmZmZmZmZmZed�deefd��YZee�d	eejfd
��Y�Zee�deejfd��Y�Zee�d
eejfd��Y�Zdeefd��YZee�deejfd��Y�Zee�deejfd��Y�Z ee�deejfd��Y�Z!ee�deejfd��Y�Z"ee�deejfd��Y�Z#de#ejfd��YZ$eee�deejfd��Y�Z%ee�de%ejfd ��Y�Z&ee�d!eejfd"��Y�Z'eee�d#eejfd$��Y�Z(eee�d%eejfd&��Y�Z)eee�d'eejfd(��Y�Z*eee�d)eejfd*��Y�Z+ee�d+eejfd,��Y�Z,ee�d-eejfd.��Y�Z-eee�d/eejfd0��Y�Z.e e(e!e%eeee)e#e-e.e$e,e"e*e+e&e'egZ/e0d1krPee/�ndS(2i����N(tTclError(trequirestrun_unittest(ttcl_versiontrequires_tcltget_tk_patchlevelt	widget_eq(
tadd_standard_optionstnoconvtnoconv_metht	int_roundtpixels_roundtAbstractWidgetTesttStandardOptionsTeststIntegerSizeTeststPixelSizeTeststsetUpModuletguitAbstractToplevelTestcBs2eZeZd�Zd�Zd�Zd�ZRS(cCso|j�}|j|d|jjj��|j|dddd�|jdd�}|j|dd�dS(NtclasstFooterrmsgs2can't modify -class option after widget is createdtclass_(tcreatetassertEqualt	__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|dd�dS(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|jrvdnd�dS(Nt	containerit0iRs6can't modify -container option after widget is createdt1(RRtwantobjectsRtTrue(RRR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_container's#cCsc|j�}|j|dd�|j|dddd�|jdd�}|j|dd�dS(NtvisualR"tdefaultRs3can't modify -visual option after widget is created(RRR(RRR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_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ToplevelTestcBs2eZdZd�Zd�Zd�Zd�ZRS(t
backgroundtborderwidthRR!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|dd�dS(NR8teqR"(RR@tMenuRBt
checkParamR(RRR8((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt	test_menuEscCs�|j�}|j|dd�ytjd}Wntk
rQ|jd�nX|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.pyttest_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	FrameTestcBseZdZd�ZRS(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)eZdZd�Zd�Zd�ZRS(R1R2RR!R%R3tfontt
foregroundR4R5R6R7tlabelanchortlabelwidgetR9R: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
ddd
�|j|dd�dS(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�|j�dS(NR[tMupptnametfooRZtexpecteds.foo(RR@tLabelRBRFtdestroy(RRtlabel((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_labelwidget�s(R1R2RR!R%R3RWRXR4R5R6R7RYRZR9R:R;R=R[R+R?(RR.RSRRkRs(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRVns		tAbstractLabelTestcBseZeZd�ZRS(c	Cs2|j�}|j|ddddddd�dS(NR7ig�������?g������@ii����t10p(RtcheckPixelsParam(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_highlightthickness�s(RR.R	t_conv_pixelsRw(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRt�st	LabelTestcBseZdZd�ZRS(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.pyR�s(RzR{R|R1R}R2R~R3RRWRXR4R5R6R7R�R�R9R:R;R�R=R[R�R�R?R�(RR.RSR(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRy�st
ButtonTestc Bs eZd"Zd �Zd!�ZRS(#RzR{R|R1R}R2tcommandR~R3R,RRWRXR4R5R6R7R�R�t
overreliefR9R:R;trepeatdelaytrepeatintervalR�R=R[R�R�R?R�cKstj|j|�S(N(R@tButtonRB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR�scCs)|j�}|j|dddd�dS(NR,tactivetdisabledtnormal(RRj(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_default�s( RzR{R|R1R}R2R�R~R3R,RRWRXR4R5R6R7R�R�R�R9R:R;R�R�R�R=R[R�R�R?R�(RR.RSRR�(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR��s	tCheckbuttonTestc&Bs)eZd)Zd&�Zd'�Zd(�ZRS(*RzR{R|R1R}R2R�R~R3RRWRXR4R5R6R7R�tindicatoronR�t	offrelieftoffvaluetonvalueR�R9R:R;tselectcolortselectimageR�R=R[R�t
tristateimaget
tristatevalueR�tvariableR?R�cKstj|j|�S(N(R@tCheckbuttonRB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR�scCs,|j�}|j|ddddd�dS(NR�igffffff@R"s
any string(RtcheckParams(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt
test_offvalue�scCs,|j�}|j|ddddd�dS(NR�igffffff@R"s
any string(RR�(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_onvalue�s(&RzR{R|R1R}R2R�R~R3RRWRXR4R5R6R7R�R�R�R�R�R�R�R9R:R;R�R�R�R=R[R�R�R�R�R�R?R�(RR.RSRR�R�(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR��s		tRadiobuttonTestc%Bs eZd'Zd%�Zd&�ZRS((RzR{R|R1R}R2R�R~R3RRWRXR4R5R6R7R�R�R�R�R�R9R:R;R�R�R�R=R[R�R�R�R�tvalueR�R?R�cKstj|j|�S(N(R@tRadiobuttonRB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR�scCs,|j�}|j|ddddd�dS(NR�igffffff@R"s
any string(RR�(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt
test_value�s(%RzR{R|R1R}R2R�R~R3RRWRXR4R5R6R7R�R�R�R�R�R9R:R;R�R�R�R=R[R�R�R�R�R�R�R?R�(RR.RSRR�(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR��s	tMenubuttonTestcBs�eZd(Zee�Zd�Zd�Zd �Ze	j
jZ
ej
ejd!kd"�d#��Zd$�Zd%�Zd&�Zd'�ZRS()RzR{R|R1R}R2R~R3t	directionRRWRXR4R5R6R7R�R�R�R8R9R:R;R�R=R[R�R�R?R�cKstj|j|�S(N(R@t
MenubuttonRB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR�scCs/|j�}|j|dddddd�dS(NR�tabovetbelowtflushtlefttright(RRj(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_direction�scCs/|j�}|j|dddddt�dS(NR4idi����itconv(RtcheckIntegerParamtstr(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_heightstdarwins"crashes with Cocoa Tk (issue19733)c	Cs�|j�}tjd|jdd�}|j|d|dt�d}|jtj��}d|d<WdQX|dk	r�|j	t|j
�|�n|jtj��}|jidd6�WdQX|dk	r�|j	t|j
�|�ndS(NtmasterRmtimage1R�R�simage "spam" doesn't existtspam(RR@t
PhotoImageRBRFR�tassertRaisesRtNoneRt	exceptiont	configure(RRR�Rtcm((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt
test_image	scCsH|j�}tj|dd�}|j|d|dt�|j�dS(NRmR8RD(RR@RERFRRq(RRR8((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRGscCsE|j�}|j|ddddd�|j|dddd�dS(	NR9ig������@gffffff@t12mi����Roi(RRvRF(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt	test_padxscCsE|j�}|j|ddddd�|j|dddd�dS(	NR:ig������@gffffff@R�i����Roi(RRvRF(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt	test_pady$scCs/|j�}|j|dddddt�dS(NR?i�in���iR�(RR�R�(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt
test_width)s(RzR{R|R1R}R2R~R3R�RRWRXR4R5R6R7R�R�R�R8R9R:R;R�R=R[R�R�R?R�(RR.RStstaticmethodRRxRR�R�R
Rwtim_functunittesttskipIftsystplatformR�RGR�R�R�(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR��s(						tOptionMenuTestcBseZddd�ZRS(tbtatccKstj|jd|||�S(N(R@t
OptionMenuRBR�(RR,tvaluesRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR0s(R�R�R�(RR.R(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR�.st	EntryTestcBsheZd)Zd�Zd �Zd!�Zd"�Zd#�Zd$�Zd%�Z	d&�Z
d'�Zd(�ZRS(*R1R2R3tdisabledbackgroundRtexportselectionRWRXR5R6R7tinsertbackgroundtinsertborderwidtht
insertofftimetinsertontimetinsertwidthtinvalidcommandR�treadonlybackgroundR;tselectbackgroundtselectborderwidthtselectforegroundtshowR�R=R�tvalidatetvalidatecommandR?txscrollcommandcKstj|j|�S(N(R@tEntryRB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRCscCs |j�}|j|d�dS(NR�(RtcheckColorParam(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_disabledbackgroundFsc	CsQ|jdd�}|j|ddddddd	�|j|dd
dd
�dS(NR�idR�ig�������?g������@ii����Rui<Roii2(RRvRF(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_insertborderwidthJscCs�|j�}|j|dddd�|j|dddd�|j|dddd�td	�d
kr�|j|dd	dd�n|j|dd	dd�dS(NR�g�������?g������@Rug�������?Roii����g�������?ii(RRvRFR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_insertwidthQscCs0|j�}|j|d�|j|d�dS(NR�tinvcmd(RtcheckCommandParam(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_invalidcommand[scCs |j�}|j|d�dS(NR�(RR�(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_readonlybackground`scCsI|j�}|j|dd�|j|dd�|j|dd�dS(NR�t*R"t (RRF(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt	test_showdscCs)|j�}|j|dddd�dS(NR�R�R�treadonly(RRj(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt
test_statejsc	Cs2|j�}|j|ddddddd�dS(NR�talltkeytfocustfocusintfocusouttnone(RRj(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt
test_validateoscCs0|j�}|j|d�|j|d�dS(NR�tvcmd(RR�(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_validatecommandts(R1R2R3R�RR�RWRXR5R6R7R�R�R�R�R�R�R�R�R;R�R�R�R�R�R=R�R�R�R?R�(
RR.RSRR�R�R�R�R�R�R�R�R�(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR�4s(				
					tSpinboxTestc,Bs�eZd9Zd,�Zd:Zd-�Zd.�Zd/�Zd0�Z	d1�Z
d2�Zd3�Zd4�Z
d5�Zd6�Zd7�Zd8�ZRS(;RzR1R2tbuttonbackgroundtbuttoncursortbuttondownrelieftbuttonupreliefR�R3R�RR�RWRXtformattfromR5R6R7t	incrementR�R�R�R�R�R�R�R;R�R�R�R�R�R�R�R=R�ttoR�R�R�R?twrapR�cKstj|j|�S(N(R@tSpinboxRB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR�scCs |j�}|j|d�dS(NR�(RR�(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_buttonbackground�scCs |j�}|j|d�dS(NR�(RtcheckCursorParam(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_buttoncursor�scCs |j�}|j|d�dS(NR�(RtcheckReliefParam(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_buttondownrelief�scCs |j�}|j|d�dS(NR�(RR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_buttonuprelief�scCs�|j�}|j|dd�|j|dd�|j|dd�|j|dd�|j|dd�|j|dd�|j|dd�|j|dd	�|j|dd
�|j|dd�|j|dd�|j|dd
�dS(NR�s%2fs%2.2fs%.2fs%2.fs%2e-1fs2.2s%2.-2fs%-2.02fs% 2.02fs	% -2.200fs%09.200fs%d(RRFR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_format�scCsU|j�}|j|dd�|j|dddd�|j|dddd	�dS(
NR�gY@R�i����gffffff$@gffffff'@i�Rs*-to value must be greater than -from value(RRFtcheckFloatParamR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt	test_from�s
cCs/|j�}|j|dddddd�dS(NR�i����igffffff$@g������)@i(RR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_increment�scCsU|j�}|j|dd�|j|dddd�|j|dddd	�dS(
NR�gY�R�i����gffffff$@gffffff'@i8���Rs*-to value must be greater than -from value(RRFRR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_to�s
cCs||j�}|j|dd�|j|dd�|j|dd
dd�|j|dddd�|j|dd�dS(NR�R"smon tue wed thurtmonttuetwedtthurRoi*g��Q�	@s
any strings42 3.14 {} {any string}(RR	R
R(i*g��Q�	@R"s
any string(RRRF(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_values�scCs |j�}|j|d�dS(NR�(RtcheckBooleanParam(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt	test_wrap�scCs�|j�}|j|jd��|jtj|jd�|jtj|jd�|jt|j�|jt|jdd�dS(Nitnoindexi(RtassertIsBoundingBoxtbboxR�R@RR�t	TypeError(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt	test_bbox�scCsl|j�}|j|j�d�|jd�|j|j�d�|jd�|j|j�d�dS(NR�tbuttonupt
buttondown(RRtselection_element(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_selection_element�s

(,RzR1R2R�R�R�R�R�R3R�RR�RWRXR�R�R5R6R7R�R�R�R�R�R�R�R�R;R�R�R�R�R�R�R�R=R�R�R�R�R�R?R�R�N(RR.RSRR�R�R�R�RRRRRRRRRR(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR�zs8												tTextTestc)Bs1eZd@ZedAkr!eZnd+�Zd,�Zed)d*�d-��Z	ed)d*�d.��Z
d/�Zd0�Zed)d*�d1��Z
ed)d2�d3��Zd4�Zd5�Zd6�Zd7�Zed)d*�d8��Zd9�Zd:�Zed)d*�d;��Zd<�Zd=�Zd>�Zd?�ZRS(BtautoseparatorsR1tblockcursorR2R3tendlineR�RWRXR4R5R6R7tinactiveselectbackgroundR�R�R�R�tinsertunfocussedR�tmaxundoR9R:R;R�R�R�tsetgridtspacing1tspacing2tspacing3t	startlineR�ttabsttabstyleR=tundoR?R�R�tyscrollcommandiicKstj|j|�S(N(R@tTextRB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR�scCs |j�}|j|d�dS(NR(RR
(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_autoseparators�scCs |j�}|j|d�dS(NR(RR
(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_blockcursor�scCs�|j�}djd�td�D��}|jd|�|j|dddd�|j|dd	dd�|j|dd
dd�|j|dd
�|j|dd�|j|dddd�dS(Ns
css|]}dVqdS(sLine %dN((t.0ti((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pys	<genexpr>sidtendRi�RoR"i����R�Rsexpected 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	dd�dS(
NR4idg�����LY@gfffff�Y@t3ci����Roii(RRvRF(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR�scCs)|j�}|j|dddd�dS(NRiii����(RR�(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_maxundoscCs |j�}|j|d�dS(NR(RR�(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_inactiveselectbackgroundsicCs)|j�}|j|dddd�dS(NRthollowR�tsolid(RRj(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_insertunfocussedsc
Cs>|j�}|j|ddddddtdtd
k�dS(NR�g�������?g������@i����RuR�t	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|dddd�dS(	NR igffffff5@g������6@s0.5ci����Roi(RRvRF(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt
test_spacing1*scCsE|j�}|j|ddddd�|j|dddd�dS(	NR!ig������@gffffff@s0.1ci����Roi(RRvRF(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt
test_spacing2/scCsE|j�}|j|ddddd�|j|dddd�dS(	NR"igffffff5@g������6@s0.5ci����Roi(RRvRF(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt
test_spacing34scCs�|j�}djd�td�D��}|jd|�|j|dddd�|j|dd	dd�|j|dd
dd�|j|dd
�|j|dd�|j|dddd�dS(Ns
css|]}dVqdS(sLine %dN((R+R,((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pys	<genexpr><sidR-R#i�RoR"i����R�Rsexpected 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|ddd�n|j|ddd�dS(NiiR�R�R�(ii(RRR�Rj(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR�Gsc
Cs�|j�}t�dkr7|j|ddd	d�n|j|dd�|j|ddd	d�|j|dd
d	d�|j|dddddtdk�dS(NiiiR$gffffff$@g33333�4@t1it2iRos10.2s20.7s10.2 20.7 1i 2is2c left 4c 6c centert2cR�t4ct6cRiR�Rsbad screen distance "spam"R8(iii(gffffff$@g33333�4@R>R?(s10.2s20.7R>R?(gffffff$@g33333�4@R>R?(s10.2s20.7R>R?(R@R�RARBRi(ii(RRRFRR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt	test_tabsNs
cCs&|j�}|j|ddd�dS(NR%ttabulart
wordprocessor(RRj(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt
test_tabstyle]scCs |j�}|j|d�dS(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|dddd�dS(NR?i�in���Roii(RR�RF(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR�fscCsQ|j�}tdkr4|j|dddd�n|j|dddd�dS(NiiR�tcharR�tword(ii(RRR�Rj(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|jdd�dS(Ns1.1R-R(RRRtassertIsNoneR�R@RR�(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRss()RR1RR2R3RR�RWRXR4R5R6R7RR�R�R�R�RR�RR9R:R;R�R�R�RR R!R"R#R�R$R%R=R&R?R�R�R'(ii(RR.RSRR)t
_stringifyRR)RR*R1R�R3R4R7R9R:R;R<R=R�RCRFRGR�RR(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR�sB														t
CanvasTestcBsheZd#Zee�ZeZd�Zd�Z	d�Z
d�Zd�Zd �Z
d!�Zd"�ZRS($R1R2tcloseenoughtconfineR3R4R5R6R7R�R�R�R�R�toffsetR;tscrollregionR�R�R�R�R=R�txscrollincrementR'tyscrollincrementR?cKstj|j|�S(N(R@tCanvasRB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR�sc	Cs2|j�}|j|ddddddt�dS(NRMig333333@g������@i����R�(RRtfloat(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_closeenough�scCs |j�}|j|d�dS(NRN(RR
(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_confine�scCs�|j�}|j|dd�|j|dddddddd	d
d�|j|dd�|j|dd
�|j|dd�dS(NROs0,0R`RaR]RdRcReRfRbRis10,20s#5,6R�(RRR�RFR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_offset�scCs�|j�}|j|dd�|j|dddd�|j|dd�|j|ddd	d
�|j|dd�|j|dd
�|j|dd�dS(NRPs0 0 200 150ii�i�RoR"R�Rsbad scrollRegion "spam"(iii�i�(iii�R�(iii�(iii�i�i(RRFR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_scrollregion�scCs,|j�}|j|ddddd�dS(NR�R�R�Rs0bad state value "{}": must be normal or disabled(RRj(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR��sc	Cs2|j�}|j|ddddddd�dS(NRQi(ig������D@g������E@i���s0.5i(RRv(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_xscrollincrement�sc	Cs2|j�}|j|ddddddd�dS(NRRi
igffffff&@g333333+@i����s0.1i(RRv(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_yscrollincrement�s(R1R2RMRNR3R4R5R6R7R�R�R�R�R�ROR;RPR�R�R�R�R=R�RQR'RRR?(RR.RSR�R
RxR)RKRRURVRWRXR�RYRZ(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRL}s(								tListboxTestcBs�eZd,Zd�Zd�Zeddd�ejj�Zd�Z	d�Z
d �Zd!�Zd"�Z
d#�Zd$�Zd%�Zd&�Zd'�Zd(�Zd)�Zd*�Zd+�ZRS(-tactivestyleR1R2R3RR�RWRXR4R5R6R7R�tlistvariableR;R�R�R�t
selectmodeRR�R=R?R�R'cKstj|j|�S(N(R@tListboxRB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR�scCs)|j�}|j|dddd�dS(NR\tdotboxR�R�(RRj(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_activestyle�s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_listvariable�scCs\|j�}|j|dd�|j|dd�|j|dd�|j|dd�dS(NR^tsingletbrowsetmultipletextended(RRF(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_selectmode�s
cCs&|j�}|j|ddd�dS(NR�R�R�(RRj(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR��sc
Cs�|j�}|jtd��|jd�WdQXdj�}|jd|�x-t|�D]\}}|j|d|�q[W|jt��|j�WdQX|jtd��|jd�WdQX|j	|jdd�d�|j	|jdd�d�|j	|jdd�d�|jd�}|j
|t�x�|j�D]s\}}|j
t|�d�t|�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	enumerateR�RRtassertIsInstancetdicttitemstassertIntlentitemcget(RRtcolorsR,tcolortdtktv((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_itemconfigure�s0c	Cs�|j�}|jddddd�|jdi||6�|j|jd|�d|�|j|jd|�|�|jtd��|jdid	|6�WdQXdS(
NR-R�R�R�Rziisunknown color name "spam"R�(RR0RoRRwRnR(RRmR�R((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pytcheck_itemconfigures cCs|jdd�dS(NR1s#ff0000(R~(R((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_itemconfigure_backgroundscCs|jdd�dS(Ntbgs#ff0000(R~(R((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_itemconfigure_bgscCs|jdd�dS(Ntfgs#110022(R~(R((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_itemconfigure_fgscCs|jdd�dS(NRXs#110022(R~(R((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_itemconfigure_foregroundscCs|jdd�dS(NR�s#110022(R~(R((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt#test_itemconfigure_selectbackgroundscCs|jdd�dS(NR�s#654321(R~(R((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt#test_itemconfigure_selectforegroundscCs�|j�}|jdd�td�D��|j�|j|jd��|j|jd��|j|jd��|jt|jd�|jt|jd�|jt
|j�|jt
|jdd�dS(Nicss|]}d|VqdS(sel%dN((R+R,((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pys	<genexpr>sii����i
Ri(RR0R/tpackRRRJR�RR�R(Rtlb((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_boxs 
cCs�|j�}|jdd�td�D��|jdtj�|jdd�|jd�|j|j�d�|j	t
|jd�dS(	Nicss|]}d|VqdS(sel%dN((R+R,((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pys	<genexpr>+siiiii(iiii(RR0R/tselection_clearR@tENDt
selection_setRtcurselectionR�R(RR�((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_curselection)s 
cCs�|j�}|jdd�td�D��|j|jd�d�|j|jd�d�|j|jd�d�|j|jd�d	�|j|jd
�d	�|j|jdd�d�|j|jdd�d�|j|jdd�d�|j|jdd�d�|jt|jd�|jt|jd�|jt|j�|jt|jdd�|jt|jddd�|jt|jd�dS(Nicss|]}d|VqdS(sel%dN((R+R,((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pys	<genexpr>4sitel0itel3R-tel7R"i����itel4tel5tel6Riig333333@(R�R�R�(R�R�R�((R�(	RR0R/RtgetR�RR�R(RR�((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_get2s" (R\R1R2R3RR�RWRXR4R5R6R7R�R]R;R�R�R�R^RR�R=R?R�R'(RR.RSRRaRR
ttest_justifyR�ReRjR�R}R~RR�R�R�R�R�R�R�R�(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR[�s2																	t	ScaleTestcBs�eZd+ZdZd�Zd �Zd!�Zd"�Zd#�Zd$�Z	d%�Z
d&�Zd'�Zd(�Z
d)�Zd*�ZRS(,RzR1tbigincrementR2R�R3tdigitsRWRXR�R5R6R7RrtlengthtorientR;R�R�t
resolutiont	showvaluetsliderlengthtsliderreliefR�R=ttickintervalR�ttroughcolorR�R?tverticalcKstj|j|�S(N(R@tScaleRB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRSscCs)|j�}|j|dddd�dS(NR�g������(@g������7@i����(RR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_bigincrementVscCs&|j�}|j|ddd�dS(NR�ii(RR�(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_digitsZscCs/|j�}|j|dddddt�dS(NR�idg������-@g333333.@R�(RRtround(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR^scCs6|j�}|j|dd�|j|dd�dS(NRrs
any stringR"(RRF(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt
test_labelbscCs,|j�}|j|ddddd�dS(NR�i�gffffff`@g33333�`@t5i(RRv(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_lengthgscCs,|j�}|j|ddddd�dS(NR�g������@ig������@i����(RR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_resolutionkscCs |j�}|j|d�dS(NR�(RR
(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_showvalueoscCs/|j�}|j|dddddd�dS(NR�i
gffffff&@g333333/@i����t3m(RRv(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_sliderlengthsscCs |j�}|j|d�dS(NR�(RR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_sliderreliefxsc	CsQ|j�}|j|ddddddt�|j|dddd	dt�dS(
NR�ig333333@gffffff@iR�i����Roi(RRR�RF(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_tickinterval|s
c	Cs2|j�}|j|ddddddt�dS(NR�i,g������-@g333333.@i����R�(RRR�(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR�s(RzR1R�R2R�R3R�RWRXR�R5R6R7RrR�R�R;R�R�R�R�R�R�R�R=R�R�R�R�R?(RR.RStdefault_orientRR�R�RR�R�R�R�R�R�R�R(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR�Fs(											t
ScrollbarTestcBs\eZdZee�ZeZdZd�Z	d�Z
d�Zd�Zd�Z
d�ZRS(RztactivereliefR1R2R�R3telementborderwidthR5R6R7tjumpR�R;R�R�R=R�R?R�cKstj|j|�S(N(R@t	ScrollbarRB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR�scCs |j�}|j|d�dS(NR�(RR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_activerelief�scCs,|j�}|j|ddddd�dS(NR�g333333@gffffff@i����t1m(RRv(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_elementborderwidth�scCs,|j�}|j|ddddd�dS(NR�R�t
horizontalRs4bad orientation "{}": must be vertical or horizontal(RRj(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_orient�scCsg|j�}xdD]}|j|�qW|jd�|jt|j�|jt|jdd�dS(Ntarrow1tslidertarrow2R"(R�R�R�(RtactivateR�R(RtsbR]((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt
test_activate�s

cCs�|j�}|jdd�|j|j�d�|jt|jdd�|jt|jdd�|jt|jdd�|jt|jd�|jt|jddd�dS(	Ng�������?g�������?tabctdefg333333�?gffffff�?g�������?(g�������?g�������?(RtsetRR�R�RR�(RR�((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_set�s(RzR�R1R2R�R3R�R5R6R7R�R�R;R�R�R=R�R?(RR.RSR�R
RxR)RKR�RR�R�R�R�R�(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR��s 					tPanedWindowTestcBsgeZd2ZdZd�Zd�Zd�Zd�Zd�Ze	ddd�d��Z
e	ddd�d��Ze	ddd�d��Zd�Z
d�Zd �Zd!�Zd"�Zd#�Zd$�Zd%�Zed&�Zd'�Zd(�Zd)�Zd*�Ze	dd�d+��Zd,�Zd-�Zd.�Zd/�Ze	dd�d0��Z d1�Z!RS(3R1R2R3t	handlepadt
handlesizeR4topaqueresizeR�tproxybackgroundtproxyborderwidthtproxyreliefR;t
sashcursortsashpadt
sashrelieft	sashwidtht
showhandleR?R�cKstj|j|�S(N(R@tPanedWindowRB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR�scCs/|j�}|j|dddddd�dS(NR�ig������@gffffff@i����R�(RRv(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_handlepad�sc
Cs5|j�}|j|dddddddt�dS(NR�ig������"@g333333%@i����t2mR�(RRvR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_handlesize�scCs8|j�}|j|ddddddddt�dS(	NR4idg�����LY@gfffff�Y@i����iR>R�(RRvR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR��s!cCs |j�}|j|d�dS(NR�(RR
(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_opaqueresize�siiicCs |j�}|j|d�dS(NR�(RR�(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_proxybackground�scCs8|j�}|j|ddddddddt�dS(	NR�ig�������?g333333@ii����RuR�(RRvR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_proxyborderwidth�scCs |j�}|j|d�dS(NR�(RR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_proxyrelief�scCs |j�}|j|d�dS(NR�(RR�(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_sashcursor�scCs/|j�}|j|dddddd�dS(NR�ig�������?g������@i����R�(RRv(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_sashpad�scCs |j�}|j|d�dS(NR�(RR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_sashrelief�sc
Cs5|j�}|j|dddddddt�dS(NR�i
g333333&@g333333/@i����R�R�(RRvR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_sashwidth�scCs |j�}|j|d�dS(NR�(RR
(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_showhandle�scCs8|j�}|j|ddddddddt�dS(	NR?i�gfffff6y@g�����Iy@in���iR�R�(RRvR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR�s!cCsQ|j�}tj|�}tj|�}|j|�|j|�|||fS(N(RR@R�tadd(RtpR�R�((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pytcreate2s

cCs�|j�\}}}|jt|j�|j|�}|j|t�xl|j�D]^\}}|jt|�d�|j||j||��|j|d|j	||��qTWdS(Nii(
R�R�Rt
paneconfigureRrRsRtRRvtpanecget(RR�R�R�RzR{R|((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigurescCs�d�}|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.pyt<lambda>R"i(R(R�R�RR�(RR�R�RmR�Rot	stringifyR�((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pytcheck_paneconfigures		&c	Cs4|jt|��|j|id|6�WdQXdS(NtbadValue(RnRR�(RR�R�Rmtmsg((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pytcheck_paneconfigure_bad$scCsN|j�\}}}|j||d|t|��|j||dd�dS(Ntaftersbad window path name "badValue"(R�R�R�R�(RR�R�R�((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_after(scCsN|j�\}}}|j||d|t|��|j||dd�dS(Ntbeforesbad window path name "badValue"(R�R�R�R�(RR�R�R�((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_before.scCsW|j�\}}}|j||ddddt�dk�|j||dd�dS(	NR4i
R�iiisbad screen distance "badValue"(iii(R�R�RR�(RR�R�R�((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_height4s
cCsH|j�\}}}|j||dtd�|j||dd�dS(Nthideis)expected boolean value but got "badValue"(R�R�tFalseR�(RR�R�R�((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_hide;scCsH|j�\}}}|j||ddd�|j||dd�dS(Ntminsizei
sbad screen distance "badValue"(R�R�R�(RR�R�R�((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_minsizeBscCsH|j�\}}}|j||ddd�|j||dd�dS(NR9g�������?isbad screen distance "badValue"(R�R�R�(RR�R�R�((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_padxHscCsH|j�\}}}|j||ddd�|j||dd�dS(NR:g�������?isbad screen distance "badValue"(R�R�R�(RR�R�R�((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_padyNscCsH|j�\}}}|j||ddd�|j||dd�dS(Ntstickytnsewtnesws[bad stickyness value "badValue": must be a string containing zero or more of n, e, s, and w(R�R�R�(RR�R�R�((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_stickyTscCsH|j�\}}}|j||ddd�|j||dd�dS(NtstretchtalwtalwayssEbad stretch "badValue": must be always, first, last, middle, or never(R�R�R�(RR�R�R�((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_stretch\scCsW|j�\}}}|j||ddddt�dk�|j||dd�dS(	NR?i
R�iiisbad screen distance "badValue"(iii(R�R�RR�(RR�R�R�((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_paneconfigure_widthds
(R1R2R3R�R�R4R�R�R�R�R�R;R�R�R�R�R�R?("RR.RSR�RR�R�R�R�RR�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR��sH													

								tMenuTestcBseeZdZeZd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd�Zd�Z
RS(RztactiveborderwidthR{R1R2R3RRWRXtpostcommandR;R�R=ttearoffttearoffcommandRttypecKstj|j|�S(N(R@RERB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRwscCs |j�}|j|d�dS(NR(RR�(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_postcommandzscCs |j�}|j|d�dS(NR(RR
(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_tearoff~scCs |j�}|j|d�dS(NR(RR�(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_tearoffcommand�scCs#|j�}|j|dd�dS(NRs
any string(RRF(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt
test_title�scCs)|j�}|j|dddd�dS(NRR�Rtmenubar(RRj(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt	test_type�scCs	|j�}|jdd�|jt|j�|jtd��|jd�WdQX|jd�}|j|t�x�|j	�D]v\}}|j|t
�|j|t�|jt
|�d�|j|d|�|j|jd|�|d�q�W|j�dS(	NRrttestsbad menu entry index "foo"Rniiii(Rtadd_commandR�RtentryconfigureRnRRrRsRtR�ttupleRRvt	entrycgetRq(Rtm1RzR{R|((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_entryconfigure�s$cCsk|j�}|jdd�|j|jdd�d�|jddd�|j|jdd�d�dS(NRrR
itchanged(RRRRR(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_entryconfigure_label�s
c	Cs�|j�}tj|j�}tj|j�}|jd|dtdtdd�|jt|j	dd��t|��|j
dd|�|jt|j	dd��t|��dS(NR�R�R�RrtNonsensei(RR@t
BooleanVarRBtadd_checkbuttonR)R�RR�RR(RRtv1tv2((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_entryconfigure_variable�s((RzRR{R1R2R3RRWRXRR;R�R=RRRR(RR.RSR	RxRRRR	R
RRRR(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyRls								tMessageTestcBs&eZdZeZd�Zd�ZRS(R|taspectR1R2R3RWRXR5R6R7R�R9R:R;R=R[R�R?cKstj|j|�S(N(R@tMessageRB(RRC((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR�scCs)|j�}|j|dddd�dS(NRi�ii���(RR�(RR((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyttest_aspect�s(R|RR1R2R3RWRXR5R6R7R�R9R:R;R=R[R�R?(RR.RSR	R/RR(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyR�s	t__main__(1R�tTkinterR@RRIR�ttest.test_supportRRttest_ttk.supportRRRRtwidget_testsRRR	R
RRR
RRRRtTestCaseR0RTRVRtRyR�R�R�R�R�R�R�RRLR[R�R�R�RRt	tests_guiR(((s=/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_widgets.pyt<module>sl"F
%(	AEh�B�B1�D

Zerion Mini Shell 1.0