V Qc@sddlZddlZddlZddlTdZdZdd dYZedkrddlZddl Z yej Z ee Wqe j \ZZZdZxAe jeeeD]&Zeed Zejd eZqWqXndS( iN(t*icCs$t|}|j|jdS(N(t DemoDirListtmainlooptdestroy(troottdirlist((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyt RunSamples  RcBs>eZdZdZdZdZdZdZRS(c Csc||_d|_|j}|jd|dtj|dtdd}tj||_d|jj d#strelieftbdii(twidthttexts >> tpadyitlabelsInstallation Directory:t labelsidettoptoptionss entry.width 40 label.anchor w stix option get fixed_fonttfontt textvariablecSs|j||S(N(t copy_name(tdirtentR ((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyR KstcommandscSs |jS(N(tokcmd(R ((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyR Ostexpandtyestfilltbothtsidetpadxitanchortst orientationt horizontaltoktOkt underlineicSs |jS(N(R(R ((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyR ZstcanceltCancelcSs |jS(N(R(R ((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyR \stx(Rtexittwinfo_toplevelt wm_protocoltTixtFrametRAISEDtDirListRthlisttButtontbtnt LabelEntryRttktevaltentrytcopytostcurdirt dlist_dirtbindtpacktTOPtBOTHtLEFTtXt ButtonBoxtaddtBOTTOM(R twtzRRtbox((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyt__init__s6    +%1  cCs?|jd|_|jjdd|jjd|jdS(Ntvalueitend(tcgetR<R8tdeletetinsert(R RR((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyR`scCs|jdS(N(R(R ((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyRgscCs d|_dS(Ni(R+(R ((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyRkscCs-x&|jdkr(|jjjtqWdS(Ni(R+RR6t dooneeventtTCL_ALL_EVENTS(R ((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyRnscCs|jjdS(N(RR(R ((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyRrs(t__name__t __module__RIRRRRR(((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyRs  B    t__main__sError running the demo script: s sTix Demo Error((R.R:R9t TkconstantsRPRRRQt tkMessageBoxt tracebacktTkRtsystexc_infotttvttbRtformat_exceptiontlinet showerrortd(((s0/usr/lib64/python2.7/Demo/tix/samples/DirList.pyts$  [