File: C:/Python311/Lib/idlelib/__pycache__/help_about.cpython-311.pyc
�
�ne�# � �z � d Z ddlZddlZddlZddlmZmZ ddlmZm Z m
Z
mZmZ ddlm
Z
mZmZmZmZmZmZmZmZmZ ddlmZ e� � Zej dk rej dk rd nd
Zn e� � d dd� Z G d� d
e� � Zedk r'ddlmZ eddd�� � ddl m!Z! e!e� � dS dS )zAbout Dialog for IDLE
� N)�python_version�architecture)�Toplevel�Frame�Label�Button�
PhotoImage)
�SUNKEN�TOP�BOTTOM�LEFT�X�BOTH�W�EW�NSEW�E)�textview�darwinl �64�32� c �b � e Zd ZdZdddd�d�Zd� Zd� Zd� Zd � Zd
� Z d� Z
d� Zd
� Zdd�Z
dd�ZdS )�AboutDialogz!Modal about dialog for idle
NF)�_htest�_utestc �V � t j | |� � | � d�� � | � d|� � � dz |� � � |sdndz fz � � d| _ d| _ | � � � | � dd� � � | �
|pd
t � dt � d�� � | �
|� � | � � � | � d
| j � � || _ | j � � � | � d| j � � | � d| j � � d| _ || _ |s*| � � � | � � � dS 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)�WM_DELETE_WINDOWz<Return>z<Escape>N)r �__init__� configure�geometry�winfo_rootx�winfo_rooty�bg�fg�create_widgets� resizable�title�pyver�bits� transient�grab_set�protocol�ok�parent� button_ok� focus_set�bind�_current_textviewr � deiconify�wait_window)�selfr5 r. r r s �&C:\Python311\Lib\idlelib\help_about.pyr% zAboutDialog.__init__ s� � � ��$��'�'�'����1��%�%�%��
�
�h��*�*�,�,�R�/��*�*�,�,��.G�b�b�C�H�"J� J� K� K� K� ���������������e�5��1�1�1��
�
�5� 6�5��5�5�$�5�5�5� 7� 7� 7����v�����
�
�����
�
�(�$�'�2�2�2������ � �"�"�"�� � �*�d�g�&�&�&�� � �*�d�g�&�&�&�!%������� ��N�N������������ � � c �t �� t | dt �� � }t | � � }|� t t �� � |� t
dt �� � t |d| j �� � | _ | j � dd� � � t || j
�
� � }|� dt �� � t |d| j | j
d
�� � }|�
ddt dd�� � | � � � � d� � }|dk rdnd}t"