MINI MINI MANI MO

Path : /lib64/python2.7/idlelib/
File Upload :
Current File : //lib64/python2.7/idlelib/configSectionNameDialog.pyc

ó
Eì]c@s}dZddlTddlZdefd„ƒYZedkryeƒZd„Ze	edd	d
eƒj
ƒejƒndS(s~
Dialog that allows user to specify a new config file section name.
Used to get new highlight theme and keybinding set names.
i˙˙˙˙(t*NtGetCfgSectionNameDialogcBs;eZd„Zd„Zd„Zdd„Zdd„ZRS(cCs>tj||ƒ|jddƒ|jdtdtƒ|j|ƒ|j|ƒ|jƒ|jd|j	ƒ||_
||_||_d|_
|jƒ|jƒ|jƒ|jjd|jjƒƒ|jd|jƒ|jƒd|jƒd|jƒ|jƒd|jƒdfƒ|jƒ|jƒd	S(
sŽ
        message - string, informational message to display
        usedNames - list, list of names already in use for validity check
        tborderwidthitheighttwidthtWM_DELETE_WINDOWts+%d+%diN(tToplevelt__init__t	configuret	resizabletFALSEttitlet	transienttgrab_settprotocoltCanceltparenttmessaget	usedNamestresultt
CreateWidgetstwithdrawtupdate_idletaskstmessageInfotconfigt	frameMaintwinfo_reqwidthtgeometrytwinfo_rootxtwinfo_widthtwinfo_rootytwinfo_heighttwinfo_reqheightt	deiconifytwait_window(tselfRRRR((s7/usr/lib64/python2.7/idlelib/configSectionNameDialog.pyR	s,


				


	
cCsšt|ƒ|_t|ƒ|_t|dddtƒ|_|jjdtdtdt	ƒt
|jdtdtd	d
dd
d|j
ƒ|_t|jd
|jddƒ}|jƒ|jjd	d
dd
ƒ|jd	d
dd
ƒt|ƒ}|jdtdtƒt|ddddd|jƒ|_|jjddddd	d
dd
ƒt|ddddd|jƒ|_|jjddddd	d
dd
ƒdS(NRitrelieftsidetexpandtfilltanchortjustifytpadxitpadyttextttextvariableRitOkitcommandtrowitcolumnRi(t	StringVartnametfontSizetFrametSUNKENRtpacktTOPtTRUEtBOTHtMessagetWtLEFTRRtEntryt	focus_settBOTTOMtXtButtonR/tbuttonOktgridRtbuttonCancel(R$t	entryNametframeButtons((s7/usr/lib64/python2.7/idlelib/configSectionNameDialog.pyR&s$$
%cCs½d}|jjƒ}|jƒ|sJtjddddd|ƒd}not|ƒdkr…tjdddd	d
d|ƒd}n4||jkrıtjddddd|ƒd}n|S(NiRs
Name ErrorRsNo name specified.Riis)Name too long. It should be no more than s30 characters.sThis name is already in use.(R4tgettstripttkMessageBoxt	showerrortlenR(R$tnameOkR4((s7/usr/lib64/python2.7/idlelib/configSectionNameDialog.pytNameOk:s"

		
	cCs5|jƒr1|jjƒjƒ|_|jƒndS(N(ROR4RIRJRtdestroy(R$tevent((s7/usr/lib64/python2.7/idlelib/configSectionNameDialog.pyR/OscCsd|_|jƒdS(NR(RRP(R$RQ((s7/usr/lib64/python2.7/idlelib/configSectionNameDialog.pyRTs	N(t__name__t
__module__RRROtNoneR/R(((s7/usr/lib64/python2.7/idlelib/configSectionNameDialog.pyRs
			t__main__cCs$d}ttddƒ}|jGHdS(NRsGet Names:The information here should need to be word wrapped. Test.(RtrootR(tkeySeqtdlg((s7/usr/lib64/python2.7/idlelib/configSectionNameDialog.pytrun[s		R-tDialogR0(t__doc__tTkinterRKRRRRtTkRVRYRCR8tmainloop(((s7/usr/lib64/python2.7/idlelib/configSectionNameDialog.pyt<module>s
P		

OHA YOOOO