V Qc@sfddlZddlZdZdZdZedkrbejZeeejndS(iNc Cs+tj|dtjdd}tj|dd}|jdddtjdd d d d tjd|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|jjdddy!tj ||j |dWntj k rnXdS( 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|rt||d|qR|jj|d|dt j d|d|j j dddqRWdS(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