%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python2.7/lib-tk/test/test_ttk/
Upload File :
Create Path :
Current File : //usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyc


Nac@sUddlZddlZddlmZddlZddlmZmZmZm	Z	ddl
Z
ddlmZddl
mZmZmZmZddlmZmZmZmZmZmZmZmZeddefd	YZd
eejfdYZdeefd
YZeedeejfdYZeedeejfdYZ defdYZ!eede!ejfdYZ"eede!ejfdYZ#eede!ejfdYZ$eeedeejfdYZ%eeede%ejfdYZ&eeedeejfdYZ'eed e!ejfd!YZ(d"e!ejfd#YZ)eed$eejfd%YZ*eed&eejfd'YZ+ej,e
j-d(kd)eed*eejfd+YZ.eeed,eejfd-YZ/eed.eejfd/YZ0eed0eejfd1YZ1eed2eejfd3YZ2e#e$e&e%ee e"e)e/e'e+e(e*e.e1e2e0efZ3e4d4krQee3ndS(5iN(tTclError(trequirestrun_unittestthave_unicodetu(t
MockTclObj(tAbstractTkTestttcl_versiontget_tk_patchleveltsimulate_mouse_click(tadd_standard_optionstnoconvtnoconv_methtAbstractWidgetTesttStandardOptionsTeststIntegerSizeTeststPixelSizeTeststsetUpModuletguitStandardTtkOptionsTestscBs#eZdZdZdZRS(cCs|j}|j|ddd}td
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((s=/usr/local/lib/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|dddddS(Ntpaddingitexpectedt0it5it6it7it8t5pt6pt7pt8pR(R#(R$(ii(R$R%(iii(R$R%R&(iiii(R$R%R&R'(R(R)R*R+((Rt
checkParam(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_paddingscCs|j}|j|ddd}t|drQdt|dj}n|j|ddd||jdd}|j|d	ddS(
NtstyleRsLayout Foo not foundtdefault_orientsLayout %s.Foo not foundRRRR(RRthasattrtgetattrttitleR(RRRR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_style+s(t__name__t
__module__R R-R3(((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRs	
	t
WidgetTestcBs)eZdZdZdZdZRS(s,Tests methods available in every ttk widget.cCsRtt|jtj|jdddd|_|jj|jjdS(NtwidthittexttText(	tsuperR6tsetUptttktButtontrootRtpacktwait_visibility(R((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR;=s!
cCs|jj|j|jj|jjd|jjdd|j|jjddd|jtj|jjdd|jtj|jjdd|jtj|jjdddS(NitlabeliRi(
Rtupdate_idletasksRtidentifytwinfo_widthtwinfo_heighttassertRaisesttkinterRtNone(R((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_identifyDs
cCs|j|jjd
|j|jjdgt|j|jjdgd|j|jjdgd|j|jjddgd
|j|jjddgd|j|jjddgdd}|j|jjdg|didd6didd6f|jj}|jtj|jjd	g|jtj|jjdd	g|j||jj|jjddg|j|jjddS(Ns	!disabledtdisabledtactives!activec[s
||fS(N((targ1tkw((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_cbasthittheretmsgtbadstate((s	!disabled((s!activeRJ(((RK(RRtstatetinstatetTrueRFRGR(RRNt	currstate((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_widget_stateQs(""	

(R4R5t__doc__R;RIRW(((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR6:s		
tAbstractToplevelTestcBseZeZRS((R4R5Rt_conv_pixels(((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRYust	FrameTestc	BseZd
Zd	ZRS(tborderwidthRtcursortheightR!treliefR.t	takefocusR7cKstj|j|S(N(R<tFrameR>(Rtkwargs((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRs(	R\RR]R^R!R_R.R`R7(R4R5tOPTIONSR(((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR[ystLabelFrameTestc
Bs)eZdZd
ZdZdZRS(R\RR]R^tlabelanchortlabelwidgetR!R_R.R`R8t	underlineR7cKstj|j|S(N(R<t
LabelFrameR>(RRb((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRscCs]|j}|j|ddddddddd	d
ddd
dd|j|dddS(NRetetentestntnetnwtstsetswtwtwntwsRs!Bad label anchor specification {}tcenter(RtcheckEnumParamR(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_labelanchors
'cCsQ|j}tj|jdddd}|j|d|dd|jdS(NR8tMupptnametfooRfR"s.foo(RR<tLabelR>R,tdestroy(RRRA((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_labelwidgets(
R\RR]R^ReRfR!R_R.R`R8RgR7(R4R5RcRRwR}(((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRds		tAbstractLabelTestcBs,eZdZdZdZdZRS(cCstjd|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(RRKR(RRKR(RGt
PhotoImageR>R,R(RRRytimageR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pytcheckImageParamscCs8|j}|j|ddddddddd	
dS(
NtcompoundtnoneR8RRuttoptbottomtlefttright(RRv(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_compoundscCs)|j}|j|dddddS(NRSRKRJtnormal(RtcheckParams(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_statescCs)|j}|j|dddddS(NR7iini(RR(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_widths(R4R5RRRR(((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR~s	
		t	LabelTestcBs&eZdZeZdZdZRS(tanchort
backgroundR\RRR]tfontt
foregroundRtjustifyR!R_RSR.R`R8ttextvariableRgR7t
wraplengthcKstj|j|S(N(R<R{R>(RRb((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRscCs#|j}|j|dddS(NRs3-Adobe-Helvetica-Medium-R-Normal--*-120-*-*-*-*-*-*(RR,(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt	test_fonts(RRR\RRR]RRRRR!R_RSR.R`R8RRgR7R(R4R5RcRRZRR(((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRs	t
ButtonTestcBs)eZdZdZdZdZRS(RtcommandRR]tdefaultRR!RSR.R`R8RRgR7cKstj|j|S(N(R<R=R>(RRb((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRscCs)|j}|j|dddddS(NRRRKRJ(RRv(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_defaultscsBgtj|jdfd}|j|jdS(NRcs
jdS(Ni(tappend((tsuccess(s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt<lambda>R(R<R=R>tinvoket
assertTrue(Rtbtn((Rs=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_invokes!
(RRRR]RRR!RSR.R`R8RRgR7(R4R5RcRRR(((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRs		tCheckbuttonTestcBs2eZdZdZdZdZdZRS(RRRR]RtoffvaluetonvalueR!RSR.R`R8RRgtvariableR7cKstj|j|S(N(R<tCheckbuttonR>(RRb((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRscCs,|j}|j|ddddddS(NRigffffff@Rs
any string(RR(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_offvaluescCs,|j}|j|ddddddS(NRigffffff@Rs
any string(RR(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_onvaluescsgfd}tj|jd|}|j|jd
|jtj|jj	|d|j
}|j|d|j|d|jj	|d|jd|d<|j
}|jt
||jtd|j|d	|jj	|ddS(NcsjddS(Niscb test called(R((R(s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pytcb_tests
Rt	alternateRscb test calledRRiR(R(R<RR>RRSRFRGRttktglobalgetvarRRtassertFalsetstrtassertLessEqualtlen(RRtcbtntres((Rs=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRs"



(RRRR]RRRR!RSR.R`R8RRgRR7(R4R5RcRRRR(((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRs			t	EntryTestcBszeZdZdZdZdZdZdZdZdZ	dZ
dZdZdZ
dZRS(RRR]texportselectionRRtinvalidcommandRtshowRSR.R`RtvalidatetvalidatecommandR7txscrollcommandcCs&tt|j|j|_dS(N(R:RR;Rtentry(R((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR;#scKstj|j|S(N(R<tEntryR>(RRb((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR'scCs |j}|j|ddS(NR(RtcheckCommandParam(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_invalidcommand*scCsI|j}|j|dd|j|dd|j|dddS(NRt*Rt (RR,(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt	test_show.scCs)|j}|j|dddddS(NRSRJRtreadonly(RR(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR4sc	Cs2|j}|j|ddddddddS(NRtalltkeytfocustfocusintfocusoutR(RRv(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_validate9scCs |j}|j|ddS(NR(RR(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_validatecommand>scCsU|j|jjd|jtj|jjd|jtj|jjddS(Nitnoindex(tassertIsBoundingBoxRtbboxRFRGRRH(R((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt	test_bboxCscCs|jj|jj|jjtjdkrX|j|jjdddn|j|jjddd|j|jjddd|j	t
j|jjdd|j	t
j|jjdd|j	t
j|jjdddS(NtdarwinittextareasCombobox.buttoniR(RsCombobox.button(
RR?R@RBtsystplatformtassertInRCRRFRGRRH(R((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRIIs



cs#gfd}d|jd<d|jd<||jd<|jj|jd|jd<|jj|jtd||jd<d	|jd<|jj|jtdd|jd<|jj|jtdt|jd<|jtj|jjdS(
Ncs
jtS(N(RRU((R(s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR]RRRcSstS(N(tFalse(((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR`RRRRicSstS(N(RU(((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRkR(	RRRRRRURFRGR(Rttest_invalid((Rs=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_validation_options[s&










csgfd}d|jd<|jj|df|jd<|jjdd|jjdd|jttg|j|jjddS(	NcsDd|jkodkns3jttSjttS(Ntatz(tlowerRRRU(t	to_insert(t
validation(s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRys
"

RRs%SRtendiR(RtregistertinsertRRRUtget(RR((Rs=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_validationws
cCs$d}|jj|df|jd<|jjdd|j|jjt|j|jjd|jjdd|j|jjd|jjdd|j|jjt	|j|jjd|jjd
|j|jjt|j|jjd
dS(NcSs;x4|D],}d|jko*dknstSqWtS(NRR(RRRU(tcontenttletter((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRs
"s%PRRtavocadoiRta1btinvalidi((R((
RRRRRRURStdeleteRR(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_revalidations	(RRR]RRRRRRRSR.R`RRRR7R(R4R5RcR;RRRRRRRRIRRR(((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRs"											tComboboxTestcBsMeZdZdZdZdZdZdZdZdZ	RS(RRR]RRRR^RRtpostcommandRRSR.R`RRRtvaluesR7RcCs&tt|j|j|_dS(N(R:RR;Rtcombo(R((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR;scKstj|j|S(N(R<tComboboxR>(RRb((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRsc	Cs2|j}|j|ddddddddS(NR^idgLY@gfffffY@iit1i(RR(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_heightscCs`|jj}|jjdd|ddd|jjdd|ddd|jjdS(Ns<ButtonPress-1>txitys<ButtonRelease-1>(RRDtevent_generateRB(RR7((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt_show_drop_down_listboxs  csgdg|jd<|jjdfd|jj|jj|jj}|j|jj|jjd|jj|jdS(NiRs<<ComboboxSelected>>cs
jtS(N(RRU(tevt(R(s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRRs<Return>(	RtbindR?R@RERtupdateRR(RR^((Rs=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_virtual_events




cs~gfd|jd<|jj|jj|j|jd|jd<|j|jtddS(Ncs
jtS(N(RRU((R(s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRRRRi(RR?R@RRRR(R((Rs=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_postcommands





c	sfd}jjdtd#kr1d$nd|ddjjdddd%jjdd&jjdd'jjdtd(krd)nddddgjd<jjd|ddjjd|ddjjd|ddjjdd*jd<|ddjjddddgjjdjrd+nddddgjd<jjdjrd,ndddd gjd<jjdjrd-nd!jt	j
jjtjdjt	j
jjdtj
jddddg}j|djrd.nd"|jdS(/Ncs6jjj|jjj|dS(N(RRRtcurrent(tgetvaltcurrval(R(s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pytcheck_get_currentsRiiRismon tue wed thurR"tmonttuetwedtthuri*gQ	@s
any stringRitciitdit1t2s1 {} 2sa bsa	bsa
bs{a b} {a	b} {a
b}sa\tbs"a"s} {sa\\tb {"a"} \}\ \{s1 2 {}(ii((RRRR(RRRR(i*gQ	@Rs
any string(ii((iiRi(RRR(sa bsa	bsa
b(sa\tbs"a"s} {(RRR(RRRR,tsetRt	configuretwantobjectsRFRGRRR<RR>R|(RRtcombo2((Rs=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_valuessL
(




!
(RRR]RRRR^RRRRRSR.R`RRRRR7R(
R4R5RcR;RRRRRR	(((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRs						tPanedWindowTestcBsVeZdZdZdZd	Zd
ZdZdZd
Z	dZ
RS(RR]R^torientR.R`R7cCs&tt|j|j|_dS(N(R:R
R;Rtpaned(R((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR;&scKstj|j|S(N(R<tPanedWindowR>(RRb((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR*scCs|j}|jt|ddd}tdkrDd	}n|j|dd
d||jdd
}|jt|dd
dS(
NRtverticals"attempt to change read-only optioniiiRis"Attempt to change read-only optiont
horizontalR(iiiRi(RRRRR(RRRR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_orient-s	cCsztj|j}tj|}|jtj|jj||j|jtj|j}tj|}|jtj|jj||j|jtj|j}|jj||jtj|jj|tj|j}|jj||j	|jj
d|jj
d|jtj|jj
d|j|j|jtj|jj
ddS(Niii(R<R{RRFRGRtaddR|R>Rtpane(RRAtchildt
good_childtother_child((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_add8s(



(

cCs|jtj|jjd|jtj|jjd|jjtj|j	|jjd|jtj|jjddS(Ni(
RFRGRRtforgetRHRR<R{R>(R((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_forgetTs
cCs|jtj|jjdd|jtj|jjdd|jtj|jjddtj|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|fdS(NiR(RFRGRRRRHR<R{R>RtpanesR(RRtchild2tchild3R((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_insert]s*++"cCs
|jtj|jjdtj|j}|jj||j	|jjdt
|j|jjddd|j
rdnd|j|jjdd|j
rdnd|j|jjd|jjt||jtj|jjddddS(NitweightR#t	badoptiont	somevalue(RFRGRRRR<R{R>RtassertIsInstancetdictRRHRR(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt	test_panes.cCsi|jtj|jjd|jtj|jjd|jtj|jjdtj|jdd}|jj|dd|jtj|jjdtj|jdd}|jj||jtj|jjd|jj	dt
d	d
|jj|jjd}|jjdd|j||jjd|j
|jjdtdS(NRiR8RRitbtexpandtfilltbothi(RFRGRRtsashposRHR<R{RR?RUR@tassertNotEqualR tint(RRRtcurr_pos((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_sashposs
(RR]R^RR.R`R7(R4R5RcR;RRRRRR"R+(((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR
s							#	tRadiobuttonTestcBs)eZdZdZdZdZRS(RRRR]RR!RSR.R`R8RRgtvalueRR7cKstj|j|S(N(R<tRadiobuttonR>(RRb((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRscCs,|j}|j|ddddddS(NR-igffffff@Rs
any string(RR(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_valuescsgfd}tj|j}tj|jd|d|dd}tj|jd|d|dd}|jrd}nt}|j}|j|d|j||d|j	|j|j	||j
j|d|jd	|d<|j}|jt
|d	|jtd|j||d|j	|j|j	||j
j|d|jt
|dt
|ddS(
NcsjddS(Niscb test called(R((R(s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRs
RRR-iicSs|S(N((R((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRRscb test calledR(RGtIntVarR>R<R.RR)RRRRRRRRR(RRtmyvarRtcbtn2tconvR((Rs=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRs0	 

 (RRRR]RR!RSR.R`R8RRgR-RR7(R4R5RcRR/R(((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR,s		tMenubuttonTestcBs)eZdZdZdZdZRS(RRR]t	directionRtmenuR!RSR.R`R8RRgR7cKstj|j|S(N(R<t
MenubuttonR>(RRb((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRscCs/|j}|j|dddddddS(NR5tabovetbelowRRtflush(RRv(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_directionscCsH|j}tj|dd}|j|d|dt|jdS(NRyR6R3(RRGtMenuR,RR|(RRR6((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt	test_menus(RRR]R5RR6R!RSR.R`R8RRgR7(R4R5RcRR;R=(((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR4s		t	ScaleTestcBskeZdZeZdZdZd
ZdZdZ	dZ
dZdZdZ
dZRS(RRR]tfromtlengthRR.R`ttoR-RRcCs@tt|j|j|_|jj|jjdS(N(R:R>R;RtscaleR?R(R((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR;s
cKstj|j|S(N(R<tScaleR>(RRb((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRscCs/|j}|j|dddddtdS(NR?idg-@g333333.@R3(RtcheckFloatParamR(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt	test_fromscCs,|j}|j|ddddddS(NR@igffffff`@g33333`@t5i(RtcheckPixelsParam(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_lengthsc	Cs2|j}|j|ddddddtdS(NRAi,g-@g333333.@iR3(RRDR(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_tosc	Cs2|j}|j|ddddddtdS(NR-i,g-@g333333.@iR3(RRDR(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR/scsdddg|jjdfd}d|jd<d|jd<d|jd<|jdddg|jjdd	dd
|jjdddd|jjdd|jdS(
Nis<<RangeChanged>>cs
jS(N(tpop(R(tfailure(s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRRi
R?tfrom_iRAiiii(RBRRR(Rtfuncid((RKs=/usr/local/lib/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|jdd|jd<|j|jj|jd|jtj|jjdd|jtj|jjdddS(NcSs|S(N((R((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR(RiRAR?R-iR(	RtfloatRBRDRRRFRGR(RR3tscale_width((s=/usr/local/lib/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|jjddS(
NcSs|S(N((R((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR:RRAi
R?iRiR-i(
RRORBRRRRGt	DoubleVarR>RDRFRRH(RR3tmaxtnew_maxtmintvar((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_set8s,	

%##,%.(RRR]R?R@RR.R`RAR-R(R4R5RcRRZR/R;RRERHRIR/RNRQRW(((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR>s								tProgressbarTestcBsPeZdZeZdZdZd
ZdZdZ	dZ
dZRS(RR]RR@tmodetmaximumtphaseR.R`R-RRcKstj|j|S(N(R<tProgressbarR>(RRb((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRfscCs)|j}|j|dddddS(NR@gfffffY@gYL@t2i(RRG(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRHisc	Cs2|j}|j|ddddddtdS(NRZgfffffb@glS@iiR3(RRDR(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_maximummscCs&|j}|j|ddddS(NRYtdeterminatet
indeterminate(RRv(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt	test_modeqscCsdS(N((R((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_phaseusc	Cs2|j}|j|ddddddtdS(NR-gfffffb@glS@iiR3(RRDR(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR/ys(RR]RR@RYRZR[R.R`R-R(R4R5RcRRZR/RRHR^RaRbR/(((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRX\s					Rs"ttk.Scrollbar is special on MacOSXt
ScrollbarTestcBseZdZdZdZRS(	RRR]RR.R`RcKstj|j|S(N(R<t	ScrollbarR>(RRb((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRs(RRR]RR.R`(R4R5RcR/R(((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRcstNotebookTestcBsqeZdZdZdZd	Zd
ZdZdZd
Z	dZ
dZdZdZ
RS(RR]R^R!R.R`R7cCstt|j|jdd|_tj|j|_tj|j|_	|jj
|jdd|jj
|j	dddS(NR!iR8RR#(R:ReR;RtnbR<R{R>tchild1RR(R((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR;scKstj|j|S(N(R<tNotebookR>(RRb((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRscCs|jjd|jj|j|jtj|jj|j|j	|jj
dd|jj|j|j	|jj
dd|jj|j|j
|jjd|jj|jdd|jj|jjtjdkrd}nd	}|j	|jj||jjdxhtd
dd
D]G}y*|jjd|dddkrtPnWqEtjk
rqEXqEW|jd
dS(NiRiRR8RRs@20,5s@5,5iids@%d, 5sTab with text 'a' not found(RfRthideRRFRGRttabRgRtindexRtselectRR?R@RRtrangeRHtfail(Rttb_idxti((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_tab_identifierss,

	("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|ddS(	NiROtunknowntoptionR8RRi(RFRGRRfRiRHRR<R{R>ttabsRgRRkRR(RRtRtcurrtchild2_index((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_add_and_hiddens*'&cCs+|jtj|jjd|jtj|jjd|jtj|jjd|jj}|jj|j}|jj|j|j	t
|j|jj|jt|dt|jj|jj
|j|j|jj|jd|j||jj|jdS(NiROi(RFRGRRfRRHRtRkRgtassertNotInRRRRR((RRttchild1_index((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRs")cCs|jtj|jjd|jtj|jjd|j|jjdt|j|jj|j	d|j|jj|j
d|j|jjdddS(NiRiii(RFRGRRfRkRHR R)RRgR(R((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_indexs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|dt	j
|j}|jjd||j|jj|dt||df|jj
||j|jj||jj|j||j|jjt|f||jj
||jtj|jjd||jtj|jjd||jtj|jjdd|jtj|jjdd|jtj|jjdddS(NiiRii(RfRtRRRgRRFRGRR<R{R>RRRH(RRtR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRs0''##0&cs|jj|jjgg|jjdfd|jjdfd|j|jjt|j|jj|j|j	|j|jjt|j|jj
|j	dS(Ns<Unmap>cs
jtS(N(RRU(R(R(s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRRs<<NotebookTabChanged>>cs
jtS(N(RRU(R(ttab_changed(s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRR(RfR?R@RgRRRlRRRR(R((RR{s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_selects

"
"
cCs|jtj|jjd|jtj|jjd|jtj|jjd|j|jj|jt|j	|jj|jddd|j	|jj|jdd|jj|jdd|j	|jj|jddd|j	|jj|jdddS(NitnotabR8Rtabc(
RFRGRRfRjRHR RgR!R(R((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_tab(s%"%cCsb|jt|jjd|jj|j|jj|j|j|jjddS(Ni((RRRfRtRRgR(R((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt	test_tabs6scCs|jj|jj|jjdt|jdd|jj|jjd|j|jjt|j	|jj|jjd|j|jjt|j
|jj|jjd|j|jjt|j	|jj|j
dddd|jj|jjt|jddt
jdkrh|jjd	n|jjd
|j|jjt|j
dS(Niis
<Control-Tab>s<Shift-Control-Tab>R8RRgRs
<Option-a>s<Alt-a>(RfR?R@RlR	tfocus_forceRRRRRgRjtenable_traversalRR(R((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_traversal?s*


"
"
"

(RR]R^R!R.R`R7(R4R5RcR;RRqRwRRzRR|RRR(((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRes						
	!				tTreeviewTestcBseZd#ZdZd
ZdZdZdZdZdZ	dZ
dZdZdZ
dZdZdZdZdZdZdZdZdZd Zd!Zd"ZRS($RtcolumnsR]tdisplaycolumnsR^R!t
selectmodeRR.R`RtyscrollcommandcCs,tt|j|jdd|_dS(NR!i(R:RR;Rttv(R((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR;cscKstj|j|S(N(R<tTreeviewR>(RRb((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRgscCsa|j}|j|dddd
|j|dd|j|dtdkrVd
nd	dS(NRsa b cR"RR#RiiR(RR#R(RR#R(ii((RR,R(RR((s=/usr/local/lib/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
ddS(NRR#RRRsb a cR"s#alliiiRRsInvalid column index disColumn index 3 out of boundsisColumn index -2 out of bounds(RR#R(R#RR(R#RR(s#all(iii(RR#R(iii(ii(RR,R(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_displaycolumnsqs
c	CsN|j}|j|ddddddt|j|ddddtdS(	NR^idiit3cR3gLY@gfffffY@(RRGRR(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRs"cCs)|j}|j|dddddS(NRRtbrowsetextended(RRv(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_selectmodescCs|j}|j|dddd|j|dd|j|dd|j|dddd	|j|dddd
dS(NRs
tree headingsR"ttreetheadings(RR(RR(RR(R(R(RR,(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRscCsW|jj|j|jjdd|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|ddS(	NRRittestRR7i2s#0(RR?RRR@RRtget_childrenRRtcolumnRHRR)(Rtitem_idtchildrenRtbbox_column0t
root_widthRg((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRs$




	cCs>|j|jjd|jjdd}|j|jjt|j|jjd||jjdd}|jjdd}|jj||||j|jj|||f|jtj	|jj|||jj||j|jj|d|jjd|j|jjddS(NRRi((((
RRRRR ttupletset_childrenRFRGR(RRRR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_childrens"cCsi|j|jjdt|jrJ|j|jjdddtn|jjddd|j|jjdd|jrdnd|j|jjddd|jrdnd|jt	j
|jjddd|jt	j
|jjdidd	6id
d6id
d6id
d6id
d
6g}x-|D]%}|jt	j
|jjd|q<WdS(Ns#0R7i
t10tidtXRs
some valuetunknown_optiontwrongtstretchRtminwidth(R RRR!RRHR)RRFRGR(Rtinvalid_kwsRM((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_columns	%"$
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|jjdS(Ns#0RR(
RFRGRRRRRRRtreattach(RRtitem2titem1((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_deletes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|jjd|j|jj|ddS(	NRRtnonexistenttotherparentR((((RRRtdetachRRRtmoveRFRGR(RRRtprev((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_detach_reattachs4
cCst|j|jjdt|j|jjdt|j|jjit|jtj|jjddS(Nt	somethingR(	RRtexistsRRURFRGRRH(R((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_exists'scCs|j|jjd|jjdd}|jj||j|jj||jj||j|jjd|jtj|jjddS(NRRRO(RRRRRRFRGR(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_focus2scCs|j|jjdt|jjddd|j|jjddd|j|jjdddd|jtj|jjddd|jtj|jjddddS(Ns#0R8RORRi(	R RtheadingR!RRHRFRGR(R((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_headingAs"csfd}gjjjjjjddfdjjdddjj|ddsjdngjjj}jjddt	jjdddj|jjj|ddsjdndS(	Ncs$tj||jjdS(N(R	RR(RR(R(s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pytsimulate_heading_clickRss#0Rcs
jtS(N(RRU((R(s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRZRR7idis>The command associated to the treeview heading wasn't invoked.(RR?R@RRRRnRt_tclCommandsRRHR(RRtcommands((RRs=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_heading_callbackQs"



.
cCs|jtj|jjd|j|jjdd|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(NtwhatRiRi(
RFRGRRRkRRRRR(RRRtc1tc2((s=/usr/local/lib/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
dd}|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rd
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rdd||ffn
d||f|j	|jj|jjddddddd|j	|jj|jjddd|dd||jjddd}|j	|d|jjddd}|j	|d|jtj|jjddt|jtj|jjddddS(NRRRtopentpleasetmiddles
first-itemuábaRttagsiiRRs1 2 %ss1 2sa b cs%s %ss{a b c} {%s %s}R8s
Label hereiR#gs0.0(ii(RR(RFRGRRRRRRURRRtitemRRHR>t	splitlistR R!(RtitemidR-R((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_insert_itemsh..
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dfn|jjdddd|jjd|j	|jj
trtd	ndfdS(
NRRRRswith spacess{braces
unicode\u20acsbytes€sbytes\u20ac((swith spaces(s{brace(
RFRGRRt
selection_sett
selection_addtselection_removetselection_toggleRRt	selectionRR(RRRRRtc3((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_selectionsR"%"%cCsPddg|jd<|jjdddddg}|j|jj|idd6dd6|jj|dd|j|jj|dd|jrdnd	dg|jd<|j|jj|idd6|jj|dd|j|jj|d
dd|j|jj|dd|jr:dnd|jj|dd|j|jj|d|jr~dnd
|j|jj|dd|jrdnd|j|jj||jridd6n
id
d6|jtj	|jj|d|jtj	|jj|dd|jtj	|jjddS(NtAtBRRRRRR#sa aRsb ai{t123s123 atnotme(RR(R#R(i{R(
RRRRRRHRRFRGR(RR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRWs,!*#"$"c	sg|jjddddg}|jjddddg}|jjddfd|jjddfd|jj|jj|jjt}t}xqtd	d
dD]]}t|dkrPn|jj	|}|r||kr|j
||j
|qqW|jt|dx!|D]}t|jd	|qJW|jtd
xAt
ddddddD]}|j|dqWdS(NRRRtcalls<ButtonPress-1>cs
jdS(Ni(R(R(tevents(s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR;Rs<ButtonRelease-1>cs
jdS(Ni(R(R(R(s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR=Riidi
iii(ii(RRttag_bindR?R@RRRmRtidentify_rowRRR	tzip(	RRRtpos_ytfoundRpRRR((Rs=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_tag_bind6s2


		

0cCs|jt|jj|jtj|jjddd|jjddd|jt|jjddd|jt|jjdddd|j	|jjdt
dS(NRtskytblueR(RFt	TypeErrorRt
tag_configureRGRRRRHR R!(R((s=/usr/local/lib/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
ddS(NRRR8sItem 1Rttag1sItem 2ttag2snon-existingttag3((	RRRFRttag_hasRRRR(RRR((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_tag_hasds$$(RRR]RR^R!RRR.R`RR(R4R5RcR;RRRRRRRRRRRRRRRRzRRRWRRR(((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR[s4													*				"		M	6	!	"	t
SeparatorTestcBseZdZdZdZRS(RR]RR.R`RcKstj|j|S(N(R<t	SeparatorR>(RRb((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR|s(RR]RR.R`(R4R5RcR/R(((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRtstSizegripTestcBseZdZdZRS(RR]R.R`cKstj|j|S(N(R<tSizegripR>(RRb((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRs(RR]R.R`(R4R5RcR(((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRst__main__(5tunittesttTkinterRGRR<ttest.test_supportRRRRRttest_functionsRtsupportRRRR	twidget_testsR
RRR
RRRRRtTestCaseR6RYR[RdR~RRRRRR
R,R4R>RXtskipIfRRcReRRRt	tests_guiR4(((s=/usr/local/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt<module>sr"":
';0|3j"
	

Zerion Mini Shell 1.0