$56 GRAYBYTE WORDPRESS FILE MANAGER $83

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python34/lib64/python3.4/idlelib/__pycache__/

HOME
Current File : /opt/alt/python34/lib64/python3.4/idlelib/__pycache__//ParenMatch.cpython-34.pyc
�
e f9�@s�dZddlmZddlmZidd6dd6dd	6Zd
ZGdd�d�Zed
kr�ddl	Z	e	j
ddd�ndS)z�ParenMatch -- An IDLE extension for parenthesis matching.

When you hit a right paren, the cursor should move briefly to the left
paren.  Paren here is used generically; the matching applies to
parentheses, square brackets, and curly braces.
�)�HyperParser)�idleConf�(�)�[�]�{�}�dc@sHeZdZdZdd1gfgZejddddd�Zejddd	d
ddd�Zej	ej
�d
�Zejdddd
ddd�ZdZ
d2Zdd�Zdd�Zdd�Zdd�Zdd�Zd d!�Zd"d#d$�Zd%d&�Zd'd(�Zd)d*�Zd+d,�Zd-d.�Zd/d0�Zd"S)3�
ParenMatcha�Highlight matching parentheses

    There are three supported style of paren matching, based loosely
    on the Emacs options.  The style is select based on the
    HILITE_STYLE attribute; it can be changed used the set_style
    method.

    The supported styles are:

    default -- When a right paren is typed, highlight the matching
        left paren for 1/2 sec.

    expression -- When a right paren is typed, highlight the entire
        expression from the left paren to the right paren.

    TODO:
        - extend IDLE with configuration dialog to change options
        - implement rest of Emacs highlight styles (see below)
        - print mismatch warning in IDLE status window

    Note: In Emacs, there are several styles of highlight where the
    matching paren is highlighted whenever the cursor is immediately
    to the right of a right paren.  I don't know how to do that in Tk,
    so I haven't bothered.
    Zedit�Show surrounding parens�<<flash-paren>>�
extensions�style�default�
expressionzflash-delay�type�inti�Zhilite�bell�bool�z<<parenmatch-check-restore>>�
<KeyPress>�
<ButtonPress>�<Key-Return>�<Key-BackSpace>cCsT||_|j|_|jj|j|j�d|_d|_|j|j�dS)Nr)	�editwin�textZbind�RESTORE_VIRTUAL_EVENT_NAME�
restore_event�counter�is_restore_active�	set_style�STYLE)�selfr�r$�7/opt/alt/python34/lib64/python3.4/idlelib/ParenMatch.py�__init__;s	
		zParenMatch.__init__cCsC|js?x'|jD]}|jj|j|�qWd|_ndS)NT)r �RESTORE_SEQUENCESrZ	event_addr)r#�seqr$r$r%�activate_restoreGs	zParenMatch.activate_restorecCsC|jr?x'|jD]}|jj|j|�qWd|_ndS)NF)r r'rZevent_deleter)r#r(r$r$r%�deactivate_restoreMs	zParenMatch.deactivate_restorecCs[||_|dkr0|j|_|j|_n'|dkrW|j|_|j|_ndS)Nrr)r"�create_tag_default�
create_tag�set_timeout_last�set_timeout�create_tag_expression�set_timeout_none)r#rr$r$r%r!Ss	zParenMatch.set_stylecCsWt|jd�j�}|dkr2|j�dS|j�|j|�|j�dS)N�insert)rr�get_surrounding_brackets�warn_mismatchedr)r,r-)r#�event�indicesr$r$r%�flash_paren_event\s


zParenMatch.flash_paren_eventcCs�|jjd�}|tkr"dSt|jd�}|j�sDdS|jt|d�}|dkrt|j�dS|j�|j	|�|j
�dS)Nz	insert-1cT)r�get�_openersrrZ
is_in_coder2r3r)r,r.)r#r4ZcloserZhpr5r$r$r%�paren_closed_eventfs


zParenMatch.paren_closed_eventNcCs-|jjd�|j�|jd7_dS)N�parenr)rZ
tag_deleter*r)r#r4r$r$r%rvs
zParenMatch.restore_eventcCs ||jkr|j�ndS)N)rr)r#Ztimer_countr$r$r%�handle_restore_timer{szParenMatch.handle_restore_timercCs|jr|jj�ndS)N)�BELLrr)r#r$r$r%r3s	zParenMatch.warn_mismatchedcCs1|jjd|d�|jjd|j�dS)z'Highlight the single paren that matchesr:rN)r�tag_add�
tag_config�
HILITE_CONFIG)r#r5r$r$r%r+�szParenMatch.create_tag_defaultcCsk|jj|d�d	kr-|dd}n
|d}|jjd|d|�|jjd|j�dS)
zHighlight the entire expressionrrrr	z+1cr:rN)rrr	)rr7r=r>r?)r#r5Z
rightindexr$r$r%r/�s

