ok

Mini Shell

Direktori : /proc/thread-self/root/proc/self/root/usr/lib64/python2.7/lib-tk/test/test_ttk/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyo

�
zfc@sUddlZddlZddlmZddlZddlmZmZmZm	Z	ddl
Z
ddlmZddl
mZmZmZmZddlmZmZmZmZmZmZmZmZed�defd	��YZd
eejfd��YZdeefd
��YZee�deejfd��Y�Zee�deejfd��Y�Z defd��YZ!ee�de!ejfd��Y�Z"ee�de!ejfd��Y�Z#ee�de!ejfd��Y�Z$eee�deejfd��Y�Z%eee�de%ejfd��Y�Z&eee�deejfd��Y�Z'ee�d e!ejfd!��Y�Z(d"e!ejfd#��YZ)ee�d$eejfd%��Y�Z*ee�d&eejfd'��Y�Z+ej,e
j-d(kd)�ee�d*eejfd+��Y��Z.eee�d,eejfd-��Y�Z/ee�d.eejfd/��Y�Z0ee�d0eejfd1��Y�Z1ee�d2eejfd3��Y�Z2e#e$e&e%ee e"e)e/e'e+e(e*e.e1e2e0efZ3e4d4krQee3�ndS(5i����N(tTclError(trequirestrun_unittestthave_unicodetu(t
MockTclObj(tAbstractTkTestttcl_versiontget_tk_patchleveltsimulate_mouse_click(tadd_standard_optionstnoconvtnoconv_methtAbstractWidgetTesttStandardOptionsTeststIntegerSizeTeststPixelSizeTeststsetUpModuletguitStandardTtkOptionsTestscBs#eZd�Zd�Zd�ZRS(cCs�|j�}|j|dd�d}t�d
kr>d	}n|j|dd
d|�|jdd
�}|j|dd
�dS(Ntclassts"attempt to change read-only optioniiitbetais"Attempt to change read-only optiontFooterrmsgtclass_(iiiRi(tcreatetassertEqualRtcheckInvalidParam(tselftwidgetRtwidget2((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_classs	c	Cs�|j�}|j|dddd�|j|dddd�|j|dddd�|j|dddd�|j|dddd�|j|dd�|j|dddd�dS(Ntpaddingitexpectedt0it5it6it7it8t5pt6pt7pt8pR(R#(R$(ii(R$R%(iii(R$R%R&(iiii(R$R%R&R'(R(R)R*R+((Rt
checkParam(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_paddingscCs�|j�}|j|dd�d}t|d�rQdt|d�j�}n|j|ddd|�|jdd�}|j|d	d�dS(
NtstyleRsLayout Foo not foundtdefault_orientsLayout %s.Foo not foundRRRR(RRthasattrtgetattrttitleR(RRRR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_style+s(t__name__t
__module__R R-R3(((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyRs	
	t
WidgetTestcBs)eZdZd�Zd�Zd�ZRS(s,Tests methods available in every ttk widget.cCsRtt|�j�tj|jdddd�|_|jj�|jj�dS(NtwidthittexttText(	tsuperR6tsetUptttktButtontrootRtpacktwait_visibility(R((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR;=s!
cCs�|jj�|j|jj|jj�d|jj�d�d�|j|jjdd�d�|jtj|jjdd�|jtj|jjdd�|jtj|jjdd�dS(Nitlabeli����Ri(
Rtupdate_idletasksRtidentifytwinfo_widthtwinfo_heighttassertRaisesttkinterRtNone(R((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_identifyDs
cCs�|j|jj�d
�|j|jjdg�t�|j|jjdg�d�|j|jjdg�d�|j|jjddg�d
�|j|jjddg�d�|j|jjddg�d�d�}|j|jjdg|didd6�didd6f�|jj�}|jtj|jjd	g�|jtj|jjdd	g�|j||jj��|jjddg�|j|jj�d�dS(Ns	!disabledtdisabledtactives!activec[s
||fS(N((targ1tkw((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_cbasthittheretmsgtbadstate((s	!disabled((s!activeRJ(((RK(RRtstatetinstatetTrueRFRGR(RRNt	currstate((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_widget_stateQs(""	

(R4R5t__doc__R;RIRW(((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR6:s		
tAbstractToplevelTestcBseZeZRS((R4R5Rt_conv_pixels(((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyRYust	FrameTestc	BseZd
Zd	�ZRS(tborderwidthRtcursortheightR!treliefR.t	takefocusR7cKstj|j|�S(N(R<tFrameR>(Rtkwargs((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�s(	R\RR]R^R!R_R.R`R7(R4R5tOPTIONSR(((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR[ystLabelFrameTestc
Bs)eZdZd
�Zd�Zd�ZRS(R\RR]R^tlabelanchortlabelwidgetR!R_R.R`R8t	underlineR7cKstj|j|�S(N(R<t
LabelFrameR>(RRb((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�scCs]|j�}|j|ddddddddd	d
ddd
dd�|j|dd�dS(NRetetentestntnetnwtstsetswtwtwntwsRs!Bad label anchor specification {}tcenter(RtcheckEnumParamR(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_labelanchor�s
'cCsQ|j�}tj|jdddd�}|j|d|dd�|j�dS(NR8tMupptnametfooRfR"s.foo(RR<tLabelR>R,tdestroy(RRRA((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_labelwidget�s(
R\RR]R^ReRfR!R_R.R`R8RgR7(R4R5RcRRwR}(((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyRd�s		tAbstractLabelTestcBs,eZd�Zd�Zd�Zd�ZRS(cCs�tjd|jdd�}tjd|jdd�}|j|||dd�|j||ddd�|j|||fdd
�|j|||d|fdd�|j||ddd�|j||dd	d
�dS(NtmasterRytimage1timage2R"RKsimage1 active image2tspamRsimage "spam" doesn't exist(R�(R�(R�(R�RKR�(R�RKR�(RGt
PhotoImageR>R,R(RRRytimageR�((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pytcheckImageParam�scCs8|j�}|j|ddddddddd	�
dS(
NtcompoundtnoneR8R�Ruttoptbottomtlefttright(RRv(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_compound�scCs)|j�}|j|dddd�dS(NRSRKRJtnormal(RtcheckParams(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_state�scCs)|j�}|j|dddd�dS(NR7i�in���i(RR�(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_width�s(R4R5R�R�R�R�(((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR~�s	
		t	LabelTestcBs&eZdZeZd�Zd�ZRS(tanchort
backgroundR\RR�R]tfontt
foregroundR�tjustifyR!R_RSR.R`R8ttextvariableRgR7t
wraplengthcKstj|j|�S(N(R<R{R>(RRb((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�scCs#|j�}|j|dd�dS(NR�s3-Adobe-Helvetica-Medium-R-Normal--*-120-*-*-*-*-*-*(RR,(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt	test_font�s(R�R�R\RR�R]R�R�R�R�R!R_RSR.R`R8R�RgR7R�(R4R5RcRRZRR�(((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR��s	t
ButtonTestcBs)eZdZd�Zd�Zd�ZRS(RtcommandR�R]tdefaultR�R!RSR.R`R8R�RgR7cKstj|j|�S(N(R<R=R>(RRb((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�scCs)|j�}|j|dddd�dS(NR�R�RKRJ(RRv(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_default�scsBg�tj|jd�fd��}|j�|j��dS(NR�cs
�jd�S(Ni(tappend((tsuccess(s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt<lambda>�R(R<R=R>tinvoket
assertTrue(Rtbtn((R�s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_invoke�s!
(RR�R�R]R�R�R!RSR.R`R8R�RgR7(R4R5RcRR�R�(((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR��s		tCheckbuttonTestcBs2eZdZd�Zd�Zd�Zd�ZRS(RR�R�R]R�toffvaluetonvalueR!RSR.R`R8R�RgtvariableR7cKstj|j|�S(N(R<tCheckbuttonR>(RRb((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�scCs,|j�}|j|ddddd�dS(NR�igffffff@Rs
any string(RR�(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_offvalue�scCs,|j�}|j|ddddd�dS(NR�igffffff@Rs
any string(RR�(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_onvalue�scsg��fd�}tj|jd|�}|j|j�d
�|jtj|jj	|d�|j
�}|j|d�|j|d|jj	|d��|j��d|d<|j
�}|jt
|��|jt��d�|j|d	|jj	|d��dS(Ncs�jd�dS(Niscb test called(R�((R�(s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pytcb_tests
R�t	alternateR�scb test calledR�RiR�(R�(R<R�R>RRSRFRGRttktglobalgetvarR�R�tassertFalsetstrtassertLessEqualtlen(RR�tcbtntres((R�s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR��s"



(RR�R�R]R�R�R�R!RSR.R`R8R�RgR�R7(R4R5RcRR�R�R�(((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR��s			t	EntryTestcBszeZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd�Zd�Z
d�ZRS(R�RR]texportselectionR�R�tinvalidcommandR�tshowRSR.R`R�tvalidatetvalidatecommandR7txscrollcommandcCs&tt|�j�|j�|_dS(N(R:R�R;Rtentry(R((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR;#scKstj|j|�S(N(R<tEntryR>(RRb((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR'scCs |j�}|j|d�dS(NR�(RtcheckCommandParam(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_invalidcommand*scCsI|j�}|j|dd�|j|dd�|j|dd�dS(NR�t*Rt (RR,(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt	test_show.scCs)|j�}|j|dddd�dS(NRSRJR�treadonly(RR�(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�4sc	Cs2|j�}|j|ddddddd�dS(NR�talltkeytfocustfocusintfocusoutR�(RRv(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_validate9scCs |j�}|j|d�dS(NR�(RR�(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_validatecommand>scCsU|j|jjd��|jtj|jjd�|jtj|jjd�dS(Nitnoindex(tassertIsBoundingBoxR�tbboxRFRGRRH(R((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt	test_bboxCscCs�|jj�|jj�|jj�tjdkrX|j|jjdd�d�n|j|jjdd�d�|j|jjdd�d�|j	t
j|jjdd�|j	t
j|jjdd�|j	t
j|jjdd�dS(NtdarwinittextareasCombobox.buttoni����R(R�sCombobox.button(
R�R?R@RBtsystplatformtassertInRCRRFRGRRH(R((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyRIIs



cs#g��fd�}d|jd<d�|jd<||jd<|jj�|j��d|jd<|jj�|jt��d�||jd<d	�|jd<|jj�|jt��d�d|jd<|jj�|jt��d�t|jd<|jtj|jj�dS(
Ncs
�jt�S(N(R�RU((R�(s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�]RR�R�cSstS(N(tFalse(((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�`RR�R�RicSstS(N(RU(((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�kR(	R�R�R�RR�RURFRGR(Rttest_invalid((R�s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_validation_options[s&










cs�g��fd�}d|jd<|jj|�df|jd<|jjdd�|jjdd�|j�ttg�|j|jj�d�dS(	NcsDd|j�kodkns3�jt�tS�jt�tS(Ntatz(tlowerR�R�RU(t	to_insert(t
validation(s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�ys
"

R�R�s%SR�tendiR�(R�tregistertinsertRR�RUtget(RR�((R�s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_validationws
cCs$d�}|jj|�df|jd<|jjdd�|j|jj�t�|j|jj�d�|jjdd�|j|jj�d�|jjdd�|j|jj�t	�|j|jj�d�|jjd
�|j|jj�t�|j|jj�d
�dS(NcSs;x4|D],}d|j�ko*dknstSqWtS(NR�R�(R�R�RU(tcontenttletter((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR��s
"s%PR�R�tavocadoiRta1btinvalidi((R�((
R�R�R�RR�RURStdeleteR�R�(RR�((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_revalidation�s	(R�RR]R�R�R�R�R�R�RSR.R`R�R�R�R7R�(R4R5RcR;RR�R�R�R�R�R�RIR�R�R�(((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�s"											tComboboxTestcBsMeZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(R�RR]R�R�R�R^R�R�tpostcommandR�RSR.R`R�R�R�tvaluesR7R�cCs&tt|�j�|j�|_dS(N(R:R�R;Rtcombo(R((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR;�scKstj|j|�S(N(R<tComboboxR>(RRb((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�sc	Cs2|j�}|j|ddddddd�dS(NR^idg�����LY@gfffff�Y@i����it1i(RR�(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_height�scCs`|jj�}|jjdd|ddd�|jjdd|ddd�|jj�dS(Ns<ButtonPress-1>txitys<ButtonRelease-1>(R�RDtevent_generateRB(RR7((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt_show_drop_down_listbox�s  cs�g�dg|jd<|jjd�fd��|jj�|jj�|jj�}|j�|jj�|jjd�|jj�|j��dS(NiR�s<<ComboboxSelected>>cs
�jt�S(N(R�RU(tevt(R�(s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR��Rs<Return>(	R�tbindR?R@RER�tupdateR�R�(RR^((R�s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_virtual_event�s




cs~g��fd�|jd<|jj�|jj�|j�|j��d|jd<|j�|jt��d�dS(Ncs
�jt�S(N(R�RU((R�(s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR��RR�Ri(R�R?R@R�R�RR�(R((R�s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_postcommand�s





c	s��fd�}�j�jdtd#kr1d$nd�|dd��j�jdddd%��j�jdd&��j�jdd'��j�jdtd(kr�d)nd�dddg�jd<�jjd�|dd��jjd�|dd��jjd�|dd��jjd�d*�jd<|dd��jjddddg��j�jd�jr�d+nd�dddg�jd<�j�jd�jr�d,nd�ddd g�jd<�j�jd�jr�d-nd!��jt	j
�jjt�jd���jt	j
�jjd�tj
�jddddg�}�j|d�jr�d.nd"�|j�dS(/Ncs6�j�jj�|��j�jj�|�dS(N(RR�R�tcurrent(tgetvaltcurrval(R(s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pytcheck_get_current�sR�iiRi����smon tue wed thurR"tmonttuetwedtthuri*g��Q�	@s
any stringR�itciitdit1t2s1 {} 2sa bsa	bsa
bs{a b} {a	b} {a
b}sa\tbs"a"s} {sa\\tb {"a"} \}\ \{s1 2 {}(ii((R�R�R�R(R�R�R�R(i*g��Q�	@Rs
any string(ii((iiRi(RRR(sa bsa	bsa
b(sa\tbs"a"s} {(RRR(RR�RR,tsetR�t	configuretwantobjectsRFRGRR�R<R�R>R|(RR�tcombo2((Rs9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_values�sL
(




!
(R�RR]R�R�R�R^R�R�R�R�RSR.R`R�R�R�R�R7R�(
R4R5RcR;RR�R�R�R�R	(((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR��s						tPanedWindowTestcBsVeZdZd�Zd�Zd	�Zd
�Zd�Zd�Zd
�Z	d�Z
RS(RR]R^torientR.R`R7cCs&tt|�j�|j�|_dS(N(R:R
R;Rtpaned(R((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR;&scKstj|j|�S(N(R<tPanedWindowR>(RRb((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR*scCs�|j�}|jt|d�d�d}t�dkrDd	}n|j|dd
d|�|jdd
�}|jt|d�d
�dS(
NRtverticals"attempt to change read-only optioniiiRis"Attempt to change read-only optiont
horizontalR(iiiRi(RRR�RR(RRRR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_orient-s	cCsztj|j�}tj|�}|jtj|jj|�|j�|j�tj|j�}tj|�}|jtj|jj|�|j�|j�tj|j�}|jj|�|jtj|jj|�tj|j�}|jj|�|j	|jj
d�|jj
d��|jtj|jj
d�|j�|j�|jtj|jj
d�dS(Niii(R<R{RRFRGRtaddR|R>Rtpane(RRAtchildt
good_childtother_child((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_add8s(



(

cCs�|jtj|jjd�|jtj|jjd�|jjtj|j	��|jjd�|jtj|jjd�dS(Ni(
RFRGRRtforgetRHRR<R{R>(R((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_forgetTs
cCs|jtj|jjdd�|jtj|jjdd�|jtj|jjdd�tj|j�}tj|j�}tj|j�}|jtj|jjd|�|jjd|�|jjd|�|j	|jj
�t|�t|�f�|jjd|�|j	|jj
�t|�t|�f�|jjd|�|j	|jj
�t|�t|�t|�f�|jj
�}|jjd|�|j	||jj
��|jj||�|j	|jj
�t|�t|�t|�f�dS(NiR�(RFRGRRR�RHR<R{R>RtpanesR�(RRtchild2tchild3R((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_insert]s*++"cCs
|jtj|jjd�tj|j�}|jj|�|j	|jjd�t
�|j|jjddd�|j
r�dnd�|j|jjdd�|j
r�dnd�|j|jjd�|jjt|���|jtj|jjddd�dS(NitweightR#t	badoptiont	somevalue(RFRGRRRR<R{R>RtassertIsInstancetdictRRHRR�(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt	test_pane�s.cCsi|jtj|jjd�|jtj|jjd�|jtj|jjd�tj|jdd�}|jj|dd�|jtj|jjd�tj|jdd�}|jj|�|jtj|jjd�|jj	dt
d	d
�|jj�|jjd�}|jjdd�|j||jjd��|j
|jjd�t�dS(NRiR8R�Ritbtexpandtfilltbothi�(RFRGRRtsashposRHR<R{RR?RUR@tassertNotEqualR tint(RRRtcurr_pos((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_sashpos�s
(RR]R^RR.R`R7(R4R5RcR;RRRRRR"R+(((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR
s							#	tRadiobuttonTestcBs)eZdZd�Zd�Zd�ZRS(RR�R�R]R�R!RSR.R`R8R�RgtvalueR�R7cKstj|j|�S(N(R<tRadiobuttonR>(RRb((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�scCs,|j�}|j|ddddd�dS(NR-igffffff@Rs
any string(RR�(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_value�scs�g��fd�}tj|j�}tj|jd|d|dd�}tj|jd|d|dd�}|jr�d�}nt}|j�}|j|d�|j||d�|j	��|j|j	�||j
j|d���|j��d	|d<|j�}|jt
|�d	�|jt��d�|j||d�|j	��|j|j	�||j
j|d���|jt
|d�t
|d��dS(
Ncs�jd�dS(Niscb test called(R�((R�(s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR��s
R�R�R-iicSs|S(N((R�((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR��Rscb test calledR(RGtIntVarR>R<R.RR)R�RR�R�R�R�R�R�R�(RR�tmyvarR�tcbtn2tconvR�((R�s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR��s0	 

 (RR�R�R]R�R!RSR.R`R8R�RgR-R�R7(R4R5RcRR/R�(((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR,�s		tMenubuttonTestcBs)eZdZd�Zd�Zd�ZRS(RR�R]t	directionR�tmenuR!RSR.R`R8R�RgR7cKstj|j|�S(N(R<t
MenubuttonR>(RRb((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�scCs/|j�}|j|dddddd�dS(NR5tabovetbelowR�R�tflush(RRv(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_direction�scCsH|j�}tj|dd�}|j|d|dt�|j�dS(NRyR6R3(RRGtMenuR,R�R|(RRR6((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt	test_menu�s(RR�R]R5R�R6R!RSR.R`R8R�RgR7(R4R5RcRR;R=(((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR4�s		t	ScaleTestcBskeZdZeZdZd�Zd
�Zd�Zd�Z	d�Z
d�Zd�Zd�Z
d�ZRS(RR�R]tfromtlengthRR.R`ttoR-R�RcCs@tt|�j�|j�|_|jj�|jj�dS(N(R:R>R;RtscaleR?R�(R((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR;�s
cKstj|j|�S(N(R<tScaleR>(RRb((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyRscCs/|j�}|j|dddddt�dS(NR?idg������-@g333333.@R3(RtcheckFloatParamR�(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt	test_fromscCs,|j�}|j|ddddd�dS(NR@i�gffffff`@g33333�`@t5i(RtcheckPixelsParam(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_lengthsc	Cs2|j�}|j|ddddddt�dS(NRAi,g������-@g333333.@i����R3(RRDR�(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_tosc	Cs2|j�}|j|ddddddt�dS(NR-i,g������-@g333333.@i����R3(RRDR�(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR/scs�dddg�|jjd�fd��}d|jd<d|jd<d|jd<|j��dddg�|jjdd	dd
�|jjdddd�|jjdd�|j��dS(
Nis<<RangeChanged>>cs
�j�S(N(tpop(R�(tfailure(s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�Ri
R?tfrom_iRAiiii����(RBR�R�R(Rtfuncid((RKs9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_custom_events



cCs|jrd�}nt}|jj�}|j|jj|d�|jd�|j||jjdd��||jd��|j|jj�|jd�d|jd<|j|jj�|jd�|jtj|jjdd�|jtj|jjdd�dS(NcSs|S(N((R�((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�(RiRAR?R-iR(	RtfloatRBRDRR�RFRGR(RR3tscale_width((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_get&s	&2 
 cCs�|jrd�}nt}||jd�}|d}|jj|�|j||jj��|�||jd�}|jj|d�|j||jj��|�tj|j�}||jd<|j|d�|j||jj��|j��|j||jj��|d�~|d|jd<|j||jj��|d�|j||jj��||jd��|j||jjd	d	��|�|j||jj|jj	�d	��|�|j
tj|jjd�dS(
NcSs|S(N((R�((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�:RRAi
R?iR�iR-i(
RRORBRRR�RGt	DoubleVarR>RDRFRRH(RR3tmaxtnew_maxtmintvar((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_set8s,	

%##,%.(RR�R]R?R@RR.R`RAR-R�(R4R5RcRRZR/R;RRERHRIR/RNRQRW(((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR>�s								tProgressbarTestcBsPeZdZeZdZd�Zd
�Zd�Zd�Z	d�Z
d�ZRS(RR]RR@tmodetmaximumtphaseR.R`R-R�RcKstj|j|�S(N(R<tProgressbarR>(RRb((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyRfscCs)|j�}|j|dddd�dS(NR@gfffffY@g�����YL@t2i(RRG(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyRHisc	Cs2|j�}|j|ddddddt�dS(NRZgfffff�b@g�����lS@ii����R3(RRDR�(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_maximummscCs&|j�}|j|ddd�dS(NRYtdeterminatet
indeterminate(RRv(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt	test_modeqscCsdS(N((R((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_phaseusc	Cs2|j�}|j|ddddddt�dS(NR-gfffff�b@g�����lS@ii����R3(RRDR�(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR/ys(RR]RR@RYRZR[R.R`R-R�(R4R5RcRRZR/RRHR^RaRbR/(((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyRX\s					R�s"ttk.Scrollbar is special on MacOSXt
ScrollbarTestcBseZdZdZd�ZRS(	RR�R]RR.R`RcKstj|j|�S(N(R<t	ScrollbarR>(RRb((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�s(RR�R]RR.R`(R4R5RcR/R(((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyRcstNotebookTestcBsqeZdZd�Zd�Zd	�Zd
�Zd�Zd�Zd
�Z	d�Z
d�Zd�Zd�Z
RS(RR]R^R!R.R`R7cCs�tt|�j�|jdd�|_tj|j�|_tj|j�|_	|jj
|jdd�|jj
|j	dd�dS(NR!iR8R�R#(R:ReR;RtnbR<R{R>tchild1RR(R((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR;�scKstj|j|�S(N(R<tNotebookR>(RRb((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�scCs�|jjd�|jj|j�|jtj|jj|j�|j	|jj
d�d�|jj|j�|j	|jj
d�d�|jj|j�|j
|jjd��|jj|jdd�|jj�|jj�tjdkrd}nd	}|j	|jj|�|jjd��xhtd
dd
�D]G}y*|jjd|dd�dkrtPnWqEtjk
r�qEXqEW|jd
�dS(NiR�iR�R8R�R�s@20,5s@5,5iids@%d, 5sTab with text 'a' not found(RfRthideRRFRGRttabRgRtindexRtselectR�R?R@R�R�trangeRHtfail(Rttb_idxti((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_tab_identifiers�s,

	("cCs�|jtj|jjd�|jtj|jjd�|jtj|jjd�|jtj|jjd�|jtj|jjtj|j	�dd�|jj
�}|jj|j�|jj|j�|j|jj
�|�tj|j	�}|jj|dd�|jj
�}|jj
d�}|jj
|j�}|jj|j�|jj|j�|j|jj
�|�|j|jj
|j�|�|jt|j�|jj
�|�|j|jj
d�|d�dS(	Ni����ROtunknowntoptionR8RR�i(RFRGRRfRiRHRR<R{R>ttabsRgRRkRR�(RRtRtcurrtchild2_index((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_add_and_hidden�s*'&cCs+|jtj|jjd�|jtj|jjd�|jtj|jjd�|jj�}|jj|j�}|jj|j�|j	t
|j�|jj��|jt|�dt|jj���|jj
|j�|j|jj|j�d�|j||jj|j��dS(Ni����ROi(RFRGRRfRRHRtRkRgtassertNotInR�RR�RR((RRttchild1_index((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�s")cCs�|jtj|jjd�|jtj|jjd�|j|jjd�t�|j|jj|j	�d�|j|jj|j
�d�|j|jjd�d�dS(Ni����R�iii(RFRGRRfRkRHR R)RRgR(R((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_index�scCs�|jj�}|jjd|d�|j|jj�|d|df�|jj|j|j�|j|jj�|�|jjd|j�|j|jj�|d|df�|jjdd�|j|jj�|�|jtj|jjd|d�|jtj|jjd|d�t	j
|j�}|jjd|�|j|jj�|dt|�|df�|jj
|�|j|jj�|�|jj|j|�|j|jj�t|�f|�|jj
|�|jtj|jjd|�|jtj|jjd|�|jtj|jjdd�|jtj|jjdd�|jtj|jjdd�dS(NiiR�ii����(RfRtR�RRgRRFRGRR<R{R>R�RRH(RRtR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�s0''##0&cs�|jj�|jj�g�g�|jjd�fd��|jjd�fd��|j|jj�t|j��|jj|j�|j	��|j|jj�t|j��|jj
�|j	��dS(Ns<Unmap>cs
�jt�S(N(R�RU(R�(R�(s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�Rs<<NotebookTabChanged>>cs
�jt�S(N(R�RU(R�(ttab_changed(s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�R(RfR?R@RgR�RRlR�RR�R�(R((R�R{s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_selects

"
"
cCs|jtj|jjd�|jtj|jjd�|jtj|jjd�|j|jj|j�t�|j	|jj|jdd�d�|j	|jj|jd�d�|jj|jdd�|j	|jj|jdd�d�|j	|jj|jd�d�dS(Ni����tnotabR8R�tabc(
RFRGRRfRjRHR RgR!R(R((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_tab(s%"%cCsb|jt|jj��d�|jj|j�|jj|j�|j|jj�d�dS(Ni((RR�RfRtRRgR(R((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt	test_tabs6scCs�|jj�|jj�|jjd�t|jdd�|jj�|jjd�|j|jj�t|j	��|jj�|jjd�|j|jj�t|j
��|jj�|jjd�|j|jj�t|j	��|jj|j
dddd�|jj�|jj�t|jdd�t
jdkrh|jjd	�n|jjd
�|j|jj�t|j
��dS(Niis
<Control-Tab>s<Shift-Control-Tab>R8R�RgR�s
<Option-a>s<Alt-a>(RfR?R@RlR	tfocus_forceR�RR�RRgRjtenable_traversalR�R�(R((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_traversal?s*


"
"
"

(RR]R^R!R.R`R7(R4R5RcR;RRqRwRRzRR|RR�R�(((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyRe�s						
	!				tTreeviewTestcBs�eZd#Zd�Zd
�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd�Zd�Z
d�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd �Zd!�Zd"�ZRS($RtcolumnsR]tdisplaycolumnsR^R!t
selectmodeR�R.R`R�tyscrollcommandcCs,tt|�j�|jdd�|_dS(NR!i(R:R�R;Rttv(R((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR;cscKstj|j|�S(N(R<tTreeviewR>(RRb((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyRgscCsa|j�}|j|dddd
�|j|dd�|j|dtdkrVd
nd	�dS(NR�sa b cR"R�R#RiiR(R�R#R(R�R#R(ii((RR,R(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_columnsjs
cCs�|j�}d|d<|j|dddd�|j|dd�|j|dddd�|j|dd�|j|ddd
d�|j|ddd
d�|j|ddd
d�dS(NR�R#RR�R�sb a cR"s#alliiiRRsInvalid column index disColumn index 3 out of boundsi����sColumn index -2 out of bounds(R�R#R(R#R�R(R#R�R(s#all(iii(R�R#R(iii(ii����(RR,R(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_displaycolumnsqs
c	CsN|j�}|j|ddddddt�|j|ddddt�dS(	NR^idi����it3cR3g�����LY@gfffff�Y@(RRGR�R(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR��s"cCs)|j�}|j|dddd�dS(NR�R�tbrowsetextended(RRv(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_selectmode�scCs�|j�}|j|dddd�|j|dd�|j|dd�|j|dddd	�|j|dddd
�dS(NR�s
tree headingsR"ttreetheadings(R�R�(R�R�(R�R�(R�(R�(RR,(RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR��scCsW|jj�|j|jjd�d�|jj�|jj�|jjdd�}|jj�}|j|�|jj|d�}|j	|�dg|jd<|jj
ddd�|jj|dd�}|jj
ddd�}|jst
|�}n|j|d|d|�|jj|d�}|j|jj|�d�dS(	NRR�ittestR�R7i2s#0(R�R?RR�R@R�R�tget_childrenR�R�tcolumnRHRR)(Rtitem_idtchildrenR�tbbox_column0t
root_widthRg((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR��s$




	cCs>|j|jj�d�|jjdd�}|j|jj�t�|j|jj�d|�|jjdd�}|jjdd�}|jj|||�|j|jj|�||f�|jtj	|jj||�|jj|�|j|jj|�d�|jjd�|j|jj�d�dS(NRR�i((((
RR�R�R�R ttupletset_childrenRFRGR(RR�RR((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_children�s"cCsi|j|jjd�t�|jrJ|j|jjddd�t�n|jjddd�|j|jjdd�|jr�dnd�|j|jjddd�|jr�dnd�|jt	j
|jjddd�|jt	j
|jjd�idd	6id
d6id
d6id
d6id
d
6g}x-|D]%}|jt	j
|jjd|�q<WdS(Ns#0R7i
t10tidtXR�s
some valuetunknown_optiontwrongtstretchR�tminwidth(R R�R�R!RRHR)RRFRGR(Rtinvalid_kwsRM((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_column�s	%"$
cCs?|jtj|jjd�|jjdd�}|jj|d�}|j|jj�|f�|j|jj|�|f�|jj|�|j|jj��|jtj|jj	|dd�|jjdd�}|jjdd�}|j|jj�||f�|jj||�|j|jj��dS(Ns#0RR�(
RFRGRR�R�R�RR�R�treattach(RR�titem2titem1((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_delete�scCs0|jjdd�}|jj|d�}|jj�}|jj�|j||jj��|j|jj�|f�|j|jj|�|f�|jj|�|j|jj��|jj|dd�|j|jj�|f�|j|jj|�|f�|jj|dd�|j|jj�||f�|j|jj|�d�|jt	j
|jjddd�|jt	j
|jjd�|jt	j
|jj|dd�|jt	j
|jj|dd�|jj||�|j|jj�d�|j|jj|�d�dS(	NRR�tnonexistenttotherparentR�((((R�R�R�tdetachRR�R�tmoveRFRGR(RR�R�tprev((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_detach_reattach�s4
cCst|j|jjd�t�|j|jjd�t�|j|jji�t�|jtj|jjd�dS(Nt	somethingR(	RR�texistsR�RURFRGRRH(R((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_exists'scCs�|j|jj�d�|jjdd�}|jj|�|j|jj�|�|jj|�|j|jj�d�|jtj|jjd�dS(NRR�RO(RR�R�R�R�RFRGR(RR�((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_focus2scCs�|j|jjd�t�|jjddd�|j|jjdd�d�|j|jjddd�d�|jtj|jjddd�|jtj|jjddd�dS(Ns#0R8ROR�R�i(	R R�theadingR!RRHRFRGR(R((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_headingAs"cs�fd�}g��jj��jj��jjdd�fd���jjddd��jj�|dd��s��jd�ng��jjj}�jjddt	�jjddd����j|�jjj�|dd��s�jd�ndS(	Ncs$t�j||��jj�dS(N(R	R�R�(R�R�(R(s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pytsimulate_heading_clickRss#0R�cs
�jt�S(N(R�RU((R�(s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�ZRR7idis>The command associated to the treeview heading wasn't invoked.(R�R?R@R�R�R�RnRt_tclCommandsR�RHR(RR�tcommands((RR�s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_heading_callbackQs"



.
cCs�|jtj|jjd�|j|jjd�d�|jjdd�}|jjdd�}|jj|d�}|jj|d�}|j|jj|�d�|j|jj|�d�|j|jj|�d�|j|jj|�d�|jj|dd�|j|jj|�d�|j|jj|�d�|jj|�|j|jj|�d�|jj|�|j|jj|�d�|jj	|�|jtj|jj|�dS(NtwhatRiR�i(
RFRGRR�RkRR�R�R�R�(RR�R�tc1tc2((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyRzss&cCs�|jtj|jjdd�|jtj|jjdddd�|jtj|jjdddd�|j|jj|jjdddt���|j|jj|jjdddt���|jtj|jjdd�|jjddd�}|j	|d�|jtj|jjddd�|jtj|jjddt
d��d}|jjddd	|f�}|j	|jj|d	�|jr�|fn|�|j	|jj|d	d�|jr�|fn|�|jj|d	|jj|jj|d	d���|j	|jj|d	d�|jr@|fn|�|j|jj|�t�|jj|d	d�|j|jj|d	d��|jjddd
dd|g�}|j	|jj|d
d�|jr�d
d|fnd|�|jj|d
g�|j|jj|d
d��|jj|d
d�|j	|jj|d
d�|jrodnd�|jjddd	dd||ff�}|j	|jj|d	d�|jr�dd||ffn
d||f�|j	|jj|jjdddd�dd�d�|j	|jj|jjddd|�dd�|�|jjddd�}|j	|d�|jjddd�}|j	|d�|jtj|jjddt�|jtj|jjddd�dS(NR�R�Rtopentpleasetmiddles
first-itemuábaR�ttagsiiRRs1 2 %ss1 2sa b cs%s %ss{a b c} {%s %s}R8s
Label hereiR#gs0.0(ii(RR(RFRGRR�R�R�R�RUR�RRtitemRRHR>t	splitlistR R!(RtitemidR-R�((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_insert_item�sh..
4$!!"cCs�|jtj|jjd�|jtj|jjd�|jtj|jjd�|jtj|jjd�|jjdd�}|jjdd�}|jj|d�}|jj|d�}|jj|d�}|j	|jj
�d
�|jj||f�|j	|jj
�||f�|jj|�|j	|jj
�|f�|jj||f�|j	|jj
�|||f�|jj|�|j	|jj
�||||f�|jj||f�|j	|jj
�|||f�|jj|�|j	|jj
�||f�|jj||f�|j	|jj
�||f�|jj|�|j	|jj
�|f�|jjdddd�|jjd�|j	|jj
�d�|jjdddd�|jjd�|j	|jj
�d�trl|jjdddtd��|jjtd��|j	|jj
�td�f�n|jjdddd�|jjd�|j	|jj
�tr�td	�ndf�dS(
NR�RR�R�swith spacess{braces
unicode\u20acsbytes€sbytes\u20ac((swith spaces(s{brace(
RFRGRR�t
selection_sett
selection_addtselection_removetselection_toggleR�Rt	selectionRR(RR�R�R�R�tc3((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_selection�sR"%"%cCsPddg|jd<|jjdddddg�}|j|jj|�idd6dd6�|jj|dd�|j|jj|dd�|jr�dnd	�dg|jd<|j|jj|�idd6�|jj|dd�|j|jj|d
d�d�|j|jj|dd�|jr:dnd�|jj|dd�|j|jj|d�|jr~dnd
�|j|jj|dd�|jr�dnd�|j|jj|�|jr�idd6n
id
d6�|jtj	|jj|d�|jtj	|jj|dd�|jtj	|jjd�dS(NtAtBR�RR�R�R�R#sa aR�sb ai{t123s123 atnotme(R�R�(R#R�(i{R�(
R�R�RRR�RHRRFRGR(RR�((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyRWs,!*#"$"c	s�g�|jjddddg�}|jjddddg�}|jjdd�fd��|jjdd�fd��|jj�|jj�|jj�t�}t�}xqtd	d
d�D]]}t|�dkr�Pn|jj	|�}|r�||kr�|j
|�|j
|�q�q�W|jt|�d�x!|D]}t|jd	|�qJW|jt��d
�xAt
�ddd��ddd��D]}|j|d�q�WdS(NRR�R�tcalls<ButtonPress-1>cs
�jd�S(Ni(R�(R�(tevents(s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�;Rs<ButtonRelease-1>cs
�jd�S(Ni(R�(R�(R�(s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�=Riidi
iii(ii(R�R�ttag_bindR?R@R�RRmR�tidentify_rowRRR	tzip(	RR�R�tpos_ytfoundRpR�R�R�((R�s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_tag_bind6s2


		

0cCs�|jt|jj�|jtj|jjddd�|jjddd�|jt|jjdd��d�|jt|jjddd��d�|j	|jjd�t
�dS(NR�tskytblueR�(RFt	TypeErrorR�t
tag_configureRGRRR�RHR R!(R((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_tag_configureXs
!cCs�|jjddddddg�}|jjddddddg�}|jt|jj�|jt|jjdd	�|j|jjd|��|j|jjd|��|j|jjd|��|j|jjd|��|j|jjd
|��|j|jjd
|��|j|jjd�|f�|j|jjd�|f�|j|jjd
�d�dS(NRR�R8sItem 1R�ttag1sItem 2ttag2snon-existingttag3((	R�R�RFR�ttag_hasRR�R�R(RR�R�((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_tag_hasds$$(RR�R]R�R^R!R�R�R.R`R�R�(R4R5RcR;RR�R�R�R�R�R�R�R�R�R�R�R�R�R�RzR�R�RWR�R�R�(((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�[s4													*				"		M	6	!	"	t
SeparatorTestcBseZdZdZd�ZRS(RR]RR.R`RcKstj|j|�S(N(R<t	SeparatorR>(RRb((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR|s(RR]RR.R`(R4R5RcR/R(((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�tstSizegripTestcBseZdZd�ZRS(RR]R.R`cKstj|j|�S(N(R<tSizegripR>(RRb((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�s(RR]R.R`(R4R5RcR(((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyR��st__main__(5tunittesttTkinterRGRR<ttest.test_supportRRRRR�ttest_functionsRtsupportRRRR	twidget_testsR
RRR
RRRRRtTestCaseR6RYR[RdR~R�R�R�R�R�R
R,R4R>RXtskipIfR�RcReR�R�R�t	tests_guiR4(((s9/usr/lib64/python2.7/lib-tk/test/test_ttk/test_widgets.pyt<module>sr"":
';0�|�3j"
���	

Zerion Mini Shell 1.0