ó {fc@siddlmZddlmZdd d„ƒYZd„ZedkreddlmZeeƒndS( iÿÿÿÿ(tWidgetRedirector(t Delegatort PercolatorcBsDeZd„Zd„Zdd„Zdd„Zd„Zd„ZRS(cCsw||_t|ƒ|_t|ƒ|_|_|jjd|jƒ|j_|jjd|jƒ|j_g|_ dS(Ntinserttdelete( ttextRtredirRttoptbottomtregisterRRtfilters(tselfR((s*/usr/lib64/python2.7/idlelib/Percolator.pyt__init__s  cCsnx&|j|jk r(|j|jƒqWd|_|jjdƒd|_|jjƒd|_d|_dS(N(RRt removefiltertNonet setdelegateRtcloseR(R ((s*/usr/lib64/python2.7/idlelib/Percolator.pyRs   cCs|jj|||ƒdS(N(RR(R tindextcharsttags((s*/usr/lib64/python2.7/idlelib/Percolator.pyRscCs|jj||ƒdS(N(RR(R tindex1tindex2((s*/usr/lib64/python2.7/idlelib/Percolator.pyRscCs|j|jƒ||_dS(N(RR(R tfilter((s*/usr/lib64/python2.7/idlelib/Percolator.pyt insertfilterscCs{|j}||kr1|j|_|jdƒnFx&|j|k rY|jƒ|j}q4W|j|jƒ|jdƒdS(N(RtdelegateRRt resetcache(R Rtf((s*/usr/lib64/python2.7/idlelib/Percolator.pyR &s     N( t__name__t __module__R RRRRRR (((s*/usr/lib64/python2.7/idlelib/Percolator.pyRs     csnddl}ddl}dtfd„ƒY}|jƒ}|jdƒttt|jd|j ƒƒƒƒ\}}}}|j d||dfƒ|j |ƒ} t | ƒ‰|dƒ‰|d ƒ‰‡‡‡fd †} ‡‡‡fd †} | j ƒ|j ƒ‰|j|d d d| dˆƒ} | j ƒ|j ƒ‰|j|d dd| dˆƒ} | j ƒdS(NiÿÿÿÿtTracercBs#eZd„Zd„Zd„ZRS(cSs||_tj|dƒdS(N(tnameRR R(R R((s*/usr/lib64/python2.7/idlelib/Percolator.pyR ;s cWs$|jGdG|GH|jj|ŒdS(Ns: insert(RRR(R targs((s*/usr/lib64/python2.7/idlelib/Percolator.pyR>scWs$|jGdG|GH|jj|ŒdS(Ns: delete(RRR(R R((s*/usr/lib64/python2.7/idlelib/Percolator.pyRAs(RRR RR(((s*/usr/lib64/python2.7/idlelib/Percolator.pyR:s  sTest Percolators[x+]s+%d+%di–tt1tt2csbˆjƒdkr/ˆjdƒˆjˆƒn/ˆjƒdkr^ˆjdƒˆjˆƒndS(Nii(tgettsetRR ((tpR tvar1(s*/usr/lib64/python2.7/idlelib/Percolator.pyttoggle1Ms   csbˆjƒdkr/ˆjdƒˆjˆƒn/ˆjƒdkr^ˆjdƒˆjˆƒndS(Nii(R"R#RR ((R$R!tvar2(s*/usr/lib64/python2.7/idlelib/Percolator.pyttoggle2Us   RtTracer1tcommandtvariabletTracer2(tTkintertreRtTkttitletlisttmaptinttsplittgeometrytTextRtpacktIntVart Checkbutton(tparentttkR.RtroottwidththeighttxtyRR&R(tcb1tcb2((R$R R!R%R's*/usr/lib64/python2.7/idlelib/Percolator.pyt _percolator7s(    3     !  !t__main__(trunN(( tidlelib.WidgetRedirectorRtidlelib.DelegatorRRRCRtidlelib.idle_test.htestRE(((s*/usr/lib64/python2.7/idlelib/Percolator.pyts 3 .