
|
Server : Apache System : Linux 182.49.167.72.host.secureserver.net 4.18.0-553.92.1.el8_10.x86_64 #1 SMP Wed Jan 14 06:31:58 EST 2026 x86_64 User : kikai ( 1014) PHP Version : 8.3.30 Disable Function : NONE Directory : /opt/python38/lib/python3.8/tkinter/__pycache__/ |
Upload File : |
U
�i�_�, � @ s� d Z ddlT ddlmZ ddlZG dd� d�ZG dd� de�ZG d d
� d
e�ZG dd� de�Zd
d� ZG dd� de�Z dd� Z
G dd� de�Zdd� Ze
dkr�dd� Ze� dS )a& This modules handles dialog boxes.
It contains the following public symbols:
SimpleDialog -- A simple but flexible modal dialog box
Dialog -- a base class for dialogs
askinteger -- get an integer from the user
askfloat -- get a float from the user
askstring -- get a string from the user
� )�*)�
messageboxNc @ sL e Zd Zdg ddddfdd�Zddd�Zd d
� Zdd� Zd
d� Zdd� ZdS )�SimpleDialog� Nc C s |rt ||d�| _n
t |�| _|r:| j�|� | j�|� t| j|dd�| _| jjdtd� t| j�| _ | j �� || _
|| _|| _| j�
d| j� tt|��D ]L}|| } t| j | | |fdd�d �}
||kr�|
jtd
d� |
jttdd� q�| j�d
| j� | �|� d S )N)�class_i� )�textZaspect� )�expand�fill�<Return>c S s
| � |�S �N)�done��self�num� r �3/opt/python38/lib/python3.8/tkinter/simpledialog.py�<lambda>7 � z'SimpleDialog.__init__.<locals>.<lambda>�r �command� )ZreliefZborderwidth)�sider
r �WM_DELETE_WINDOW)�Toplevel�root�titleZiconnameZMessage�message�packZBOTH�Frame�framer �cancel�default�bind�return_event�range�len�ButtonZconfigZRIDGE�LEFT�protocol�wm_delete_window�_set_transient)r �masterr �buttonsr"