Your IP : 3.145.103.119
3
� 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.�darwin� � Z64Z32r Nl )�sys�platform�maxsizer � r r �7/opt/alt/python36/lib64/python3.6/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 j| |� | jdd� | jd|j� d |j� |s6dnd f � d| _d| _| j� | j ddd � | j
|p�d
t� � dt� � d�� | j
|� | j� | jd
| j� || _| jj� | jd| j� | jd| j� d| _|| _|s�| j� | j� 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&