ó V Qc@sfddlZddlZd„Zd„Zd„ZedkrbejƒZeeƒejƒndS(iÿÿÿÿNc Cs+tj|dtjddƒ}tj|ddƒ}|jdddtjdd d d d tjƒd|d „|d stopencmdt/t orientationtokttexttOkt underlineitcommandtwidthitcanceltCancel(tTixtFrametRAISEDtTreetpacktBOTHtLEFTtNonetadddirt ButtonBoxt HORIZONTALtaddtdestroytBOTTOMtXtTOP(R ttopttreetbox((s-/usr/lib64/python2.7/Demo/tix/samples/Tree.pyt RunSamples. ((c Csš|dkrd}ntjj|ƒ}|jj|dtjd|d|jjdddƒƒy!tj |ƒ|j |dƒWntj k r•nXdS( NR titemtypeRtimagettixtgetimagetfoldertopen( tostpathtbasenamethlistR"Rt IMAGETEXTttktcalltlistdirtsetmodeterror(R(R R((s-/usr/lib64/python2.7/Demo/tix/samples/Tree.pyR#s   c CsÑ|jj|ƒ}|r<x!|D]}|jj|ƒqWntj|ƒ}x|D]w}tjj|d|ƒrŠt||d|ƒqR|jj|d|dt j d|d|j j dddƒƒqRWdS(NR R+RR,R-R.tfile( R4t info_childrent show_entryR1R8R2tisdirRR"RR5R6R7(R(R tentriestentrytfilesR;((s-/usr/lib64/python2.7/Demo/tix/samples/Tree.pyR9s  &t__main__( RR1R*RRt__name__tTktroottmainloop(((s-/usr/lib64/python2.7/Demo/tix/samples/Tree.pyts