$62 GRAYBYTE WORDPRESS FILE MANAGER $33

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__//help.cpython-34.pyo
�
e f�%�@sNdZddlmZddlmZmZmZmZmZddl	m
Z
mZmZm
Z
mZmZmZddl	mZddlmZdZer�ddlmZnGd	d
�d
e�ZGdd�de
�ZGd
d�de�ZGdd�de�Zdd�Zdd�ZedkrJddlmZee�ndS)a help.py: Implement the Idle help menu.
Contents are subject to revision at any time, without notice.


Help => About IDLE: diplay About Idle dialog

<to be moved here from aboutDialog.py>


Help => IDLE Help: Display help.html with proper formatting.
Doc/library/idle.rst (Sphinx)=> Doc/build/html/library/idle.html
(help.copy_strip)=> Lib/idlelib/help.html

HelpParser - Parse help.html and and render to tk Text.

HelpText - Display formatted help.html.

HelpFrame - Contain text, scrollbar, and table-of-contents.
(This will be needed for display in a future tabbed window.)

HelpWindow - Display HelpFrame in a standalone window.

copy_strip - Copy idle.html to help.html, rstripping each line.

show_idlehelp - Create HelpWindow.  Called in EditorWindow.help_dialog.
�)�
HTMLParser)�abspath�dirname�isdir�isfile�join)�Tk�Toplevel�Frame�Text�	Scrollbar�Menu�
Menubutton)�font)�idleConfF)rc@sUeZdZdZdd�Zddd�Zdd�Zd	d
�Zdd�Zd
S)�
HelpParserz�Render help.html into a text widget.

    The overridden handle_xyz methods handle a subset of html tags.
    The supplied text should have the needed tag configurations.
    The behavior for unsupported tags, such as table, is undefined.
    cCs�tj|dd�||_d|_d|_d|_d|_d|_d|_d|_	d|_
