Hacked By AnonymousFox
B
� f# � @ s� d Z ddlZddlZddlmZmZ ddlmZmZm Z m
Z
mZ ddlmZm
Z
mZmZmZmZmZmZmZmZ ddlmZ dd� ZG d d
� d
e�Zedkr�ddlmZ ed
ddd� ddlmZ ee� dS )zAbout Dialog for IDLE
� N)�python_version�architecture)�Toplevel�Frame�Label�Button�
PhotoImage)
�SUNKEN�TOP�BOTTOM�LEFT�X�BOTH�W�EW�NSEW�E)�textviewc C s2 t jdkrt jdkrdS dS t� d dd� S dS )zReturn bits for platform.�darwinl Z64Z32r N� )�sys�platform�maxsizer � r r �7/opt/alt/python37/lib64/python3.7/idlelib/help_about.py�
build_bits s
r c @ sv e Zd ZdZdddd�dd�Zdd� Zd d
� Zdd� Zd
d� Zdd� Z dd� Z
dd� Zdd� Zddd�Z
ddd�ZdS )�AboutDialogz!Modal about dialog for idle
NF)�_htest�_utestc C s� t �| |� | jdd� | �d|�� d |�� |s6dnd f � d| _d| _| �� | j ddd � | �
|p�d
t� � dt� � d�� | �
|� | �� | �d
| j� || _| j�� | �d| j� | �d| j� d| _|| _|s�| �� | �� dS )a Create popup, do not return until tk widget destroyed.
parent - parent of this dialog
title - string which is title of popup dialog
_htest - bool, change box location when running htest
_utest - bool, don't wait_window when running unittest
� )�borderwidthz+%d+%d� �d z#bbbbbbz#000000F)�height�widthzAbout IDLE z (z bit)ZWM_DELETE_WINDOWz<Return>z<Escape>N)r �__init__Z configureZgeometryZwinfo_rootxZwinfo_rooty�bg�fg�create_widgetsZ resizable�titler r Z transientZgrab_setZprotocol�ok�parent� button_okZ focus_setZbind�_current_textviewr Z deiconifyZwait_window)�selfr+ r) r r r r r r% s.
zAboutDialog.__init__c C s� t | dtd�}t | �}|jttd� |jtdtd� t|d| jd�| _ | j jddd � t || j
d
�}|jdtd� t|d| j| j
d
d�}|j
ddtddd� | j�dd�}|dkr�dnd}tj�tj�tj�t��dd|� ��}t| �� |d�| _t|| j| j
d�}|j
ddtdddd� d} t|| t| j| j
d�}
|
j
ddtdddd� t|d t| j| j
d�}|j
d!ddtddd"� t|d#t� d d� d$ t| j| j
d�}|j
d%ddtddd"� t |d&td| j
d'�j
d(dtdddd� t|d)t� | j| j
d*�}
|
j
d+dtddd� t|d,| | j| j
d*�}|j
d+d&tddd� t || j
d
�}|j
dddtd-� t|d.d(| j
| jd/�| _ | j jtddd0� t|d1d(| j
| j!d/�| _"| j"jtddd0� t|d2d(| j
| j#d/�| _$| j$jtddd0� t |d&td| j
d'�j
d3dtdddd� t|d4t� | j| j
d*�}|j
d5dtddd� t || j
d
�}|j
d6ddtd-� t|d7d(| j
| j%d/�| _&| j&jtddd0� t|d8d(| j
| j'd/�| _(| j(jtddd0� t|d2d(| j
| j)d/�| _*| j*jtddd0� d S )9Nr )r �relief)�side�fillT)r0 �expandr1 ZClose)�text�commandr )�padx�pady)r&