ó {fc@sddlTdd d„ƒYZdefd„ƒYZdefd„ƒYZd„Zed kr{dd lmZeeƒnd S( iÿÿÿÿ(t*t ToolTipBasecBsYeZd„Zd d„Zd d„Zd„Zd„Zd„Zdd„Z d„Z RS( cCs€||_d|_d|_d|_|_|jjd|jƒ|_|jjd|j ƒ|_ |jjd|j ƒ|_ dS(Nisss ( tbuttontNonet tipwindowtidtxtytbindtentert_id1tleavet_id2t_id3(tselfR((s'/usr/lib64/python2.7/idlelib/ToolTip.pyt__init__ s   cCs|jƒdS(N(tschedule(Rtevent((s'/usr/lib64/python2.7/idlelib/ToolTip.pyR scCs|jƒ|jƒdS(N(t unschedulethidetip(RR((s'/usr/lib64/python2.7/idlelib/ToolTip.pyR s cCs)|jƒ|jjd|jƒ|_dS(NiÜ(RRtaftertshowtipR(R((s'/usr/lib64/python2.7/idlelib/ToolTip.pyRs cCs/|j}d|_|r+|jj|ƒndS(N(RRRt after_cancel(RR((s'/usr/lib64/python2.7/idlelib/ToolTip.pyRs  cCsˆ|jr dS|jjƒd}|jjƒ|jjƒd}t|jƒ|_}|jdƒ|jd||fƒ|jƒdS(Niis+%d+%d( RRt winfo_rootxt winfo_rootyt winfo_heighttTopleveltwm_overrideredirectt wm_geometryt showcontents(RRRttw((s'/usr/lib64/python2.7/idlelib/ToolTip.pyR$s   sYour text herec Cs;t|jd|dtdddtddƒ}|jƒdS(Nttexttjustifyt backgrounds#ffffe0trelieft borderwidthi(tLabelRtLEFTtSOLIDtpack(RRtlabel((s'/usr/lib64/python2.7/idlelib/ToolTip.pyR2scCs)|j}d|_|r%|jƒndS(N(RRtdestroy(RR((s'/usr/lib64/python2.7/idlelib/ToolTip.pyR8s  N( t__name__t __module__RRR R RRRRR(((s'/usr/lib64/python2.7/idlelib/ToolTip.pyRs      tToolTipcBseZd„Zd„ZRS(cCstj||ƒ||_dS(N(RRR(RRR((s'/usr/lib64/python2.7/idlelib/ToolTip.pyR?scCstj||jƒdS(N(RRR(R((s'/usr/lib64/python2.7/idlelib/ToolTip.pyRBs(R*R+RR(((s'/usr/lib64/python2.7/idlelib/ToolTip.pyR,>s tListboxToolTipcBseZd„Zd„ZRS(cCstj||ƒ||_dS(N(RRtitems(RRR.((s'/usr/lib64/python2.7/idlelib/ToolTip.pyRFscCsGt|jddƒ}|jƒx!|jD]}|jt|ƒq)WdS(NR!s#ffffe0(tListboxRR'R.tinserttEND(Rtlistboxtitem((s'/usr/lib64/python2.7/idlelib/ToolTip.pyRIs (R*R+RR(((s'/usr/lib64/python2.7/idlelib/ToolTip.pyR-Es c Csìtƒ}|jdƒttttjd|jƒƒƒƒ\}}}}|jd||dfƒt|ddƒ}|j ƒt |ddƒ}t |ddƒ}|j ƒ|j ƒt |d ƒt |d d d d gƒ|j ƒdS(Ns Test tooltips[x+]s+%d+%di–RsPlace your mouse over buttonssButton 1sButton 2s!This is tooltip text for button1.sThis iss multiple lines tooltip texts for button2(tTkttitletlisttmaptinttretsplittgeometryR$R'tButtonR,R-tmainloop( tparenttroottwidththeightRRR(tbutton1tbutton2((s'/usr/lib64/python2.7/idlelib/ToolTip.pyt_tooltipOs  3      t__main__(trunN((tTkinterRR,R-RDR*tidlelib.idle_test.htestRF(((s'/usr/lib64/python2.7/idlelib/ToolTip.pyts 6