d|_g|_d|_
dS)NZconvert_charrefsT�Fr)r�__init__�text�tags�chartags�show�hdrlink�level�pre�hprefix�	nested_dl�
simplelist�toc�header)�selfr�r!�1/opt/alt/python34/lib64/python3.4/idlelib/help.pyr1s											zHelpParser.__init__�cCs>|j|7_|jdkr$dndt|j�|_dS)Nrr�l)r�strr)r �amtr!r!r"�indent@szHelpParser.indentcCs�d}x)|D]!\}}|dkr
|}q
q
Wd}|dkr\|dkr\d|_nD|dkr�|dkr�d|_n |dkr�|d	kr�d
}n�|dkr�|dkr�d|_n�|dkr�|d
kr�d|_n�|dkrd|_n�|d#krJ|jd�d$kr4d}d|_n	d|_|j�nV|dkrt|jdkr�d|_q�n,|dkr�|jr�dnd}n|dkr�|js�d
nd}d|_n�|dkr�|j�d}n�|dkr$d|_|jr|jj	dd
�nd|_
n||dkrH|dkrHd|_nX|dkr`||_
n@|d%kr�|jr�d|_|jj	dd
�n||_
n|jr�|jj	d||j
|jf�nd"S)&zHandle starttags in help.html.r�classZdivZsectionTZ
sphinxsidebarF�p�firstz

�spanrZversionmodified�em�ul�olZsimpler#�
ZdlrZliz
* z

* Zdt�dd�end�preblock�aZ
headerlink�h1�h2�h3N)r-r.���)r5r6)
rr�findrr'rrrr�insertrrr)r �tagZattrsZclass_r3�v�sr!r!r"�handle_starttagDsd
		

						zHelpParser.handle_starttagcCs�|dkrM|jd�|jr�|jj|j|jjd�f�q�np|dkred|_nX|d	kr}d
|_n@|dkr�d
|_	d|_
n|dkr�|jdd�ndS)zHandle endtags in help.html.r4r5r6rr9r+r,rr3Frr-r0r.r&r#N)zh1zh2zh3)zspanzem)zulzddzolr7)r'rr�appendrr�indexrrrr)r r:r!r!r"�
handle_endtagzs
	+	zHelpParser.handle_endtagcCs�|jr�|jr�|jr"|n|jdd�}|jdkrb|d|jd��|_n|jd
kr�|jdkr�|dt|j��|jkr�|t|j�d�j�}n|j	|7_	n|j
jd	||j|jf�ndS)z"Handle date segments in help.html.r/� r4rr5r6rNr1)zh1zh2zh3)
rrr�replacerr?r�len�striprrr9r)r �data�dr!r!r"�handle_data�s!""zHelpParser.handle_dataN)	�__name__�
__module__�__qualname__�__doc__rr'r=r@rGr!r!r!r"r*s6rc@s.eZdZdZdd�Zdd�ZdS)�HelpTextzDisplay help.html.c	Cs0tjddddd�}tjddddd�}d|d}tj||d	d
ddd
dddd|d|�|jdddg�}|jdddg�}|df|d<|jdd|ddf�|jdd|ddf�|jdd|ddf�|jdd|d df�|jd!d|dfd"d#�|jd$d|d%fd&d'dd(d)d*d"d+�|jd,d&d'd-d'�|jd.d&d/d-d/�|jd0d&d1d-d1�|jd2d&d3d-d3�t|�|_t|d4d5��}|j	�}Wd6QX|jj
|�d7|d8<d6S)9z'Configure tags and feed file to parser.�mainZEditorWindow�width�type�intZheight��ZwrapZwordZhighlightthicknessrZpadx�ZborderwidthZ
TkDefaultFontZarialZ	helveticaZTkFixedFontZmonacoZcourier�rr,Zitalicr4�Zboldr5�r6�r�
backgroundz#f6f6ffr2�
Zlmargin1�r#ZreliefZsolidz#eeffcc�l1Zlmargin2�l2�2�l3�K�l4�d�encodingzutf-8NZdisabled�state)rZ	GetOptionrr�findfontZ
tag_configurer�parser�open�readZfeed)	r �parent�filenameZuwideZuhighZ
normalfontZ	fixedfont�f�contentsr!r!r"r�s0zHelpText.__init__cCs�x�|D]�}|j�dd�tjd|�D�krdtjd|ddd|�}|j�dS|j�dd�tjd|�D�kr|SqWd	S)
z4Return name of first font family derived from names.css|]}|j�VqdS)N)�lower)�.0�xr!r!r"�	<genexpr>�sz$HelpText.findfont.<locals>.<genexpr>�root�name�existsTZfamilycss|]}|j�VqdS)N)rl)rmrnr!r!r"ro�sN)rl�tkfont�namesZFontZactualZfamilies)r rtrqrr!r!r"rd�s
+zHelpText.findfontN)rHrIrJrKrrdr!r!r!r"rL�srLc@s.eZdZdZdd�Zdd�ZdS)�	HelpFramez&Display html text, scrollbar, and toc.cCs�tj||�t||�}|d|d<t|d|j�}|j|d<|jddd�|jddd�|j|�j	ddddd	d
�|j	ddddd	d�|j	ddddd	d
�dS)NrX�commandZyscrollcommandr�weightr#�column�row�stickyZnw�nsew��ns)
r
rrLr�yview�setZrowconfigureZcolumnconfigure�toc_menu�grid)r rhrirZscrollr!r!r"r�s
%zHelpFrame.__init__c	stt|dd�}t|dd�}x?�jjD]1\}}|jd|d|�fdd��q1W||d	<|S)
z+Create table of contents as drop-down menu.rZTOCZtearoffFZlabelrvcs
�j|�S)N)r~)�dex)rr!r"�<lambda>�sz$HelpFrame.toc_menu.<locals>.<lambda>Zmenu)rr
rerZadd_command)r rrZdropZlblr�r!)rr"r��s)
zHelpFrame.toc_menuN)rHrIrJrKrr�r!r!r!r"ru�sruc@s"eZdZdZdd�ZdS)�
HelpWindowz!Display frame with rendered html.cCstj||�|j|�|jd|j�t||�jdddddd�|jddd�|jddd�dS)	NZWM_DELETE_WINDOWrxrryrzr{rwr#)	r	rZwm_titleZprotocolZdestroyrur�Zgrid_columnconfigureZgrid_rowconfigure)r rhri�titler!r!r"r�s
%zHelpWindow.__init__N)rHrIrJrKrr!r!r!r"r��sr�cCs�tttttt����ddddd�}tttt��d�}t|d��G}t|d��/}x%|D]}|j|j�d	�qyWWd
QXWd
QXtd�d
S)zCCopy idle.html to idlelib/help.html, stripping trailing whitespace.ZDocZbuildZhtmlZlibraryz	idle.htmlz	help.html�rb�wbs
Nzidle.html copied to help.html)rrr�__file__rf�write�rstrip�print)�srcZdstZinn�out�liner!r!r"�
copy_strip�s
'r�cCs?tttt��d�}t|�s+dSt||d�dS)z7Create HelpWindow; called from Idle Help event handler.z	help.htmlNz	IDLE Help)rrrr�rr�)rhrir!r!r"�
show_idlehelp�sr��__main__)�runN) rKZhtml.parserrZos.pathrrrrrZtkinterrr	r
rrr
rrrsZidlelib.configHandlerrZuse_ttkZtkinter.ttkrrLrur�r�r�rHZidlelib.idle_test.htestr�r!r!r!r"�<module>s"(4m*


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