ok

Mini Shell

Direktori : /usr/lib64/python2.7/Demo/tkinter/guido/
Upload File :
Current File : //usr/lib64/python2.7/Demo/tkinter/guido/ManPage.pyo

�
V
�Qc@s�ddlZddlTddlmZddlmZdZdZejd�Zejd�Zejd	�Z	d
efd��YZ
de
fd
��YZeZd�Z
edkr�e
�ndS(i����N(t*(t_tkinter(tScrolledTexts*-Courier-Bold-R-Normal-*-120-*s!*-Courier-Medium-O-Normal-*-120-*s:^     Page [1-9][0-9]*[ 	]+\|^.*Last change:.*[1-9][0-9]*
s^[ 	]*
s^[ 	]*[Xv!_][Xv!_ 	]*
tEditableManPagecBsneZdd�Zd�Zd�Zd�ZeZd�Zd�Z	d�Z
d�Zd�Zd	d
�Z
RS(cKshttj||f|�|jddd�|jddt�|jddt�d|_d|_dS(NtXt	underlineit!tfontt_i(	tapplyRt__init__t
tag_configtBOLDFONTt
ITALICFONTtNonetfptlineno(tselftmastertcnf((s2/usr/lib64/python2.7/Demo/tkinter/guido/ManPage.pyR
s	cCs
|jdkS(N(RR(R((s2/usr/lib64/python2.7/Demo/tkinter/guido/ManPage.pytbusy%scCs|j�r|j�ndS(N(Rt
_endparser(R((s2/usr/lib64/python2.7/Demo/tkinter/guido/ManPage.pytkill)scCs-|j|�|jj|tj|j�dS(N(t_startparserttktcreatefilehandlerRtREADABLEt_filehandler(RR((s2/usr/lib64/python2.7/Demo/tkinter/guido/ManPage.pytasyncparsefile.s
cCs4|jj�}|s#|j�dS|j|�dS(N(RtreadlineRt
_parseline(RRtmasktnextline((s2/usr/lib64/python2.7/Demo/tkinter/guido/ManPage.pyR6s

cCsyddlm}|d|d�}|j|d�}|j|�x&|j�}|s[Pn|j|�qE|j�dS(Ni����(tselectgcSs||ggg|�dS(Ni((RttoutR!((s2/usr/lib64/python2.7/Demo/tkinter/guido/ManPage.pytavail@stheight(R!tgetintRRRR(RRR!R#R$R ((s2/usr/lib64/python2.7/Demo/tkinter/guido/ManPage.pyt
syncparsefile>s
cCs�|j�rtd�n|j�||_d|_d|_d|_d|_|d}t	|d<|j
dt�||d<dS(Nsstartparser: still busyitstates1.0(RtRuntimeErrortfilenoRRtoktemptyRtbuffertNORMALtdeletetEND(RRt	savestate((s2/usr/lib64/python2.7/Demo/tkinter/guido/ManPage.pyRLs
					

cCs�|j�std�n|jr1|jd�ny|jj|j�Wntk
r]}nX|jj�d|_|`
|`|`dS(Nsendparser: not busyt(RR(R,RRtdeletefilehandlerRtTclErrortcloseRR*R+(Rtmsg((s2/usr/lib64/python2.7/Demo/tkinter/guido/ManPage.pyR[s	
	cCs|js||_dStj|j�dkrDd|_||_dS|j}tj|�dkrt|}d|_nd}||_|js�d|_d|_dStj|�dkr�d|_d|_dS|d}t|d<t	dkr|j
dd�n|j
dt�|jrB|jd�|j
d|_
d|_n|sX|j|�n�d}d}xrttt|�t|���D]O}|||kr�||kr�|j|||!|�|}n||}q�q�W|j||�|j
d|_
||d<dS(	NiiR'g@tinsertsend-1cs
R1(R,t	emptyprogtmatchR+tulprogRR*t
footerprogR-t	TkVersiontmark_setR/t_insert_propRtrangetmintlen(RR ttextlinetproplineR0tptjti((s2/usr/lib64/python2.7/Demo/tkinter/guido/ManPage.pyRisV											

	
(	t cCs�|jt��}|jt�|�tdkrj|j|�}x'|D]}|j||t��qGWn|dkr�|j||t��ndS(Ng@RF(tindextAtInsertR6R;t	tag_namest
tag_removettag_add(Rtstrtproptherettagsttag((s2/usr/lib64/python2.7/Demo/tkinter/guido/ManPage.pyR=�s
N(t__name__t
__module__RR
RRRt	parsefileRR&RRRR=(((s2/usr/lib64/python2.7/Demo/tkinter/guido/ManPage.pyRs								<tReadonlyManPagecBseZdd�ZRS(cKs't|d<ttj||f|�dS(NR'(tDISABLEDR	RR
(RRR((s2/usr/lib64/python2.7/Demo/tkinter/guido/ManPage.pyR
�s
N(RQRRRR
(((s2/usr/lib64/python2.7/Demo/tkinter/guido/ManPage.pyRT�sc	CsNddl}ddl}d}d}d}|jdr]|jddkr]d}|jd=n|jdrz|jd}n|}|s�|dd!dkr�|d	}n|jj||�}nt�}|jdd�t|d
tdd�}|j	d
ddt
�|rt|d�}n|jd|d�}|j
|�|j�dS(Ni����s/usr/local/man/manntTcliis-fi����t.s.ntrelieftborderwidthitexpandtfilltrsnroff -man %s | ul -i(tostsystargvtpathtjointTktminsizetManPagetSUNKENtpacktBOTHtopentpopenRStmainloop(	R]R^tMANDIRtDEFAULTPAGEt	formattedtnametroottmanpageR((s2/usr/lib64/python2.7/Demo/tkinter/guido/ManPage.pyttest�s0 


	
t__main__(tretTkinterRRRR
tcompileR:R7R9RRTRdRqRQ(((s2/usr/lib64/python2.7/Demo/tkinter/guido/ManPage.pyt<module>s
	�	

Zerion Mini Shell 1.0