ok
Mini Shell
�
zfc@s�ddlZddlZddlZddlZddlmZmZmZddl m
Z
mZed�de
ejfd��YZ
de
ejfd��YZe
efZed kr�ee�ndS(
i����N(trequirestrun_unittestt swap_attr(tAbstractTkTesttdestroy_default_roottguitLabeledScaleTestcBsGeZd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(cCs$|jj�tt|�j�dS(N(troottupdate_idletaskstsuperRttearDown(tself((s</usr/lib64/python2.7/lib-tk/test/test_ttk/test_extensions.pyR
s
cCsltj|j�}|jj}|j�|jtj|j j
|�tj|j�}|j}tj|jd|�}|j�|jr�|j
|j j
|�|j��n(|j
t|j j
|��|j��~|jtj|j j
|�tj|j�}tj|jd|�}|j�tj|jd|�ttd�rh|jtjtj�ndS(Ntvariablet last_type(tttktLabeledScaleRt _variablet_nametdestroytassertRaisesttkintertTclErrorttktglobalgetvart DoubleVartwantobjectstassertEqualtgettfloattIntVarthasattrtsystassertNotEqualR
(Rtxtvartmyvartname((s</usr/lib64/python2.7/lib-tk/test/test_ttk/test_extensions.pyttest_widget_destroys&
%(
cCs�ttdd���ttdt��izYtj�}|jtj�|j|j tj�|j|j
tjj
�|j�Wdt�XWdQXWdQXdS(Nt
_default_roott_support_default_root(
RRtNonetTrueRRtassertIsNotNoneR&RtmasterRRR(RR!((s</usr/lib64/python2.7/lib-tk/test/test_ttk/test_extensions.pyttest_initialization_no_master2scs�tj�j�}tj|�}�j|j|�|j�ddddtj dtj dff}�j
r}|d7}nxK|D]C}tj�jd|d�}�j|j|d�|j�q�Wtj�jdd �}�jt
|jj�|j�tj�jdd�}�jt
|jj�|j�tj�jd
d�}tj�jd|�}�j|jd�|j�tj�jd|dd
�}�j|jd
��j|jj|j�|j��fd�}tj�jdd�}||jd|jd�|j�tj�jdd�}||jd|jd�|j�tj�jdd�}||jd|jd�|j�tj�j�}||jd|jd�|j��jtjtj|dd�dS(Nt0ii
i����ig@itfrom_s2.5tvalueiRg�?cs8�j|j�d|��j|j�d|�dS(Ntsidetanchor(Rt pack_infot
place_info(tscalet scale_postlabelt label_pos(R(s</usr/lib64/python2.7/lib-tk/test/test_ttk/test_extensions.pytcheck_positionsastcompoundttoptbottomtntstunknowntatb(R-i(ii(i
i
(i����i����(g@i((g@i(RtFrameRRRRR+RRtmaxintRR/Rt
ValueErrorRRR(RRR4R6R(RR+R!tpassed_expectedtpairR#R8((Rs</usr/lib64/python2.7/lib-tk/test/test_ttk/test_extensions.pyttest_initialization?sP
cCs^tj|jdddd�}|j�|j�|j�|jj�}|jj �d}|j
|t|d��|jjdddd�|j�|jj �d}|j
||�|jj�}|j
|jd|jr�dnd �|j
|t|d��|jjdddd�|j
||�|j
|t|d��|j�dS(
NR.ittoi
R!i����ittextR-(RRRtpacktwait_visibilitytupdateR6R3R4tcoordsRtintt configureR RR(Rtlscaletlinfo_1tprev_xcoordtcurr_xcoordtlinfo_2((s</usr/lib64/python2.7/lib-tk/test/test_ttk/test_extensions.pyttest_horizontal_rangevs$
&cCsvtj|j�}|j�|j�|j�|jj�d}|jd}||_|j�|j |j
d|jr�|n t|��|j
|jj�d|�|j |jj�dt|j
j�d��|jr�d�}nt}||jd�d|_|j�|j ||j
d�|�|j |jj�dt|j
j�d��|j�dS(NiiRHR!cSs|S(N((R!((s</usr/lib64/python2.7/lib-tk/test/test_ttk/test_extensions.pyt<lambda>�tRG(RRRRIRJRKR4RLR/RR6Rtstrt
assertGreaterRMR3R(RR!RRtnewvaltconv((s</usr/lib64/python2.7/lib-tk/test/test_ttk/test_extensions.pyttest_variable_change�s,
cCs�tj|j�}|jdtdd�|j�|j�|jj�|jj �}}|d|d}}d|_
|j�|jjd||f�|jt
|jj�d�|jj�d�|jjd||f�|j�dS( Ntexpandtfilltbothiis%dx%dR!i(RRRRIR)RJRKR+twinfo_widthtwinfo_heightR/twm_geometryRRMR6R3R4RLR(RR!twidththeightt width_newt
height_new((s</usr/lib64/python2.7/lib-tk/test/test_ttk/test_extensions.pyttest_resize�s
( t__name__t
__module__R
R%R,RFRTR[Rf(((s</usr/lib64/python2.7/lib-tk/test/test_ttk/test_extensions.pyR
s "
7 tOptionMenuTestcBs>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(cCs,tt|�j�tj|j�|_dS(N(R RitsetUpRt StringVarRttextvar(R((s</usr/lib64/python2.7/lib-tk/test/test_ttk/test_extensions.pyRj�scCs|`tt|�j�dS(N(RlR RiR
(R((s</usr/lib64/python2.7/lib-tk/test/test_ttk/test_extensions.pyR
�scCs�tj|j�}tj|j|�}|j}|j�|j�|j|j j
|�|j��~|jtj
|j j
|�dS(N(RRkRRt
OptionMenuRRRRRRRRR(RR"toptmenuR$((s</usr/lib64/python2.7/lib-tk/test/test_ttk/test_extensions.pyR%�s
"cCs�|jtjtj|j|jdd�tj|j|jddd�}|j|jj �d�|j
|d�|j
|d�|j�dS(NtinvalidtthingR@R?tmenuttextvariable(RRRRRmRRlRRRt
assertTrueR(RRn((s</usr/lib64/python2.7/lib-tk/test/test_ttk/test_extensions.pyRF�s!c s7d
�d}tj�j�j|��}t}xYtt���D]E}|dj|d�}�j|�|�||krCt }qCqCW�j
|�|j�d}tj�j�j|��}d}d}xQt r&||dj
|d�}}||kr Pn�j||�|d7}q�W�j|t���|j�|j�|djd��j|jj��d��jtj|djd ��j|jj��d�|j�g����fd
�}tj�j�jdd|��}|djd��s)�jd�n|j�dS(NR?R@tcRqR/tdiii����cs%�j|�d��jt�dS(Ni(RtappendR)(titem(titemsRtsuccess(s</usr/lib64/python2.7/lib-tk/test/test_ttk/test_extensions.pytcb_teststcommandsMenu callback not invoked(R?R@Rt(RRmRRltFalsetrangetlent entrycgetRR)RsRR(tentryconfigureR RIRJtinvokeRRRRRtfail( RtdefaultRnt
found_defaulttiR/tcurrtlastRz((RxRRys</usr/lib64/python2.7/lib-tk/test/test_ttk/test_extensions.pyt test_menu�sJ
cCs;d }d}tj|j|j||�}tj|j�}tj|j|||�}|j�|j�|j�|j�|djd�|djd�|dj dd�}|dj dd�}|j
||�|j|jjj
|�|d�|j|jjj
|�|d�|j�|j�dS(
NR?R@RtRqiiiR(R?R@Rt(RRmRRlRRkRIRJR�RR RRRR(RRxR�Rnttextvar2toptmenu2toptmenu_stringvar_nametoptmenu2_stringvar_name((s</usr/lib64/python2.7/lib-tk/test/test_ttk/test_extensions.pyttest_unique_radiobuttonss*
(RgRhRjR
R%RFR�R�(((s</usr/lib64/python2.7/lib-tk/test/test_ttk/test_extensions.pyRi�s
4t__main__(RtunittesttTkinterRRttest.test_supportRRRttest_ttk.supportRRtTestCaseRRit tests_guiRg(((s</usr/lib64/python2.7/lib-tk/test/test_ttk/test_extensions.pyt<module>s
�q
Zerion Mini Shell 1.0