Your IP : 18.188.218.134


Current Path : /opt/alt/python35/lib64/python3.5/idlelib/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/idlelib/__pycache__/configSectionNameDialog.cpython-35.opt-2.pyc



���]��@s~ddlTddljZGdd�de�ZedkrzddlZejdddd	d
�ddl	m
Z
e
e�dS)�)�*Nc@sUeZdZddd�Zdd�Zdd�Zdd	d
�Zddd�ZdS)
�GetCfgSectionNameDialogFcCsAtj||�|jdd�|jdtdt�|j|�|j|�|j�|jd|j	�||_
||_||_|j
�|j�|j�|jjd|jj��|jd|j�|j�d|j�d|j�|s|j�d|j�dndf�|j�|j�dS)	N�borderwidth�Zheight�widthZWM_DELETE_WINDOWz+%d+%d��d)�Toplevel�__init__Z	configureZ	resizable�FALSE�titleZ	transientZgrab_set�protocol�Cancel�parent�message�
used_names�create_widgetsZwithdrawZupdate_idletasks�messageInfo�config�	frameMainZwinfo_reqwidthZgeometryZwinfo_rootxZwinfo_widthZwinfo_rootyZwinfo_heightZwinfo_reqheightZ	deiconifyZwait_window)�selfrrrrZ_htest�r�</opt/alt/python35/lib64/python3.5/configSectionNameDialog.pyr
s,


			


		0
z GetCfgSectionNameDialog.__init__cCs�t|j�|_t|j�|_t|dddt�|_|jjdtdt	dt
�t|jdtdt
d	d
dd
d|j�|_t|jd
|jdd�}|j�|jjd	d
dd
�|jd	d
dd
�t|dd�}|jdt�t|ddddd|j�|_|jjdt
d	d
�t|ddddd|j�|_|jjdtd	d
�dS)NrrZreliefZside�expand�fillZanchorZjustifyZpadxrZpady�textZtextvariabler��Ok�Zcommandr)Z	StringVarr�nameZfontSizeZFrameZSUNKENr�packZTOP�TRUEZBOTHZMessage�WZLEFTrrZEntryZ	focus_setZBOTTOMZButtonrZbuttonOkrZbuttonCancelZRIGHT)rZ	entryNameZframeButtonsrrrr+s$
z&GetCfgSectionNameDialog.create_widgetscCs�|jj�j�}|s:tjddddd|�nlt|�dkrutjdddddd|�d	}n1||jkr�tjdddd
d|�d	}|S)Nrz
Name ErrorrzNo name specified.rrz)Name too long. It should be no more than z30 characters.�zThis name is already in use.)r�get�strip�tkMessageBoxZ	showerror�lenr)rrrrr�name_ok@s	
zGetCfgSectionNameDialog.name_okNcCs)|j�}|r%||_|j�dS)N)r(�result�destroy)r�eventrrrrrSs	zGetCfgSectionNameDialog.OkcCsd|_|j�dS)Nr#)r)r*)rr+rrrrYs	zGetCfgSectionNameDialog.Cancel)�__name__�
__module__�__qualname__r
rr(rrrrrrr
s
 r�__main__z"idlelib.idle_test.test_config_name�	verbosityr�exitF)�run)�tkinterZtkinter.messageboxZ
messageboxr&r	rr,Zunittest�mainZidlelib.idle_test.htestr2rrrr�<module>s
S

?>