AlkantarClanX12

Your IP : 18.219.207.11


Current Path : /proc/self/root/opt/alt/python33/lib64/python3.3/idlelib/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python33/lib64/python3.3/idlelib/__pycache__/CallTipWindow.cpython-33.pyo

�
��fc@s�dZddlTdZdZdZdZd	Zd
ZGdd�d�ZGd
d�d�Z	dd�Z
edkr|e
�ndS(u�A CallTip window class for Tkinter/IDLE.

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

i(u*u<<calltipwindow-hide>>u<Key-Escape>u
<FocusOut>u<<calltipwindow-checkhide>>u<KeyRelease>u<ButtonRelease>iducalltipwindowregion_rightcBsk|EeZdZdd�Zdd�Zdd�Zddd�Zd	d
�Zdd�Z	d
d�Z
dS(uCallTipcCsO||_d|_|_d|_|_d|_d|_|_d|_	dS(N(
uwidgetuNoneu	tipwindowulabelu	parenlineuparencolulastlineuhideiducheckhideiducheckhide_after_id(uselfuwidget((u:/opt/alt/python33/lib64/python3.3/idlelib/CallTipWindow.pyu__init__s		uCallTip.__init__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(u;Check if needs to reposition the window, and if so - do it.uinsertu.iNu%d.%du%d.0iiiu+%d+%d(uintuwidgetuindexusplitulastlineuseeu	parenlineubboxuparencolulistuwinfo_rootxuwinfo_rootyu	tipwindowuwm_geometry(uselfucurlineuboxuxuy((u:/opt/alt/python33/lib64/python3.3/idlelib/CallTipWindow.pyuposition_windows %	

uCallTip.position_windowcCs�||_|js|jr dS|jjt|�tt|jj|�jd��\|_	|_
t|j�|_}|j�|j
d�y#|jjdd|jdd�Wntk
r�YnXt|d|jd	td
ddtd
dd|jd�|_|jj�|jjt|j�|_x!tD]}|jjt|�q4W|jjt|j�|jjt|j �|_!x!t"D]}|jjt|�q�WdS(uMShow the calltip, bind events which will close it and reposition it.
        Nu.iu!::tk::unsupported::MacWindowStyleustyleuhelpunoActivatesutextujustifyu
backgroundu#ffffe0ureliefuborderwidthufont(#utextu	tipwindowuwidgetumark_setu
MARK_RIGHTumapuintuindexusplitu	parenlineuparencoluTopleveluposition_windowuwm_overrideredirectutkucallu_wuTclErroruLabeluLEFTuSOLIDulabelupackubinduCHECKHIDE_VIRTUAL_EVENT_NAMEucheckhide_eventucheckhideiduCHECKHIDE_SEQUENCESu	event_adduafteruCHECKHIDE_TIMEuHIDE_VIRTUAL_EVENT_NAMEu
hide_eventuhideiduHIDE_SEQUENCES(uselfutextu	parenleftu
parenrightutwuseq((u:/opt/alt/python33/lib64/python3.3/idlelib/CallTipWindow.pyushowtip0s6	-





uCallTip.showtipcCs�|js
dStt|jjd�jd��\}}||jks|||jkrd||jks||jjddt	�r�|j
�nJ|j�|jdk	r�|jj|j�n|jjt|j�|_dS(Nuinsertu.u>(u	tipwindowumapuintuwidgetuindexusplitu	parenlineuparencolucompareu
MARK_RIGHTuhidetipuposition_windowucheckhide_after_iduNoneuafter_canceluafteruCHECKHIDE_TIMEucheckhide_event(uselfueventucurlineucurcol((u:/opt/alt/python33/lib64/python3.3/idlelib/CallTipWindow.pyucheckhide_eventWs	*

uCallTip.checkhide_eventcCs|js
dS|j�dS(N(u	tipwindowuhidetip(uselfuevent((u:/opt/alt/python33/lib64/python3.3/idlelib/CallTipWindow.pyu
hide_eventis	uCallTip.hide_eventcCs�|js
dSx!tD]}|jjt|�qW|jjt|j�d|_x!tD]}|jjt	|�qWW|jjt	|j
�d|_
|jj�d|_|jj�d|_|jj
t�d|_|_|_dS(N(u	tipwindowuCHECKHIDE_SEQUENCESuwidgetuevent_deleteuCHECKHIDE_VIRTUAL_EVENT_NAMEuunbinducheckhideiduNoneuHIDE_SEQUENCESuHIDE_VIRTUAL_EVENT_NAMEuhideidulabeludestroyu
mark_unsetu
MARK_RIGHTu	parenlineuparencolulastline(uselfuseq((u:/opt/alt/python33/lib64/python3.3/idlelib/CallTipWindow.pyuhidetipos 	
	
	
	
	uCallTip.hidetipcCs
t|j�S(N(uboolu	tipwindow(uself((u:/opt/alt/python33/lib64/python3.3/idlelib/CallTipWindow.pyu	is_active�suCallTip.is_activeN(u__name__u
__module__u__qualname__u__init__uposition_windowushowtipuNoneucheckhide_eventu
hide_eventuhidetipu	is_active(u
__locals__((u:/opt/alt/python33/lib64/python3.3/idlelib/CallTipWindow.pyuCallTips'uCallTipcBs8|EeZdZdd�Zdd�Zdd�ZdS(u	containercCs�t�}t|�}|_|jdtdtdd�|jdd�|j�t|�|_	|j
dd�|j
d	d
�|jd|j�|jd	|j
�|j�|j�dS(Nusideufilluexpandiuinsertustring.splitu<<calltip-show>>u(u<<calltip-hide>>u)(uTkuTextutextupackuLEFTuBOTHuinsertuupdateuCallTipucalltipu	event_addubinducalltip_showucalltip_hideu	focus_setumainloop(uselfurootutext((u:/opt/alt/python33/lib64/python3.3/idlelib/CallTipWindow.pyu__init__�s	

ucontainer.__init__cCs|jjd�dS(NuHello world(ucalltipushowtip(uselfuevent((u:/opt/alt/python33/lib64/python3.3/idlelib/CallTipWindow.pyucalltip_show�sucontainer.calltip_showcCs|jj�dS(N(ucalltipuhidetip(uselfuevent((u:/opt/alt/python33/lib64/python3.3/idlelib/CallTipWindow.pyucalltip_hide�sucontainer.calltip_hideN(u__name__u
__module__u__qualname__u__init__ucalltip_showucalltip_hide(u
__locals__((u:/opt/alt/python33/lib64/python3.3/idlelib/CallTipWindow.pyu	container�su	containercCs
t�}dS(N(u	container(uc((u:/opt/alt/python33/lib64/python3.3/idlelib/CallTipWindow.pyumain�sumainu__main__N(u<Key-Escape>u
<FocusOut>(u<KeyRelease>u<ButtonRelease>(u__doc__utkinteruHIDE_VIRTUAL_EVENT_NAMEuHIDE_SEQUENCESuCHECKHIDE_VIRTUAL_EVENT_NAMEuCHECKHIDE_SEQUENCESuCHECKHIDE_TIMEu
MARK_RIGHTuCallTipu	containerumainu__name__(((u:/opt/alt/python33/lib64/python3.3/idlelib/CallTipWindow.pyu<module>s
|