Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/idlelib/ScrolledList.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��Qc@sIddlTddd��YZd�Zd�ZedkrEe�ndS(	i�(t*tScrolledListcBs�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	dZd�Zd	�Z
d
�Zd�Zd�Zd
�Zd�Zd�ZRS(s(None)cKs9||_t|�|_}|jjdddd�t|dd�|_}|jjdddd	�t|d
ddd
�|_}|r�|j|�n|jdddd�|j	|d<|j
|d<|jd|j�|jd|j
�|jd|j�|jd|j�|jd|j�|j�dS(Ntfilltbothtexpanditnametvbartsidetrighttytexportselectionit
backgroundtwhitetcommandtyscrollcommands<ButtonRelease-1>s<Double-ButtonRelease-1>s<ButtonPress-3>s<Key-Up>s
<Key-Down>(tmastertFrametframetpackt	ScrollbarRtListboxtlistboxt	configuretyviewtsettbindtclick_eventtdouble_click_eventtpopup_eventtup_eventt
down_eventtclear(tselfRtoptionsRRR((s*/sys/lib/python2.7/idlelib/ScrolledList.pyt__init__s$	

cCs|jj�dS(N(Rtdestroy(R ((s*/sys/lib/python2.7/idlelib/ScrolledList.pytclosescCs6|jjdd�d|_|jjd|j�dS(Nitendi(Rtdeletetemptytinserttdefault(R ((s*/sys/lib/python2.7/idlelib/ScrolledList.pyR"s	cCsE|jr(|jjdd�d|_n|jjdt|��dS(NiR%(R'RR&R(tstr(R titem((s*/sys/lib/python2.7/idlelib/ScrolledList.pytappend's	cCs|jj|�S(N(Rtget(R tindex((s*/sys/lib/python2.7/idlelib/ScrolledList.pyR--scCsP|jjd|j|jf�|jjd�}|j|�|j|�dS(Ns@%d,%dtactivetbreak(RtactivatetxR	R.tselectt	on_select(R teventR.((s*/sys/lib/python2.7/idlelib/ScrolledList.pyR0s
 

cCs0|jjd�}|j|�|j|�dS(NR/R0(RR.R3t	on_double(R R5R.((s*/sys/lib/python2.7/idlelib/ScrolledList.pyR7s

cCsx|js|j�n|j}|jjd|j|jf�|jjd�}|j|�|j|j	|j
�dS(Ns@%d,%dR/(tmenut	make_menuRR1R2R	R.R3ttk_popuptx_rootty_root(R R5R7R.((s*/sys/lib/python2.7/idlelib/ScrolledList.pyR?s	
	 
cCs,t|jdd�}||_|j�dS(Nttearoffi(tMenuRR7t	fill_menu(R R7((s*/sys/lib/python2.7/idlelib/ScrolledList.pyR8Hs	cCs~|jjd�}|jj|�r1|d}n|jj�d}|dkr`|jj�n|j|�|j|�dS(NR/iiR0(RR.tselection_includestsizetbellR3R4(R R5R.((s*/sys/lib/python2.7/idlelib/ScrolledList.pyRMs


cCsz|jjd�}|jj|�r1|d}nd}||jj�kr\|jj�n|j|�|j|�dS(NR/iiR0(RR.R?R@RAR3R4(R R5R.((s*/sys/lib/python2.7/idlelib/ScrolledList.pyRZs


cCsT|jj�|jj|�|jjdd�|jj|�|jj|�dS(NiR%(Rt	focus_setR1tselection_cleart
selection_settsee(R R.((s*/sys/lib/python2.7/idlelib/ScrolledList.pyR3gs

cCsdS(N((R ((s*/sys/lib/python2.7/idlelib/ScrolledList.pyR>pscCsdS(N((R R.((s*/sys/lib/python2.7/idlelib/ScrolledList.pyR4sscCsdS(N((R R.((s*/sys/lib/python2.7/idlelib/ScrolledList.pyR6vsN(t__name__t
__module__R)R"R$RR,R-RRtNoneR7RR8RRR3R>R4R6(((s*/sys/lib/python2.7/idlelib/ScrolledList.pyRs"											
	
				cCsjt�}|jd|j�dtfd��Y}||�}x%td�D]}|jd|�qKW|S(NtWM_DELETE_WINDOWtMyScrolledListcBs#eZd�Zd�Zd�ZRS(cSs|jjdd�dS(Ntlabeltpass(R7tadd_command(R ((s*/sys/lib/python2.7/idlelib/ScrolledList.pyR>~scSsdG|j|�GHdS(NR3(R-(R R.((s*/sys/lib/python2.7/idlelib/ScrolledList.pyR4scSsdG|j|�GHdS(Ntdouble(R-(R R.((s*/sys/lib/python2.7/idlelib/ScrolledList.pyR6�s(RFRGR>R4R6(((s*/sys/lib/python2.7/idlelib/ScrolledList.pyRJ}s		is	item %02d(tTktprotocolR#RtrangeR,(trootRJtsti((s*/sys/lib/python2.7/idlelib/ScrolledList.pyttestzs	cCst�}|j�dS(N(RUtmainloop(RR((s*/sys/lib/python2.7/idlelib/ScrolledList.pytmain�s	t__main__N((tTkinterRRURWRF(((s*/sys/lib/python2.7/idlelib/ScrolledList.pyt<module>s

w		

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].