ó V Qc@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 addchoicescCs1||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¯sii( 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(RnR_R%RgRh(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} x3|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 ƒƒPqq| s[|jjƒndS( NsEmpty search strings Regex error:Riis%d.0 linestarts %d.0 lineendtsels%d.%d(RRfRHRVtret IGNORECASEtNonetcompileterrorRtindextAtInserttstringtatoitfindRhR)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__RwRUR=RZRWRBRNRFRORPRQRnRXR_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|RutTkinterRt MANNDIRLISTt MAN3DIRLISTt foundmanndirtdirtpathtexistsR>t foundman3dirR<tstderrtwriteR—RŠtexitR R Rœ(((s0/usr/lib64/python2.7/Demo/tkinter/guido/tkman.pytsD            Ê