[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.137.168.126: ~ $


��Yf� �@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/python35/lib64/python3.5/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
�|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}||jj|j�d�7}||jj|jd��7}q.Wd}x-|D]%}||jj|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_frameZtkZgetintZ	pack_infoZcget�tkinterZLabel�top�
context_depthrrr/r$r&rZpackrrZdestroyrZ	SetOptionr%ZSaveUserCfgFiles)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�g}t}x�t||dd�D]�}|j|�\}}}	||kr#|}|	dkri|d7}|	r�||kr�||kr�|j||||	f�||kr#Pq#W|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.

        r(rrr,)rr)rI�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|�\}}|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�splitr2rUr1�extend�maxrCrH�joinr0)r:rQrSrTrRZcontext_stringsrrr�update_code_context�s*%			&(zCodeContext.update_code_contextcCs-|jr|j�|jjt|j�dS)N)r0r`r.r5r6r7)r:rrrr7�s	
zCodeContext.timer_eventcCsX|jd}|jr>||jkr>||_|j|jd<|jjt|j�dS)Nr')r.r0r/r5r8r9)r:Znewtextfontrrrr9�s

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

Filemanager

Name Type Size Permission Actions
AutoComplete.cpython-35.opt-1.pyc File 7.51 KB 0644
AutoComplete.cpython-35.opt-2.pyc File 5.85 KB 0644
AutoComplete.cpython-35.pyc File 7.51 KB 0644
AutoCompleteWindow.cpython-35.opt-1.pyc File 11.19 KB 0644
AutoCompleteWindow.cpython-35.opt-2.pyc File 10.46 KB 0644
AutoCompleteWindow.cpython-35.pyc File 11.25 KB 0644
AutoExpand.cpython-35.opt-1.pyc File 3.09 KB 0644
AutoExpand.cpython-35.opt-2.pyc File 2.32 KB 0644
AutoExpand.cpython-35.pyc File 3.09 KB 0644
Bindings.cpython-35.opt-1.pyc File 3.15 KB 0644
Bindings.cpython-35.opt-2.pyc File 2.68 KB 0644
Bindings.cpython-35.pyc File 3.15 KB 0644
CallTipWindow.cpython-35.opt-1.pyc File 5.24 KB 0644
CallTipWindow.cpython-35.opt-2.pyc File 4.94 KB 0644
CallTipWindow.cpython-35.pyc File 5.24 KB 0644
CallTips.cpython-35.opt-1.pyc File 5.78 KB 0644
CallTips.cpython-35.opt-2.pyc File 4.18 KB 0644
CallTips.cpython-35.pyc File 5.78 KB 0644
ClassBrowser.cpython-35.opt-1.pyc File 8.35 KB 0644
ClassBrowser.cpython-35.opt-2.pyc File 7.87 KB 0644
ClassBrowser.cpython-35.pyc File 8.35 KB 0644
CodeContext.cpython-35.opt-1.pyc File 5.98 KB 0644
CodeContext.cpython-35.opt-2.pyc File 4.87 KB 0644
CodeContext.cpython-35.pyc File 6.02 KB 0644
ColorDelegator.cpython-35.opt-1.pyc File 8.37 KB 0644
ColorDelegator.cpython-35.opt-2.pyc File 8.21 KB 0644
ColorDelegator.cpython-35.pyc File 8.37 KB 0644
Debugger.cpython-35.opt-1.pyc File 15.21 KB 0644
Debugger.cpython-35.opt-2.pyc File 15.06 KB 0644
Debugger.cpython-35.pyc File 15.21 KB 0644
Delegator.cpython-35.opt-1.pyc File 1.31 KB 0644
Delegator.cpython-35.opt-2.pyc File 1.21 KB 0644
Delegator.cpython-35.pyc File 1.31 KB 0644
EditorWindow.cpython-35.opt-1.pyc File 50.8 KB 0644
EditorWindow.cpython-35.opt-2.pyc File 49.55 KB 0644
EditorWindow.cpython-35.pyc File 50.9 KB 0644
FileList.cpython-35.opt-1.pyc File 3.5 KB 0644
FileList.cpython-35.opt-2.pyc File 3.49 KB 0644
FileList.cpython-35.pyc File 3.53 KB 0644
FormatParagraph.cpython-35.opt-1.pyc File 6.21 KB 0644
FormatParagraph.cpython-35.opt-2.pyc File 4.36 KB 0644
FormatParagraph.cpython-35.pyc File 6.21 KB 0644
GrepDialog.cpython-35.opt-1.pyc File 5.51 KB 0644
GrepDialog.cpython-35.opt-2.pyc File 5.5 KB 0644
GrepDialog.cpython-35.pyc File 5.51 KB 0644
HyperParser.cpython-35.opt-1.pyc File 7.23 KB 0644
HyperParser.cpython-35.opt-2.pyc File 5.94 KB 0644
HyperParser.cpython-35.pyc File 7.23 KB 0644
IOBinding.cpython-35.opt-1.pyc File 14.82 KB 0644
IOBinding.cpython-35.opt-2.pyc File 14.4 KB 0644
IOBinding.cpython-35.pyc File 14.82 KB 0644
IdleHistory.cpython-35.opt-1.pyc File 3.59 KB 0644
IdleHistory.cpython-35.opt-2.pyc File 2.38 KB 0644
IdleHistory.cpython-35.pyc File 3.59 KB 0644
MultiCall.cpython-35.opt-1.pyc File 16.09 KB 0644
MultiCall.cpython-35.opt-2.pyc File 13.77 KB 0644
MultiCall.cpython-35.pyc File 16.15 KB 0644
MultiStatusBar.cpython-35.opt-1.pyc File 1.89 KB 0644
MultiStatusBar.cpython-35.opt-2.pyc File 1.88 KB 0644
MultiStatusBar.cpython-35.pyc File 1.89 KB 0644
ObjectBrowser.cpython-35.opt-1.pyc File 5.38 KB 0644
ObjectBrowser.cpython-35.opt-2.pyc File 5.38 KB 0644
ObjectBrowser.cpython-35.pyc File 5.38 KB 0644
OutputWindow.cpython-35.opt-1.pyc File 4.42 KB 0644
OutputWindow.cpython-35.opt-2.pyc File 4.24 KB 0644
OutputWindow.cpython-35.pyc File 4.42 KB 0644
ParenMatch.cpython-35.opt-1.pyc File 6.3 KB 0644
ParenMatch.cpython-35.opt-2.pyc File 4.9 KB 0644
ParenMatch.cpython-35.pyc File 6.3 KB 0644
PathBrowser.cpython-35.opt-1.pyc File 4.01 KB 0644
PathBrowser.cpython-35.opt-2.pyc File 3.86 KB 0644
PathBrowser.cpython-35.pyc File 4.01 KB 0644
Percolator.cpython-35.opt-1.pyc File 3.82 KB 0644
Percolator.cpython-35.opt-2.pyc File 3.81 KB 0644
Percolator.cpython-35.pyc File 3.99 KB 0644
PyParse.cpython-35.opt-1.pyc File 10.71 KB 0644
PyParse.cpython-35.opt-2.pyc File 9.85 KB 0644
PyParse.cpython-35.pyc File 11.14 KB 0644
PyShell.cpython-35.opt-1.pyc File 47 KB 0644
PyShell.cpython-35.opt-2.pyc File 44.47 KB 0644
PyShell.cpython-35.pyc File 47.13 KB 0644
RemoteDebugger.cpython-35.opt-1.pyc File 14.17 KB 0644
RemoteDebugger.cpython-35.opt-2.pyc File 11.83 KB 0644
RemoteDebugger.cpython-35.pyc File 14.31 KB 0644
RemoteObjectBrowser.cpython-35.opt-1.pyc File 1.96 KB 0644
RemoteObjectBrowser.cpython-35.opt-2.pyc File 1.95 KB 0644
RemoteObjectBrowser.cpython-35.pyc File 1.96 KB 0644
ReplaceDialog.cpython-35.opt-1.pyc File 7.47 KB 0644
ReplaceDialog.cpython-35.opt-2.pyc File 6.8 KB 0644
ReplaceDialog.cpython-35.pyc File 7.47 KB 0644
RstripExtension.cpython-35.opt-1.pyc File 1.32 KB 0644
RstripExtension.cpython-35.opt-2.pyc File 1.24 KB 0644
RstripExtension.cpython-35.pyc File 1.32 KB 0644
ScriptBinding.cpython-35.opt-1.pyc File 6.9 KB 0644
ScriptBinding.cpython-35.opt-2.pyc File 5.54 KB 0644
ScriptBinding.cpython-35.pyc File 6.9 KB 0644
ScrolledList.cpython-35.opt-1.pyc File 5.62 KB 0644
ScrolledList.cpython-35.opt-2.pyc File 5.62 KB 0644
ScrolledList.cpython-35.pyc File 5.62 KB 0644
SearchDialog.cpython-35.opt-1.pyc File 3.69 KB 0644
SearchDialog.cpython-35.opt-2.pyc File 3.44 KB 0644
SearchDialog.cpython-35.pyc File 3.69 KB 0644
SearchDialogBase.cpython-35.opt-1.pyc File 7.51 KB 0644
SearchDialogBase.cpython-35.opt-2.pyc File 4.87 KB 0644
SearchDialogBase.cpython-35.pyc File 7.51 KB 0644
SearchEngine.cpython-35.opt-1.pyc File 7.24 KB 0644
SearchEngine.cpython-35.opt-2.pyc File 5.62 KB 0644
SearchEngine.cpython-35.pyc File 7.24 KB 0644
StackViewer.cpython-35.opt-1.pyc File 5.46 KB 0644
StackViewer.cpython-35.opt-2.pyc File 5.45 KB 0644
StackViewer.cpython-35.pyc File 5.46 KB 0644
ToolTip.cpython-35.opt-1.pyc File 3.95 KB 0644
ToolTip.cpython-35.opt-2.pyc File 3.94 KB 0644
ToolTip.cpython-35.pyc File 3.95 KB 0644
TreeWidget.cpython-35.opt-1.pyc File 15.25 KB 0644
TreeWidget.cpython-35.opt-2.pyc File 14.49 KB 0644
TreeWidget.cpython-35.pyc File 15.25 KB 0644
UndoDelegator.cpython-35.opt-1.pyc File 11.61 KB 0644
UndoDelegator.cpython-35.opt-2.pyc File 11.6 KB 0644
UndoDelegator.cpython-35.pyc File 11.61 KB 0644
WidgetRedirector.cpython-35.opt-1.pyc File 6.95 KB 0644
WidgetRedirector.cpython-35.opt-2.pyc File 3.58 KB 0644
WidgetRedirector.cpython-35.pyc File 6.95 KB 0644
WindowList.cpython-35.opt-1.pyc File 3.16 KB 0644
WindowList.cpython-35.opt-2.pyc File 3.15 KB 0644
WindowList.cpython-35.pyc File 3.16 KB 0644
ZoomHeight.cpython-35.opt-1.pyc File 1.37 KB 0644
ZoomHeight.cpython-35.opt-2.pyc File 1.36 KB 0644
ZoomHeight.cpython-35.pyc File 1.37 KB 0644
__init__.cpython-35.opt-1.pyc File 452 B 0644
__init__.cpython-35.opt-2.pyc File 141 B 0644
__init__.cpython-35.pyc File 452 B 0644
__main__.cpython-35.opt-1.pyc File 279 B 0644
__main__.cpython-35.opt-2.pyc File 198 B 0644
__main__.cpython-35.pyc File 279 B 0644
aboutDialog.cpython-35.opt-1.pyc File 5.93 KB 0644
aboutDialog.cpython-35.opt-2.pyc File 5.77 KB 0644
aboutDialog.cpython-35.pyc File 5.93 KB 0644
configDialog.cpython-35.opt-1.pyc File 48.17 KB 0644
configDialog.cpython-35.opt-2.pyc File 45.48 KB 0644
configDialog.cpython-35.pyc File 48.17 KB 0644
configHandler.cpython-35.opt-1.pyc File 26.25 KB 0644
configHandler.cpython-35.opt-2.pyc File 18.24 KB 0644
configHandler.cpython-35.pyc File 26.25 KB 0644
configHelpSourceEdit.cpython-35.opt-1.pyc File 5.77 KB 0644
configHelpSourceEdit.cpython-35.opt-2.pyc File 5.27 KB 0644
configHelpSourceEdit.cpython-35.pyc File 5.77 KB 0644
configSectionNameDialog.cpython-35.opt-1.pyc File 3.84 KB 0644
configSectionNameDialog.cpython-35.opt-2.pyc File 3.22 KB 0644
configSectionNameDialog.cpython-35.pyc File 3.84 KB 0644
dynOptionMenuWidget.cpython-35.opt-1.pyc File 2.37 KB 0644
dynOptionMenuWidget.cpython-35.opt-2.pyc File 1.99 KB 0644
dynOptionMenuWidget.cpython-35.pyc File 2.37 KB 0644
help.cpython-35.opt-1.pyc File 10.72 KB 0644
help.cpython-35.opt-2.pyc File 8.04 KB 0644
help.cpython-35.pyc File 10.72 KB 0644
idle.cpython-35.opt-1.pyc File 372 B 0644
idle.cpython-35.opt-2.pyc File 364 B 0644
idle.cpython-35.pyc File 372 B 0644
idlever.cpython-35.opt-1.pyc File 551 B 0644
idlever.cpython-35.opt-2.pyc File 320 B 0644
idlever.cpython-35.pyc File 551 B 0644
keybindingDialog.cpython-35.opt-1.pyc File 10.71 KB 0644
keybindingDialog.cpython-35.opt-2.pyc File 9.77 KB 0644
keybindingDialog.cpython-35.pyc File 10.71 KB 0644
macosxSupport.cpython-35.opt-1.pyc File 7 KB 0644
macosxSupport.cpython-35.opt-2.pyc File 5.13 KB 0644
macosxSupport.cpython-35.pyc File 7.11 KB 0644
rpc.cpython-35.opt-1.pyc File 20.34 KB 0644
rpc.cpython-35.opt-2.pyc File 17.03 KB 0644
rpc.cpython-35.pyc File 20.45 KB 0644
run.cpython-35.opt-1.pyc File 12.44 KB 0644
run.cpython-35.opt-2.pyc File 10.56 KB 0644
run.cpython-35.pyc File 12.49 KB 0644
tabbedpages.cpython-35.opt-1.pyc File 16.68 KB 0644
tabbedpages.cpython-35.opt-2.pyc File 11.79 KB 0644
tabbedpages.cpython-35.pyc File 16.68 KB 0644
textView.cpython-35.opt-1.pyc File 3.38 KB 0644
textView.cpython-35.opt-2.pyc File 2.95 KB 0644
textView.cpython-35.pyc File 3.38 KB 0644