/opt/imh/python3.13/lib/python3.13/idlelib/__pycache__
Edit: /opt/imh/python3.13/lib/python3.13/idlelib/__pycache__/help.cpython-313.pyc (16312B)
eC. 2 S r SSKJr SSKJrJrJrJr SSKJ r SSK
JrJrJ
r
SSKJrJrJrJr SSK
Jr SSKJr SS KJr " S
S\5 r " S S
\5 r " S S\5 r " S S\5 rS rS r\S:X a SSK J!r! \!" SSSS9 SSK"J#r# \#" \5 gg)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
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 the text part of idle.html to help.html while rstripping each line.
show_idlehelp - Create HelpWindow. Called in EditorWindow.help_dialog.
)
HTMLParser)abspathdirnameisfilejoin)python_version)ToplevelTextMenu)Frame
Menubutton ScrollbarStylefont)idleConf)color_configc : \ rS rSrSrS rS
S jrS rS rS r Sr
g )
HelpParser+ af 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.
c [ R " U SS9 Xl SU l SU l SU l SU l SU l SU l SU l SU l
/ U l SU l S U l
g )NT)convert_charrefs Fr )r __init__texttagschartagshdrlinklevelprehprefix nested_dl
simplelisttocheaderprevtag)selfr s 2/opt/imh/python3.13/lib/python3.13/idlelib/help.pyr HelpParser.__init__4 sd D48
c U =R U-
sl U R S:X a SU l gS[ U R 5 - U l g)z#Change indent (+1, 0, -1) and tags.r r lN)r strr )r' amts r( indentHelpParser.indentC s4
c
**/B s3tzz?/B r* c 2 SnU H u pEUS:X d M
UnM SnUS:X ac U R ( aR U R S ( d> U R R SS5 nU( a UR 5 ( d SOSnGOZUS :X a US
:X a S
U l GOEUS :X a US:X a SU l GO0US:X a SU l GO!US
; a7 UR S5 S:w a
SnSU l OSU l U R 5 OUS:X a U R S: a SU l OUS:X a SnOUS:X a U R ( d SOSnSU l OUS:X a U R 5 SnOUS
:X a+ SU l
U R R SS5 SU l OPUS:X a US:X a SU l
O