MINI MINI MANI MO

Path : /lib64/python2.7/idlelib/
File Upload :
Current File : //lib64/python2.7/idlelib/CallTipWindow.pyc

ó
Eì]c@s}dZddlTdZdZdZdZd	Zd
Zddd„ƒYZd
dd„ƒYZ	d„Z
edkrye
ƒndS(s†A CallTip window class for Tkinter/IDLE.

After ToolTip.py, which uses ideas gleaned from PySol
Used by the CallTips IDLE extension.

iÿÿÿÿ(t*s<<calltipwindow-hide>>s<Key-Escape>s
<FocusOut>s<<calltipwindow-checkhide>>s<KeyRelease>s<ButtonRelease>idtcalltipwindowregion_righttCallTipcBsJeZd„Zd„Zd„Zdd„Zd„Zd„Zd„Z	RS(cCsO||_d|_|_d|_|_d|_d|_|_d|_	dS(N(
twidgettNonet	tipwindowtlabelt	parenlinetparencoltlastlinethideidtcheckhideidtcheckhide_after_id(tselfR((s-/usr/lib64/python2.7/idlelib/CallTipWindow.pyt__init__s		cCs(t|jjdƒjdƒdƒ}||jkr8dS||_|jjdƒ||jkr…|jjd|j|jfƒ}n|jjd|ƒ}|sÐt	|jjdƒƒ}d|d<d|d<n|d|jj
ƒd}|d|d	|jjƒ}|jj
d
||fƒdS(s;Check if needs to reposition the window, and if so - do it.tinsertt.iNs%d.%ds%d.0iiis+%d+%d(tintRtindextsplitR	tseeRtbboxRtlisttwinfo_rootxtwinfo_rootyRtwm_geometry(R
tcurlinetboxtxty((s-/usr/lib64/python2.7/idlelib/CallTipWindow.pytposition_windows %	

c	Cst|ƒdkrt|jƒ}xAt|ƒD]3\}}t|ƒdkr+|d d||<q+q+Wdj|ƒ}n||_|js|jr”dS|jjt|ƒt	t
|jj|ƒjdƒƒ\|_
|_t|jƒ|_}|jƒ|jdƒy#|jjdd	|jd
dƒWntk
r:nXt|d|jd
tdddtddd|jdƒ|_|jjƒ|jjt|jƒ|_x!tD]}|jj t|ƒq§W|jj!t"|jƒ|jjt#|j$ƒ|_%x!t&D]}|jj t#|ƒqüWdS(sMShow the calltip, bind events which will close it and reposition it.
        iOiKs ...s
NRis!::tk::unsupported::MacWindowStyletstylethelptnoActivatesttexttjustifyt
backgrounds#ffffe0trelieftborderwidthtfont('tlent
splitlinest	enumeratetjoinR"RRtmark_sett
MARK_RIGHTtmapRRRRRtToplevelRtwm_overrideredirectttktcallt_wtTclErrortLabeltLEFTtSOLIDRtpacktbindtCHECKHIDE_VIRTUAL_EVENT_NAMEtcheckhide_eventRtCHECKHIDE_SEQUENCESt	event_addtaftertCHECKHIDE_TIMEtHIDE_VIRTUAL_EVENT_NAMEt
hide_eventR
tHIDE_SEQUENCES(	R
R"t	parenleftt
parenrightt	textlinestitlinettwtseq((s-/usr/lib64/python2.7/idlelib/CallTipWindow.pytshowtip0sB	-





cCs×|js
dStt|jjdƒjdƒƒ\}}||jks|||jkrd||jks||jjddt	ƒr‰|j
ƒnJ|jƒ|jdk	r¸|jj|jƒn|jjt|jƒ|_dS(NRRt>(RR.RRRRRRtcompareR-thidetipRRRtafter_cancelR>R?R;(R
teventRtcurcol((s-/usr/lib64/python2.7/idlelib/CallTipWindow.pyR;]s	*

cCs|js
dS|jƒdS(N(RRM(R
RO((s-/usr/lib64/python2.7/idlelib/CallTipWindow.pyRAos	cCsê|js
dSx!tD]}|jjt|ƒqW|jjt|jƒd|_x!tD]}|jjt	|ƒqWW|jjt	|j
ƒd|_
|jjƒd|_|jjƒd|_|jj
tƒd|_|_|_dS(N(RR<Rtevent_deleteR:tunbindRRRBR@R
Rtdestroyt
mark_unsetR-RRR	(R
RI((s-/usr/lib64/python2.7/idlelib/CallTipWindow.pyRMus 	
	
	
	
	cCs
t|jƒS(N(tboolR(R
((s-/usr/lib64/python2.7/idlelib/CallTipWindow.pyt	is_activeŠsN(
t__name__t
__module__RRRJRR;RARMRV(((s-/usr/lib64/python2.7/idlelib/CallTipWindow.pyRs			-		t	containercBs#eZd„Zd„Zd„ZRS(cCs¿tƒ}t|ƒ}|_|jdtdtddƒ|jddƒ|jƒt|ƒ|_	|j
ddƒ|j
d	d
ƒ|jd|jƒ|jd	|j
ƒ|jƒ|jƒdS(NtsidetfilltexpandiRsstring.splits<<calltip-show>>t(s<<calltip-hide>>t)(tTktTextR"R8R6tBOTHRtupdateRtcalltipR=R9tcalltip_showtcalltip_hidet	focus_settmainloop(R
trootR"((s-/usr/lib64/python2.7/idlelib/CallTipWindow.pyR”s	

cCs|jjdƒdS(NsHello world(RcRJ(R
RO((s-/usr/lib64/python2.7/idlelib/CallTipWindow.pyRd¤scCs|jjƒdS(N(RcRM(R
RO((s-/usr/lib64/python2.7/idlelib/CallTipWindow.pyRe§s(RWRXRRdRe(((s-/usr/lib64/python2.7/idlelib/CallTipWindow.pyRY“s		cCs
tƒ}dS(N(RY(tc((s-/usr/lib64/python2.7/idlelib/CallTipWindow.pytmainªst__main__N(s<Key-Escape>s
<FocusOut>(s<KeyRelease>s<ButtonRelease>(((t__doc__tTkinterR@RBR:R<R?R-RRYRjRW(((s-/usr/lib64/python2.7/idlelib/CallTipWindow.pyt<module>s
‚	

OHA YOOOO