Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/idlelib/SearchDialogBase.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��Qc@s!ddlTddd��YZdS(i�(t*tSearchDialogBasecBs�eZdZdZdZd�Zdd�Zdd�Zd�Z	d�Z
dd�Zd	d
�Zd�Z
d�Zd
�Zd�ZRS(s
Search DialogtSearchicCs||_||_d|_dS(N(troottenginetNonettop(tselfRR((s./sys/lib/python2.7/idlelib/SearchDialogBase.pyt__init__	s		cCs�||_|js|j�n|jj�|jj�|rh|jjdd�|jjd|�n|jj�|jj	dd�|jj
d�|jj�dS(Nitend(ttextRtcreate_widgetst	deiconifyttkraisetenttdeletetinsertt	focus_settselection_rangeticursortgrab_set(RR
tsearchphrase((s./sys/lib/python2.7/idlelib/SearchDialogBase.pytopens		



cCs*|jr&|jj�|jj�ndS(N(Rtgrab_releasetwithdraw(Rtevent((s./sys/lib/python2.7/idlelib/SearchDialogBase.pytcloses	
cCs�t|j�}|jd|j�|jd|j�|jd|j�|j|j�|j|j	�||_
d|_|j
jddddd�|j
jdddd	d
dd
�|j
�|j�|j�|j�S(Ns<Return>s<Escape>tWM_DELETE_WINDOWitpaditweightitminsizeid(tToplevelRtbindtdefault_commandRtprotocoltwm_titlettitletwm_iconnameticonRtrowtgrid_columnconfiguretcreate_entriestcreate_option_buttonstcreate_other_buttonstcreate_command_buttons(RR((s./sys/lib/python2.7/idlelib/SearchDialogBase.pyR"s		"


cCs�t|jd|�}|jd|jdddd�t|jd|dd�}|jd|jdd	dd
�|jd	|_|S(NR
R'tcolumnitstickytnwttextvariabletexportselectionitnwe(tLabelRtgridR'tEntry(Rtlabeltvartlte((s./sys/lib/python2.7/idlelib/SearchDialogBase.pyt
make_entry4sc	Cs�|r=t|jd|�}|jd|jdddd�nt|j�}|jd|jdddddd	�|jd|_|S(
NR
R'R-iR.R/it
columnspanR2(R3RR4R'tFrame(Rt	labeltextR8tf((s./sys/lib/python2.7/idlelib/SearchDialogBase.pyt
make_frame<s"%icCst|jd|d|d|r$dp'd�}|jj�\}}|jddd|d	d
dd�|jjd
|d�|S(NR
tcommandtdefaulttactivetnormaltpadyiR'R-iR.tewtrowspan(tButtontbuttonframet	grid_sizeR4(RR6R@tisdeftbtcolstrows((s./sys/lib/python2.7/idlelib/SearchDialogBase.pytmake_buttonEs"cCs|jd|jj�|_dS(NsFind:(R:RtpatvarR(R((s./sys/lib/python2.7/idlelib/SearchDialogBase.pyR)NscCsw|jd�}t|ddd|jjdd�}|jddd	d
�|jj�re|j�nt|ddd|jjdd�}|jddd	d
�|jj�r�|j�nt|ddd|jj	dd�}|jddd	d
�|jj
�r|j�n|jrst|ddd|jjdd
�}|jddd	d
�|jj
�rs|j�qsndS(NtOptionstanchortwtvariableR
sRegular expressiontsidetlefttfilltboths
Match cases
Whole wordsWrap around(R?tCheckbuttonRtrevartpacktisretselecttcasevartiscasetwordvartiswordtneedwrapbuttontwrapvartiswrap(RR>tbtn((s./sys/lib/python2.7/idlelib/SearchDialogBase.pyR*Qs4	
	
	
		c
Cs�|jd�}t|ddd|jjdddd�}|jd	d
dd�|jj�rk|j�nt|ddd|jjdd
dd�}|jd	d
dd�|jj�s�|j�ndS(Nt	DirectionRQRRRStvalueiR
tUpRTRURVRWitDown(R?tRadiobuttonRtbackvarRZtisbackR\(RR>Rd((s./sys/lib/python2.7/idlelib/SearchDialogBase.pyR+qs	
	c
Csgt|j�}|_|jdddddddddddd�|jd	|j�}|j�dS(
NR'iR-itpadxRDtipadxtipadyR(R<RRHR4RNRtlower(RR>RK((s./sys/lib/python2.7/idlelib/SearchDialogBase.pyR,�s.N(t__name__t
__module__R$R&RaRRRRRR:R?RNR)R*R+R,(((s./sys/lib/python2.7/idlelib/SearchDialogBase.pyRs							 	N((tTkinterR(((s./sys/lib/python2.7/idlelib/SearchDialogBase.pyt<module>s


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].