� Afc@s�ddlZddlZddlZddlZddlTddlmZddgZddgZdZx/eD]'Z ej j e �roe Z d ZqoqoWdZ x/eD]'Z ej j e �r�e Zd Z q�q�We s�e r\ejjd �esd ejdZejjd e�ne sLd ejdZejjd e�nejd �n[[ d�Zddd��YZd�Ze�dS(i����N(t*(tManPages/depot/sundry/man/manns/usr/local/man/manns/depot/sundry/man/man3s/usr/local/man/man3iis sgFailed to find mann directory. Please add the correct entry to the MANNDIRLIST at the top of %s script.s%s sgFailed to find man3 directory. Please add the correct entry to the MAN3DIRLIST at the top of %s script.cCsktj|�}g}xE|D]=}|dd!dkr|ddkr|j|d �qqW|j�|S(Ni����i����t.t ln123456789(tostlistdirtappendtsort(tmandirtfilestnamestfile((s0/usr/lib64/python2.7/Demo/tkinter/guido/tkman.pyt listmanpages0s # t SelectionBoxcBs�eZdd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z d�Z d �Z d �Z d �Zd �Zd �ZRS(cCs�g|_t|dd�|_|jjdddt�|jj|_t|jdd�|_|jjdddt�t|jdd�|_|jjd tdddt�t|jdd �|_ |j jd t dddt�t |�|_ t |j dd d d dtdd�|_|jjd t�t|jdd�|_|jjdddtd|j d|j�|jjdddtd|j d|j�|j|jds s(6tchoicestFrameRtpacktBOTHtmasterRRtLEFTRtRIGHTt StringVart chaptervart MenubuttontRAISEDRtTOPtMenuRtadd_radiobuttontMAN3DIRt newchaptertMANNDIRtListboxtSUNKENR!tButtontentry_cbR$tEntryR%tXR&tNONEt search_cbR't BooleanVartcasevart CheckbuttontFLATR(R)tLabelR*tBOTTOMRRtbindt listbox_cbt entry_tabt search_tabttext_tabt focus_settset(tselfR2((s0/usr/lib64/python2.7/Demo/tkinter/guido/tkman.pyt__init__;s�                    cCs/|jj�}g|_|jt|��dS(N(R6tgetR.taddlistR (RTR((s0/usr/lib64/python2.7/Demo/tkinter/guido/tkman.pyR=�s cCs=||jkr/|jj|�|jj�n|j�dS(N(R.RRtupdate(RTtchoice((s0/usr/lib64/python2.7/Demo/tkinter/guido/tkman.pyt addchoice�scCs1||jt|j�)|jj�|j�dS(N(R.tlenRRX(RTtlist((s0/usr/lib64/python2.7/Demo/tkinter/guido/tkman.pyRW�s cGs|j�dS(N(RX(RTte((s0/usr/lib64/python2.7/Demo/tkinter/guido/tkman.pyRB�scCsQ|jj�}|rMt|�dkrM|jj|d�}|j|�ndS(Nii(R!t curselectionR[RVt show_page(RTR]t selectionR((s0/usr/lib64/python2.7/Demo/tkinter/guido/tkman.pyRN�scGs|j|jj��dS(N(t search_stringR)RV(RTR]((s0/usr/lib64/python2.7/Demo/tkinter/guido/tkman.pyRF�scCs|jj�dS(N(R)RR(RTR]((s0/usr/lib64/python2.7/Demo/tkinter/guido/tkman.pyRO�scCs|jj�dS(N(R%RR(RTR]((s0/usr/lib64/python2.7/Demo/tkinter/guido/tkman.pyRP�scCs|jj�dS(N(R%RR(RTR]((s0/usr/lib64/python2.7/Demo/tkinter/guido/tkman.pyRQ�scCs�|jj�}t|t|�d�|j�}|sF|jj�n|jjdt ��d}x9|D]1}||kr�d}n|jj t �|�qiW|r�|S|jj �}|dkr�|jjd�SdS(NcSs|| |kS(N((Rtkeytn((s0/usr/lib64/python2.7/Demo/tkinter/guido/tkman.pyt�tii( R%RVtfilterR[R.RtbellR!tdeletetAtEndtinserttsize(RTRbtokt exactmatchtitemRc((s0/usr/lib64/python2.7/Demo/tkinter/guido/tkman.pyt updatelist�s     cCsF|j�}|rB|j|�|jjdt��|j�ndS(Ni(RoR_R%RhRi(RTR((s0/usr/lib64/python2.7/Demo/tkinter/guido/tkman.pyRX�s   cCs]d|jj�|f}tjd|d�}|jj�||jd<|jj|�dS(Ns%s/%s.?snroff -man %s | ul -itrR(R6RVRtpopenRtkillR*t parsefile(RTRR tfp((s0/usr/lib64/python2.7/Demo/tkinter/guido/tkman.pyR_�s   cCs`|s|jj�dGHdS|jj�s7tj}nd}y.|r[tj||�}ntj|�}Wn-tjk r�}|jj�dG|GHdSX|j j t ��}t j |t j|d� �}|j j t��}t j |t j|d� �}|} d} x4|d}||krM| dkr8Pn| }d}d} n|j jd|d|�} |j| �} | dkrd} tdt|jd���} y |j jdt�t��Wntk r�nX|j jdd || fd || | f�|j jt �d || f�|j jt ��PqqW| s\|jj�ndS( NsEmpty search strings Regex error:Riis%d.0 linestarts %d.0 lineendtsels%d.%d(RRgRHRVtret IGNORECASEtNonetcompileterrorRtindextAtInserttstringtatoitfindRiR)tmaxR[tgroupt tag_removet AtSelFirstt AtSelLasttTclErrorttag_addtmark_settyview_pickplace(RTR)tmaptprogtmsgtheretlinenotendt endlinenot wraplinenotfoundtlinetiRc((s0/usr/lib64/python2.7/Demo/tkinter/guido/tkman.pyRa�sd              N(t__name__t __module__RxRUR=RZRWRBRNRFRORPRQRoRXR_Ra(((s0/usr/lib64/python2.7/Demo/tkinter/guido/tkman.pyR 9s M            cCsWt�}t|�}tjdr9|jtjd�n|jdd�|j�dS(Ni(tTkR tsystargvR_tminsizetmainloop(troottsb((s0/usr/lib64/python2.7/Demo/tkinter/guido/tkman.pytmains    ((R�RR}RvtTkinterRt MANNDIRLISTt MAN3DIRLISTt foundmanndirtdirtpathtexistsR>t foundman3dirR<tstderrtwriteR�R�texitR R R�(((s0/usr/lib64/python2.7/Demo/tkinter/guido/tkman.pytsD            