mς &U²Ic@sydZdkTdkZdefd„ƒYZedjo<eƒZd„Ze eddd eƒi ƒei ƒndS( s~ Dialog that allows user to specify a new config file section name. Used to get new highlight theme and keybinding set names. (t*NtGetCfgSectionNameDialogcBs;tZd„Zd„Zd„Zdd„Zdd„ZRS(NcCs>ti||ƒ|iddƒ|idtdtƒ|i|ƒ|i|ƒ|i ƒ|i d|i ƒ||_||_ ||_ d|_|iƒ|iƒ|iƒ|iid|iiƒƒ|id|iƒ|iƒd|iƒd|iƒ|iƒd|iƒdfƒ|iƒ|iƒd S( sŽ message - string, informational message to display usedNames - list, list of names already in use for validity check t borderwidthitheighttwidthtWM_DELETE_WINDOWts+%d+%diN(tToplevelt__init__tselftparentt configuret resizabletFALSEttitlet transienttgrab_settprotocoltCanceltmessaget usedNamestresultt CreateWidgetstwithdrawtupdate_idletaskst messageInfotconfigt frameMaintwinfo_reqwidthtgeometryt winfo_rootxt winfo_widtht winfo_rootyt winfo_heighttwinfo_reqheightt deiconifyt wait_window(R R RRR((t</data/zmath/lib/python2.4/idlelib/configSectionNameDialog.pyR s&          [ c Csšt|ƒ|_t|ƒ|_t|dddtƒ|_|iidtdt dt ƒt |idt dt d d d d d |iƒ|_t|id |iddƒ}|iƒ|iid d d d ƒ|id d d d ƒt|ƒ}|idtdtƒt|d dddd|iƒ|_|iiddddd d d d ƒt|d dddd|iƒ|_|iiddddd d d d ƒdS(NRitrelieftsidetexpandtfilltanchortjustifytpadxitpadyttextt textvariableRitOkitcommandtrowitcolumnRi(t StringVarR tnametfontSizetFrametSUNKENRtpacktTOPtTRUEtBOTHtMessagetWtLEFTRRtEntryt entryNamet focus_sett frameButtonstBOTTOMtXtButtonR0tbuttonOktgridRt buttonCancel(R RCRA((R%R&s$!   % cCsΓd}|iiƒ}|iƒ|p&tiddddd|ƒd}ntt|ƒdjo*tidddd d d|ƒd}n7||ijo&tidddd d|ƒd}n|S( NiRs Name ErrorRsNo name specified.R iis)Name too long. It should be no more than s30 characters.sThis name is already in use.( tnameOkR R5tgettstript tkMessageBoxt showerrortlenR(R RJR5((R%tNameOk:s"         cCs7|iƒo&|iiƒiƒ|_|iƒndS(N(R RPR5RKRLRtdestroy(R tevent((R%R0Os cCsd|_|iƒdS(NR(R RRQ(R RR((R%RTs (t__name__t __module__RRRPtNoneR0R(((R%Rs     t__main__cCs$d}ttddƒ}|iGHdS(NRsGet Names:The information here should need to be word wrapped. Test.(tkeySeqRtroottdlgR(RYRW((R%trun[s  R.tDialogR1( t__doc__tTkinterRMRRRStTkRXRZRFR9tmainloop(RZRRMRX((R%t?s P