��Qc
@s�ddlZddlZddlZddlmZmZddlZddlZddlm Z m
Z
ed�dejfd��YZdejfd��YZ
d ejfd
��YZdejfd��YZd
ejfd��YZdejfd��YZdejfd��YZdejfd��YZdejfd��YZdejfd��YZee
eeeeeeeef
Zedkr�ee�ndS(i�N(trequirestrun_unittest(t
MockTclObjt
MockStateSpectguit
WidgetTestcBs2eZdZd�Zd�Zd�Zd�ZRS(s,Tests methods available in every ttk widget.cCsCtj�tjdddd�|_|jj�|jj�dS(NtwidthittexttText(tsupporttroot_deiconifytttktButtontwidgettpacktwait_visibility(tself((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pytsetUps
cCs|jj�tj�dS(N(R
tdestroyR t
root_withdraw(R((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttearDowns
cCs�|jj�|j|jjt|jj�d�t|jj�d��d�|j|jjdd�d�|jtj |jjdd�|jtj |jjdd�|jtj |jjdd�dS(Nitlabeli�ti(R
tupdate_idletaskstassertEqualtidentifytinttwinfo_widthtwinfo_heighttassertRaisestTkintertTclErrortNone(R((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_identifys
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((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_cb7sthittheretmsgtbadstate((s !disabled((s!activeR"(((R#(RR
tstatetinstatetTrueRRR(RR&t currstate((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_widget_state's(""
(t__name__t
__module__t__doc__RRR!R/(((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRs
t
ButtonTestcBseZd�ZRS(cs<g�tjd�fd��}|j�|j��dS(Ntcommandcs
�jd�S(Ni(tappend((tsuccess(s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt<lambda>Os(RRtinvoket
assertTrue(Rtbtn((R6s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_invokeMs
(R0R1R;(((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR3KstCheckbuttonTestcBseZd�ZRS(csg��fd�}tjd|�}|j|j�d
�|jtj|jj|d�|j �}|j|d�|j|d|jj|d��|j
��d|d<|j �}|j|d�|jt��dk�|j|d |jj|d��dS(Ncs�jd�dS(Niscb test called(R5((R6(s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pytcb_testXs
R4t alternatetvariablescb test calledtonvalueRitoffvalue(R>(
RtCheckbuttonRR+RRRttktglobalgetvarR8R9tassertFalsetlen(RR=tcbtntres((R6s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR;Vs"
(R0R1R;(((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR<TstComboboxTestcBs>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(cCstj�tj�|_dS(N(R R
RtComboboxtcombo(R((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRss
cCs|jj�tj�dS(N(RKRR R(R((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRws
cCs`|jj�}|jjdd|ddd�|jjdd|ddd�|jj�dS(Ns<ButtonPress-1>txitys<ButtonRelease-1>(RKRtevent_generateR(RR((s7/sys/lib/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(Nitvaluess<<ComboboxSelected>>cs
�jt�S(N(R5R-(tevt(R6(s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR7�ss<Return>( RKtbindRRRROtupdateRNR9(Rtheight((R6s7/sys/lib/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(R5R-((R6(s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR7�stpostcommandRi(RKRRROR9RRF(R((R6s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_postcommand�s
cs��fd�}|dd�dddg�jd<�jjd�|dd��jjd �|dd ��jjd
�|d
d��jjd�d�jd<|dd��jjddddg��j�jdd�dddg�jd<�j�jdd�dddg�jd<�j�jdd��jtj�jjt�jd���jtj�jjd�t j
ddddg�}�j|dd�|j�dS(Ncs6�j�jj�|��j�jj�|�dS(N(RRKtgettcurrent(tgetvaltcurrval(R(s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pytcheck_get_current�sRi�taitcRPiitdit1t2sa bsa bsa
bsa\tbs"a"s} {(iiRi(R`RRa(sa bsa bsa
b(sa\tbs"a"s} {(R`RaR(RKtsetRYt configureRRRRRFRRJR(RR\tcombo2((Rs7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_values�s0
(R0R1RRRORURWRe(((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRIqs t EntryTestcBsGeZd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(cCstj�tj�|_dS(N(R R
RtEntrytentry(R((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�s
cCs|jj�tj�dS(N(RhRR R(R((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�s
cCs�|jt|jjd��d�x0|jjd�D]}|jt|t��q5W|jtj |jjd�|jtj |jjd�dS(Niitnoindex(RRFRhtbboxR9t
isinstanceRRRRR (Rtitem((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt test_bbox�s
"cCs�|jj�|jj�|jj�|j|jjdd�d�|j|jjdd�d�|jtj|jjdd�|jtj|jjdd�|jtj|jjdd�dS(Nittextareai�R(
RhRRRRRRRRR (R((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR!�s
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(R5R-((R6(s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR7�stnonetvalidatecSstS(N(tFalse(((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR7�stvalidatecommandtinvalidcommandRicSstS(N(R-(((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR7s( RhRpR9RRFR-RRR(Rttest_invalid((R6s7/sys/lib/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(NR]tz(tlowerR5RqR-(t to_insert(t
validation(s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRps
"
tkeyRps%SRrtendiR](RhtregistertinsertRRqR-RX(RRp((Rys7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_validations
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]Rv(RwRqR-(tcontenttletter((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRp#s
"s%PRrR{tavocadoiRta1btinvalidi((R�((
RhR|R}RRpR-R+tdeleteRXRq(RRp((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_revalidation"s ( R0R1RRRmR!RuR~R�(((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRf�s
tPanedwindowTestcBsGeZd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(cCstj�tj�|_dS(N(R R
RtPanedwindowtpaned(R((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR=s
cCs|jj�tj�dS(N(R�RR R(R((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRAs
cCsntj|j�}tj|�}|jtj|jj|�|j�|j�tj�}tj|�}|jtj|jj|�|j�|j�tj�}|jj|�|jtj|jj|�tj|j�}|jj|�|j|jj d�|jj d��|jtj|jj d�|j�|j�|jtj|jj d�dS(Niii(
RtLabelR�RRRtaddRRtpane(RRtchildt
good_childtother_child((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_addFs(
(
cCs~|jtj|jjd�|jtj|jjd�|jjtj��|jjd�|jtj|jjd�dS(Ni( RRRR�tforgetR R�RR�(R((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_forgetbs
cCs�|jtj|jjdd�|jtj|jjdd�|jtj|jjdd�tj�}tj�}tj�}|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{(RRRR�R}R RR�Rtpaneststr(RR�tchild2tchild3R�((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_insertks*++"cCs�|jtj|jjd�tj�}|jj|�|jt |jjd�t
��|j|jjddd�d�|j|jjdd�d�|j|jjd�|jjt
|���|jtj|jjddd�dS(Nitweightt badoptiont somevalue(RRRR�R�RR�R�R9RktdictRR R�(RR�((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt test_pane�s"".cCsr|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�k�|jt
|jjd�t��dS(NRiRR]R�itbtexpandtfilltbothi�(RRRR�tsashposR RR�R�RR-RR9RkR(RR�R�tcurr_pos((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_sashpos�s
( R0R1RRR�R�R�R�R�(((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�;s # tRadiobuttonTestcBseZd�ZRS(csmg��fd�}tj�}tjd|d|dd�}tjd|d|dd�}|j�}|j|d�|j|d|j��|j|j�|jj|d��|j ��d|d<|j�}|j|d�|j
t��dk�|j|d|j��|j|j�|jj|d��|jt|d�t|d��dS( Ncs�jd�dS(Niscb test called(R5((R6(s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR=�s
R4R?tvalueiiscb test calledR(
RtIntVarRtRadiobuttonR8RRXRCRDR9RERFR�(RR=tmyvarRGtcbtn2RH((R6s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR;�s&
(R0R1R;(((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR��st ScaleTestcBs5eZd�Zd�Zd�Zd�Zd�ZRS(cCs7tj�tj�|_|jj�|jj�dS(N(R R
RtScaletscaleRRS(R((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�s
cCs|jj�tj�dS(N(R�RR R(R((s7/sys/lib/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(RQ(tfailure(s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR7�si
tfromtfrom_ittoiiii�(R�RRRERc(Rtfuncid((R�s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_custom_event�s
cCs�|jj�}|j|jj|d�|jd�|j|jjdd�|jd�|j|jj�|jd�d|jd<|j|jj�|jd�|jtj|jjdd�|jtj|jjdd�dS(NiR�R�R�iR(R�RRRXRRR(Rtscale_width((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_get�s&&
cCs�|jd}|d}|jj|�|j|jj�|�|jd}|jj|d�|j|jj�|�tj�}||jd<|j|d�|j|jj�|j��|j|jj�|d�~|d|jd<|j|jj�|d�|j|jj�|jd�|j|jjdd�|�|j|jj|jj�d�|�|jtj|jjd�dS( NR�i
R�iR?iR�i(
R�RbRRXRt DoubleVarRRRR (Rtmaxtnew_maxtmintvar((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_set�s&
((R0R1RRR�R�R�(((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR��s
tNotebookTestcBskeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z
d �Zd
�ZRS(cCsstj�tjdd�|_tj�|_tj�|_|jj|jdd�|jj|jdd�dS(NtpaddingiRR]R�( R R
RtNotebooktnbR�tchild1R�R�(R((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRs
cCs5|jj�|jj�|jj�tj�dS(N(R�RR�R�R R(R((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR's
cCs�|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{iRYRR]tdarwins@20,5s@5,5iids@%d, 5sTab with text 'a' not found(R�R�thideR�RRRttabR�RtindexR�tselectR9RRtsystplatformtrangeR tfail(Rttb_idxti((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_tab_identifiers.s,
("cCs�|jtj|jjd�|jtj|jjd�|jtj|jjd�|jtj|jjd�|jtj|jjtj�dd�|jj �}|jj|j
�|jj|j
�|j|jj �|�tj�}|jj|dd�|jj �}|jjd�}|jj|j
�}|jj|j
�|jj|j
�|j|jj �|�|j|jj|j
�|�|jt|j
�|jj �|k�|j|jjd�|d�dS( Ni�R'tunknowntoptionRR^RYi(RRRR�R�R R�RR�ttabsR�RR�R�R9R�(RR�R�tcurrtchild2_index((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_add_and_hiddenMs*!)cCs1|jtj|jjd�|jtj|jjd�|jtj|jjd�|jj�}|jj|j�}|jj|j�|j t
|j�|jj�k�|jt|�dt|jj���|jj
|j�|j|jj|j�d�|j ||jj|j�k�dS(Ni�R'i(RRRR�R�R R�R�R�RER�RRFR�(RR�tchild1_index((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�js%)cCs�|jtj|jjd�|jtj|jjd�|jt|jjd�t��|j |jj|j
�d�|j |jj|j�d�|j |jjd�d�dS(Ni�R{iii(RRRR�R�R R9RkRRR�R�(R((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_indexzs"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
�}|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�(R�R�R}RR�R�RRRRR�R�R�R (RR�R�((s7/sys/lib/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(R5R-(RQ(R6(s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR7�ss<<NotebookTabChanged>>cs
�jt�S(N(R5R-(RQ(ttab_changed(s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR7�s(R�RRR�RRRR�R�R�R9RS(R((R6R�s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_select�s
"
"
cCs$|jtj|jjd�|jtj|jjd�|jtj|jjd�|jt|jj|j�t ��|j
|jj|jdd�d�|j
|jj|jd�d�|jj|jdd�|j
|jj|jdd�d�|j
|jj|jd�d�dS(Ni�tnotabRR]tabc(RRRR�R�R R9RkR�R�R(R((s7/sys/lib/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((RRFR�R�R�R�R�(R((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt test_tabs�scCs�|jj�|jj�|jjd�tj|jdd�|jj�|jjd�|j|jj�t |j
��|jj�|jjd�|j|jj�t |j��|jj�|jjd�|j|jj�t |j
��|jj|jdddd�|jj
�|jj�tj|jdd�tjdkrn|jjd �n|jjd
�|j|jj�t |j��dS(Niis
<Control-Tab>s<Shift-Control-Tab>RR]t underlineR�s
<Option-a>s<Alt-a>(R�RRR�R tsimulate_mouse_clicktfocus_forceRNRR�R�R�R�tenable_traversalR�R�(R((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_traversal�s*
"
"
"
(
R0R1RRR�R�R�R�R�R�R�R�R�(((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�s
! tTreeviewTestcBs�eZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z
d �Zej
d
�d��Zd�Zd
�Zd�Zd�Zd�ZRS(cCs#tj�tjdd�|_dS(NR�i(R R
RtTreeviewttv(R((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�s
cCs|jj�tj�dS(N(R�RR R(R((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�s
cCs�|jj�|j|jjd�d�|jj�|jj�|jjdd�}|jj�}|j|�|jj|d�}|jt |�d�|jt
|t��x2|D]*}t
|t�s�|j
d|�Pq�q�Wdg|jd<|jjddd �|jj|dd�}|jjd
dd�}|j|d|d|�|jj|d�}|j|jj|�d�dS(NRR{iisInvalid bounding box: %sttesttcolumnsRi2s#0(R�RRRjRRSR}tget_childrenR9RFRkttupleRR�tcolumnR (Rtitem_idtchildrenRjRltbbox_column0t
root_widthR�((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyRm�s*
cCsD|j|jj�d�|jjdd�}|jt|jj�t��|j|jj�d|�|jjdd�}|jjdd�}|jj|||�|j|jj|�||f�|jt j
|jj||�|jj|�|j|jj|�d�|jjd�|j|jj�d�dS(NRR{i((((RR�R�R}R9RkR�tset_childrenRRR(RR�R�R�((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_childrens"cCsK|jt|jjd�t��|jt|jjddd�t��|jjddd�|j|jjdd�d�|j|jjddd�d�|jt j
|jjddd�|jt j
|jjd�idd6id d
6id d6id d6id d6g}x-|D]%}|jt j
|jjd|�qWdS(
Ns#0Ri
tidtXR�s
some valuetunknown_optiontwrongtstretchtanchortminwidth(R9RkR�R�R�R RRRRR(Rtinvalid_kwsR%((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_column1s"(""$
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{(
RRRR�R�R}RR�REtreattach(RR�titem2titem1((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_deleteHscCs0|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�tdetachRRER�tmoveRRR(RR�R�tprev((s7/sys/lib/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�texistsRqR-RRRR (R((s7/sys/lib/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{R'(RR�tfocusR}R�RRR(RR�((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_focus�scCs�|jt|jjd�t��|jjddd�|j|jjdd�d�|j|jjddd�d�|jtj |jjddd�|jtj |jjddd�dS(Ns#0RR't
backgroundR�i(
R9RkR�theadingR�RR RRR(R((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_heading�s""s+skipping pending resolution of Issue #10734cs�fd�}g��jj��jj��jjdd�fd���jjddd��jj�|dd��s��jd�ng��jjj}�jjddt �jjddd����j|�jjj�|dd��s�jd�ndS( Ncs'tj�j||��jj�dS(N(R R�R�R(RLRM(R(s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pytsimulate_heading_click�ss#0R4cs
�jt�S(N(R5R-((R6(s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR7�sRidis>The command associated to the treeview heading wasn't invoked.(R�RRRR�RSR�tmastert_tclCommandsR�R R(RRtcommands((RR6s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_heading_callback�s"
.
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(
RRRR�R�RR}R�R�R�(RR�R�tc1tc2((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR��s&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 �|f�|j |jj|d d�|f�|jj|d t
|jj|d d���|j |jj|d d�|f�|jt|jj|�t��|jj|d d�|j|jj|d d��|jjddd
dd|g�}|j |jj|d
d�d
d|f�|jj|d
g�|j|jj|d
d��|jj|d
d�|j |jj|d
d�d�|jjddd dd||ff�}|j |jj|d d�dd||ff�|j |jj|jjdddd�dd�d�|j |jj|jjddd|�dd�|�dS(NRoR{Rtopentpleasetmiddles
first-itemuábaRPttagsiiR`Rasa b cs%s %sRs
Label here(ii(R`Ra(RRRR�R}RER�R-RqRRRlR tlistR9RkR�(RtitemidR�Rl((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_insert_item�sN..
"%.%"$+"!!cCs�ddg|jd<|jjdddddg�}|j|jj|�idd6dd6�|jj|dd�|j|jj|dd�d�dg|jd<|j|jj|�idd6�|jj|dd�|j|jj|d d�d�|j|jj|dd�d
�|jj|dd
�|j|jj|d�d
�|j|jj|dd�d�|j|jj|�id
d6�|jtj|jj|d�|jtj|jj|dd�|jtj|jjd�dS(NtAtBR�RR{RPR]R�R�i{tnotme(R]R](R�R](i{R]( R�R}RRbRlR RRR(RRl((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR�4s"!*"#"""#"c s�g�|jjddddg�}|jjddddg�}|jjdd�fd��|jjdd�fd��|jj�|jj�|jj�t�}t�}xqtd d
d�D]]}t|�dkr�n|jj |�}|r�||kr�|j
|�|j
|�q�q�W|jt|�d�x$|D]}tj
|jd |�qJW|jt��d
�xAt�ddd��ddd��D]}|j|d�q�WdS(NRR{Rtcalls<ButtonPress-1>cs
�jd�S(Ni(R5(RQ(tevents(s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR7Uss<ButtonRelease-1>cs
�jd�S(Ni(R5(RQ(R(s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR7Wsiidi
iii(ii(R�R}ttag_bindRRRSRbR�RFtidentify_rowR�RR R�tzip( RR�R�tpos_ytfoundR�R�RMRQ((Rs7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt
test_tag_bindPs2
0cCs�|jt|jj�|jtj|jjddd�|jjddd�|jt|jjdd��d�|jt|jjddd��d�|j t
|jjd�t��dS(NR�tskytbluet
foreground(Rt TypeErrorR�t
tag_configureRRRR�R R9RkR�(R((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyttest_tag_configurers
!(R0R1RRRmR�R�R�R�RRRtunittesttskipRR�RR�R!R'(((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyR��s * # = "t__main__(R(RRttest.test_supportRRR�R ttest_functionsRRtTestCaseRR3R<RIRfR�R�R�R�R�t tests_guiR0(((s7/sys/lib/python2.7/lib-tk/test/test_ttk/test_widgets.pyt<module>s.
? bhwL��
|