Viewing 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
Back to Directory File Manager