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

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


��Qc@shddlTddlmZddlmZd�Zd�Zd�Zd�Zdefd	��YZ	d
S(i�(t*(tSearchEngine(tSearchDialogBasecCsF|j�}tj|�}t|d�s?t||�|_n|jS(Nt
_searchdialog(t_rootRtgetthasattrtSearchDialogR(ttexttroottengine((s*/sys/lib/python2.7/idlelib/SearchDialog.pyt_setups
cCs(|jdd�}t|�j||�S(Ns	sel.firstssel.last(RRtopen(Rtpat((s*/sys/lib/python2.7/idlelib/SearchDialog.pytfind
scCst|�j|�S(N(Rt
find_again(R((s*/sys/lib/python2.7/idlelib/SearchDialog.pyRscCst|�j|�S(N(Rtfind_selection(R((s*/sys/lib/python2.7/idlelib/SearchDialog.pyRsRcBs/eZd�Zdd�Zd�Zd�ZRS(cCs)tj|�}|jd|jd�dS(NtFindi(Rtcreate_widgetstmake_buttontdefault_command(tselftf((s*/sys/lib/python2.7/idlelib/SearchDialog.pyRscCs6|jj�sdS|j|j�r2|j�ndS(N(R
tgetprogRRtclose(Rtevent((s*/sys/lib/python2.7/idlelib/SearchDialog.pyRscCsS|jj�s |j|�tS|jj�s3tS|jj|�}|rA|\}}|j�\}}d||f}d||f}yH|jd�}	|jd�}
|	|kr�|
|kr�|j�tSWnt	k
r�nX|j
ddd�|jd||�|jd|jj
�r)|p,|�|jd�tS|j�tSdS(Ns%d.%ds	sel.firstssel.lasttsels1.0tendtinsert(R
tgetpatRtFalseRtsearch_texttspantindextbelltTclErrort
tag_removettag_addtmark_settisbacktseetTrue(RRtrestlinetmtitjtfirsttlasttselfirsttsellast((s*/sys/lib/python2.7/idlelib/SearchDialog.pyR#s4


%

cCs8|jdd�}|r+|jj|�n|j|�S(Ns	sel.firstssel.last(RR
tsetcookedpatR(RRR
((s*/sys/lib/python2.7/idlelib/SearchDialog.pyR@sN(t__name__t
__module__RtNoneRRR(((s*/sys/lib/python2.7/idlelib/SearchDialog.pyRs		N(
tTkintertidlelibRtidlelib.SearchDialogBaseRRRRRR(((s*/sys/lib/python2.7/idlelib/SearchDialog.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].