pfc@s}dZddlTdZdZdZdZd Zd Zd dd YZd ddYZ dZ e dkrye ndS(sA CallTip window class for Tkinter/IDLE. After ToolTip.py, which uses ideas gleaned from PySol Used by the CallTips IDLE extension. i(t*s<>s s s<>s sidtcalltipwindowregion_righttCallTipcBsJeZdZdZdZddZdZdZdZ RS(cCsO||_d|_|_d|_|_d|_d|_|_d|_ dS(N( twidgettNonet tipwindowtlabelt parenlinetparencoltlastlinethideidt checkhideidtcheckhide_after_id(tselfR((s-/usr/lib64/python2.7/idlelib/CallTipWindow.pyt__init__s   cCs(t|jjdjdd}||jkr8dS||_|jjd||jkr|jjd|j|jf}n|jjd|}|st |jjd}d|d(RR.RRRRRRtcompareR-thidetipRR Rt after_cancelR>R?R;(R teventRtcurcol((s-/usr/lib64/python2.7/idlelib/CallTipWindow.pyR;]s *  cCs|js dS|jdS(N(RRM(R RO((s-/usr/lib64/python2.7/idlelib/CallTipWindow.pyRAos cCs|js dSx!tD]}|jjt|qW|jjt|jd|_x!tD]}|jjt |qWW|jjt |j d|_ |j j d|_ |jj d|_|jj td|_|_|_dS(N(RR<Rt event_deleteR:tunbindR RRBR@R Rtdestroyt mark_unsetR-RRR (R RI((s-/usr/lib64/python2.7/idlelib/CallTipWindow.pyRMus          cCs t|jS(N(tboolR(R ((s-/usr/lib64/python2.7/idlelib/CallTipWindow.pyt is_activesN( t__name__t __module__RRRJRR;RARMRV(((s-/usr/lib64/python2.7/idlelib/CallTipWindow.pyRs   -   t containercBs#eZdZdZdZRS(cCst}t|}|_|jdtdtdd|jdd|jt||_ |j dd|j d d |j d|j |j d |j |j|jdS( NtsidetfilltexpandiRs string.splits<>t(s<>t)(tTktTextR"R8R6tBOTHRtupdateRtcalltipR=R9t calltip_showt calltip_hidet focus_settmainloop(R trootR"((s-/usr/lib64/python2.7/idlelib/CallTipWindow.pyRs   cCs|jjddS(Ns Hello world(RcRJ(R RO((s-/usr/lib64/python2.7/idlelib/CallTipWindow.pyRdscCs|jjdS(N(RcRM(R RO((s-/usr/lib64/python2.7/idlelib/CallTipWindow.pyRes(RWRXRRdRe(((s-/usr/lib64/python2.7/idlelib/CallTipWindow.pyRYs  cCs t}dS(N(RY(tc((s-/usr/lib64/python2.7/idlelib/CallTipWindow.pytmainst__main__N(s s (s s((( t__doc__tTkinterR@RBR:R<R?R-RRYRjRW(((s-/usr/lib64/python2.7/idlelib/CallTipWindow.pyts