z ParenMatch.create_tag_expressioncCsP|jd7_||j|jjd�dd�}|jjjt||�dS)zSHighlight will remain until user input turns it off
        or the insert has movedrr1cSsE||jjd�kr(|j|�n|jjjt||�dS)Nr1)r�indexr;r�
text_frame�after�CHECK_DELAY)�callmer#�cr@r$r$r%rD�sz+ParenMatch.set_timeout_none.<locals>.callmeN)rrr@rrArBrC)r#rDr$r$r%r0�s	zParenMatch.set_timeout_nonecCs;|jd7_|jjj|j||jdd��dS)z7The last highlight created will be removed after .5 secrcSs
|j|�S)N)r;)r#rEr$r$r%�<lambda>�sz-ParenMatch.set_timeout_last.<locals>.<lambda>N)rrrArB�FLASH_DELAY)r#r$r$r%r-�szParenMatch.set_timeout_last)rr
)rrrr)�__name__�
__module__�__qualname__�__doc__ZmenudefsrZ	GetOptionr"rGZGetHighlightZCurrentThemer?r<rr'r&r)r*r!r6r9rr;r3r+r/r0r-r$r$r$r%rs4		
r�__main__Nz!idlelib.idle_test.test_parenmatch�	verbosity�)rKZidlelib.HyperParserrZidlelib.configHandlerrr8rCrrHZunittest�mainr$r$r$r%�<module>s�


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
24 May 2024 8.33 AM
root / linksafe
0755
AutoComplete.cpython-34.pyc
7.534 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
AutoComplete.cpython-34.pyo
7.534 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
AutoCompleteWindow.cpython-34.pyc
11.269 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
AutoCompleteWindow.cpython-34.pyo
11.214 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
AutoExpand.cpython-34.pyc
3.108 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
AutoExpand.cpython-34.pyo
3.108 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
Bindings.cpython-34.pyc
3.085 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
Bindings.cpython-34.pyo
3.085 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
CallTipWindow.cpython-34.pyc
5.244 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
CallTipWindow.cpython-34.pyo
5.244 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
CallTips.cpython-34.pyc
5.812 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
CallTips.cpython-34.pyo
5.812 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ClassBrowser.cpython-34.pyc
8.377 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ClassBrowser.cpython-34.pyo
8.377 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
CodeContext.cpython-34.pyc
6.041 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
CodeContext.cpython-34.pyo
6.001 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ColorDelegator.cpython-34.pyc
7.837 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ColorDelegator.cpython-34.pyo
7.837 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
Debugger.cpython-34.pyc
15.305 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
Debugger.cpython-34.pyo
15.305 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
Delegator.cpython-34.pyc
1.075 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
Delegator.cpython-34.pyo
1.075 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
EditorWindow.cpython-34.pyc
51.43 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
EditorWindow.cpython-34.pyo
51.336 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
FileList.cpython-34.pyc
3.555 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
FileList.cpython-34.pyo
3.525 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
FormatParagraph.cpython-34.pyc
6.224 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
FormatParagraph.cpython-34.pyo
6.224 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
GrepDialog.cpython-34.pyc
5.531 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
GrepDialog.cpython-34.pyo
5.531 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
HyperParser.cpython-34.pyc
7.259 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
HyperParser.cpython-34.pyo
7.259 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
IOBinding.cpython-34.pyc
14.099 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
IOBinding.cpython-34.pyo
14.099 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
IdleHistory.cpython-34.pyc
3.616 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
IdleHistory.cpython-34.pyo
3.616 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
MultiCall.cpython-34.pyc
16.229 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
MultiCall.cpython-34.pyo
16.166 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
MultiStatusBar.cpython-34.pyc
1.898 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
MultiStatusBar.cpython-34.pyo
1.898 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ObjectBrowser.cpython-34.pyc
5.395 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ObjectBrowser.cpython-34.pyo
5.395 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
OutputWindow.cpython-34.pyc
4.44 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
OutputWindow.cpython-34.pyo
4.44 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ParenMatch.cpython-34.pyc
6.319 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ParenMatch.cpython-34.pyo
6.319 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
PathBrowser.cpython-34.pyc
4.021 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
PathBrowser.cpython-34.pyo
4.021 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
Percolator.cpython-34.pyc
4.03 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
Percolator.cpython-34.pyo
3.861 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
PyParse.cpython-34.pyc
11.256 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
PyParse.cpython-34.pyo
10.824 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
PyShell.cpython-34.pyc
47.078 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
PyShell.cpython-34.pyo
46.942 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
RemoteDebugger.cpython-34.pyc
14.312 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
RemoteDebugger.cpython-34.pyo
14.173 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
RemoteObjectBrowser.cpython-34.pyc
1.962 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
RemoteObjectBrowser.cpython-34.pyo
1.962 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ReplaceDialog.cpython-34.pyc
6.758 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ReplaceDialog.cpython-34.pyo
6.758 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
RstripExtension.cpython-34.pyc
1.327 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
RstripExtension.cpython-34.pyo
1.327 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ScriptBinding.cpython-34.pyc
6.916 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ScriptBinding.cpython-34.pyo
6.916 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ScrolledList.cpython-34.pyc
5.636 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ScrolledList.cpython-34.pyo
5.636 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
SearchDialog.cpython-34.pyc
3.282 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
SearchDialog.cpython-34.pyo
3.282 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
SearchDialogBase.cpython-34.pyc
7.532 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
SearchDialogBase.cpython-34.pyo
7.532 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
SearchEngine.cpython-34.pyc
7.298 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
SearchEngine.cpython-34.pyo
7.298 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
StackViewer.cpython-34.pyc
5.487 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
StackViewer.cpython-34.pyo
5.487 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ToolTip.cpython-34.pyc
3.957 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ToolTip.cpython-34.pyo
3.957 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
TreeWidget.cpython-34.pyc
15.29 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
TreeWidget.cpython-34.pyo
15.29 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
UndoDelegator.cpython-34.pyc
11.539 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
UndoDelegator.cpython-34.pyo
11.539 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
WidgetRedirector.cpython-34.pyc
6.952 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
WidgetRedirector.cpython-34.pyo
6.952 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
WindowList.cpython-34.pyc
3.161 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
WindowList.cpython-34.pyo
3.161 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ZoomHeight.cpython-34.pyc
1.369 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
ZoomHeight.cpython-34.pyo
1.369 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
__init__.cpython-34.pyc
0.424 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
__init__.cpython-34.pyo
0.424 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
__main__.cpython-34.pyc
0.272 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
__main__.cpython-34.pyo
0.272 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
aboutDialog.cpython-34.pyc
5.812 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
aboutDialog.cpython-34.pyo
5.812 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
configDialog.cpython-34.pyc
47.839 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
configDialog.cpython-34.pyo
47.839 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
configHandler.cpython-34.pyc
26.104 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
configHandler.cpython-34.pyo
26.104 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
configHelpSourceEdit.cpython-34.pyc
5.657 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
configHelpSourceEdit.cpython-34.pyo
5.657 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
configSectionNameDialog.cpython-34.pyc
3.849 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
configSectionNameDialog.cpython-34.pyo
3.849 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
dynOptionMenuWidget.cpython-34.pyc
2.38 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
dynOptionMenuWidget.cpython-34.pyo
2.38 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
help.cpython-34.pyc
9.521 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
help.cpython-34.pyo
9.521 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
idle.cpython-34.pyc
0.359 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
idle.cpython-34.pyo
0.359 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
idlever.cpython-34.pyc
0.538 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
idlever.cpython-34.pyo
0.538 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
keybindingDialog.cpython-34.pyc
10.758 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
keybindingDialog.cpython-34.pyo
10.758 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
macosxSupport.cpython-34.pyc
7.135 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
macosxSupport.cpython-34.pyo
7.022 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
rpc.cpython-34.pyc
20.514 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
rpc.cpython-34.pyo
20.413 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
run.cpython-34.pyc
12.35 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
run.cpython-34.pyo
12.301 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
tabbedpages.cpython-34.pyc
16.737 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
tabbedpages.cpython-34.pyo
16.737 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
textView.cpython-34.pyc
3.26 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
textView.cpython-34.pyo
3.26 KB
17 Apr 2024 5.10 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF