Your IP : 18.116.24.238
3
��2a=, � @ s� d dl mZ d dlmZmZmZmZ d dlmZ d dl m
Z
mZmZm
Z
d dlmZmZ d dl mZ d dlmZ G dd � d e�ZG d
d� de�ZG dd
� d
e�ZG dd� de
�Zdd� Zdd� Zedkr�d dlmZ edddd� d dlmZ ee� dS )� )�
HTMLParser)�abspath�dirname�isfile�join)�python_version)�Toplevel�Frame�Text�Menu)�
Menubutton� Scrollbar)�font)�idleConfc @ s6 e Zd Zdd� Zd
dd�Zdd� Zdd � Zd
d� ZdS )�
HelpParserc C sZ t j| dd� || _d| _d| _d| _d| _d| _d| _d| _ d| _
d| _g | _d| _
d S )NT)Zconvert_charrefs� Fr )r �__init__�text�tags�chartags�show�hdrlink�level�pre�hprefix� nested_dl�
simplelist�toc�header)�selfr � r �)/opt/alt/python36/lib64/python3.6/help.pyr 3 s zHelpParser.__init__� c C s0 | j |7 _ | j dkrdndt| j � | _d S )Nr r �l)r �strr )r �amtr r r! �indentB s zHelpParser.indentc C s d}x|D ]\}}|dkr
|}q
W d}|dkr@|dkr@d| _ �n�|dkrZ|dkrZd| _ �n�|dkrr|d krrd
}�nv|dkr�|dkr�d| _�n\|dkr�|d
kr�d| _�nB|dkr�d| _�n0|d"kr�|jd�d#kr�d}d| _nd| _| j� � n�|dk�r
| jdk�r�d| _n�|dk�r&| j�r dnd}n�|dk�rH| j�s<d
nd}d| _n�|dk�r`| j� d}n�|dk�r�d| _| j �r�| jj dd
� d| _
nZ|dk�r�|dk�r�d| _n>|dk�r�|| _
n,|d$k�r�| j �r�d| _| jj dd
� || _
| j �r| jj d|| j
| jf� d S )%Nr �classZdiv�sectionTZ
sphinxsidebarF�p�firstz
�spanr Zversionmodified�em�ul�olZsimpler"