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

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


��Qc@sXddlZddlTddlZddd��YZd�ZedkrTe�ndS(i�N(t*tFileListcBsieZddlmZd�Zd
d�Zd
d�Zd
d�Zd�Z	d�Z
d�Zd	�ZRS(i�(tEditorWindowcCs(||_i|_i|_i|_dS(N(troottdicttinversedicttvars(tselfR((s&/sys/lib/python2.7/idlelib/FileList.pyt__init__s			cCs�|st�|j|�}tjj|�rQtjdd|fd|j�dStjj	|�}||j
kr�|j
|}|jj�|S|r�||�S|j
|||�SdS(Ns
File Errors%r is a directory.tmaster(tAssertionErrortcanonizetostpathtisdirttkMessageBoxt	showerrorRtNonetnormcaseRttoptwakeupR(Rtfilenametactiontkeytedit((s&/sys/lib/python2.7/idlelib/FileList.pytopens 




cCs;|j|�}|dk	r7|dk	r7|j|�ndS(N(RRtgotoline(RRtlinenoR((s&/sys/lib/python2.7/idlelib/FileList.pytgotofileline&scCs|j||�S(N(R(RR((s&/sys/lib/python2.7/idlelib/FileList.pytnew+scOs:x3|jj�D]"}|j�}|dkrPqqWdS(Ntcanceltbreak(Rtkeystclose(RtargstkwdsRtreply((s&/sys/lib/python2.7/idlelib/FileList.pytclose_all_callback.s
cCsey|j|}Wntk
r*dGHdSX|r>|j|=n|j|=|jsa|jj�ndS(Ns-Don't know this EditorWindow object.  (close)(RtKeyErrorRRtquit(RRR((s&/sys/lib/python2.7/idlelib/FileList.pytunregister_maybe_terminate5s


	cCs1|j�y|j|}Wntk
r4dGHdSX|jj}|sk|rZ|j|=nd|j|<dS|j|�}tj	j
|�}||kr�dS||jkr�j|}d|j|<tjdd|fd|j
�n||j|<||j|<|r-y|j|=Wq-tk
r)q-XndS(Ns.Don't know this EditorWindow object.  (rename)s
Name Conflicts.You now have multiple edit windows open for %rR	(tsaved_change_hookRR&tioRRRRRR
RRRR(RRRRtnewkeytconflict((s&/sys/lib/python2.7/idlelib/FileList.pytfilename_changed_editAs<










cCsatjj|�sQytj�}Wntjk
r8qQXtjj||�}ntjj|�S(N(RR
tisabstgetcwdterrortjointnormpath(RRtpwd((s&/sys/lib/python2.7/idlelib/FileList.pyRasN(
t__name__t
__module__tidlelib.EditorWindowRRRRRRR%R(R-R(((s&/sys/lib/python2.7/idlelib/FileList.pyRs				 cCs�ddlm}ddl}t�}||�|j�t|�}|jdrzx/|jdD]}|j|�q`Wn
|j�|j	r�|j
�ndS(Ni�(t
fixwordbreaksi(R6R7tsystTktwithdrawRtargvRRRtmainloop(R7R8RtflistR((s&/sys/lib/python2.7/idlelib/FileList.pyt_testls	



	t__main__((RtTkinterRRR>R4(((s&/sys/lib/python2.7/idlelib/FileList.pyt<module>s
f	

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.