[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.144.227.3: ~ $
�
f
�Qc@s9dZddlTddlZdZddd��YZdS(s(TextViewer class.

The TextViewer allows you to see how the selected color would affect various
characteristics of a Tk text widget.  This is an output viewer only.

In the top part of the window is a standard text widget with some sample text
in it.  You are free to edit this text in any way you want (BAW: allow you to
change font characteristics).  If you want changes in other viewers to update
text characteristics, turn on Track color changes.

To select which characteristic tracks the change, select one of the radio
buttons in the window below.  Text foreground and background affect the text
in the window above.  The Selection is what you see when you click the middle
button and drag it through some text.  The Insertion is the insertion cursor
in the text window (which only has a background).
i����(t*NsText Window...t
TextViewercBsneZd	d�Zd	d�Zd	d�Zd	d�Zd	d�Zd	d�Zd	d�Z	d�Z
d�ZRS(
cCsB||_|j�}t|dd�}|_|jd|j�|jd�|jd�|jd|j	�|jd|j	�|jd|j�|jd|j�t
|d	td
|jdd�d
|jdd�dddd�|_
|jd�}|r|j
jd|�n|jd�}|rB|j
jd|�n|jd�}|rm|j
jd|�n|j
j�|j
jd|jdd��|jd�}|r�|j
jt|�ny8|jddtf�\}	}
|j
jt|	|
�Wntk
rnX|j
j�t�|_|jj|jd d!��t�|_|jj|jd"d!��t|d#d$d%|jd	td&|j�|_ |j jd't!d(t"�t#|�}|_$|j�g|_%d)}xVd6D]N}
t&|d#|
�}|j'd-|d.d!d/t(�|j%j)|�|d07}q�Wd0}xPd7D]H}
t&|d#|
�}|j'd-d0d.|�|j%j)|�|d07}qEWg|_*x�d8D]�}x�d9D]~}|d4kr�|d0kr�q�nt+|d%|jd5|d)d)|d0d&|j,�}|j'd-|d.|�|j*j)|�q�Wq�W|j�dS(:Ntclass_tPynchetWM_DELETE_WINDOWsPynche Text Windows<Alt-q>s<Alt-Q>s<Alt-w>s<Alt-W>trelieft
backgroundtTEXTBGtblackt
foregroundtTEXTFGtwhitetwidthi#theightitTEXT_SFGtselectforegroundtTEXT_SBGtselectbackgroundtTEXT_IBGtinsertbackgroundgtTEXTs�Insert some stuff here and play
with the buttons below to see
how the colors interact in
textual displays.

See how the selection can also
be affected by tickling the buttons
and choosing a color.tTEXTINStTEXTSELg@tTRACKPitWHICHttextsTrack color changestvariabletcommandtfilltexpandisText:s
Selection:s
Insertion:trowtcolumntstickyit
Foregroundt
Backgroundiitvalue(sText:s
Selection:s
Insertion:(R!R"(ii(iii(-t_TextViewer__sbtoptiondbtToplevelt_TextViewer__roottprotocoltwithdrawttitleticonnametbindt_TextViewer__quittTexttSUNKENtgett_TextViewer__textt	configuretpacktinserttmark_settINSERTtENDttag_addtSELt
ValueErrort	focus_sett
BooleanVart_TextViewer__trackptsettIntVart_TextViewer__whichtCheckbuttontGROOVEt_TextViewer__toggletrackt_TextViewer__ttXtYEStFramet_TextViewer__framet_TextViewer__labelstLabeltgridtEtappendt_TextViewer__radiostRadiobuttont_TextViewer__set_color(tselftswitchboardtmasterR%troottsfgtsbgtibgR4tstarttendtframeRRtltcoltr((s7/usr/lib64/python2.7/site-packages/pynche/TextViewer.pyt__init__s�	





	
	

	

cCs|jj�dS(N(R'tquit(RQtevent((s7/usr/lib64/python2.7/site-packages/pynche/TextViewer.pyt__quitvscCs|jj�dS(N(R'R)(RQR`((s7/usr/lib64/python2.7/site-packages/pynche/TextViewer.pyR)yscCs|jj�dS(N(R't	deiconify(RQR`((s7/usr/lib64/python2.7/site-packages/pynche/TextViewer.pyRb|scCs|jj�dS(N(R$tupdate_views_current(RQR`((s7/usr/lib64/python2.7/site-packages/pynche/TextViewer.pyt
__forceupdatescCs�|jj�r)t}|jdd}nt}|jdd}x!|jD]}|jd|�qJWx!|jD]}|jd|�qnWdS(NiR	tdisabledforegroundtstate(R=R0tNORMALRNtDISABLEDR2RI(RQR`RftfgR]R[((s7/usr/lib64/python2.7/site-packages/pynche/TextViewer.pyt
__toggletrack�scCs|jj�}|j}|dkr1|d}nd|dkrJ|d}nK|dkrc|d}n2|dkr||d}n|d	kr�|d
}nytj|�\}}}Wn5tjk
r�|jj�j|�\}}}nX|jj	|||�dS(NiR	iRiRiRiR(
R@R0R1tColorDBtrrggbb_to_triplettBadColorR$tcolordbtfind_bynametupdate_views(RQR`twhichRtcolortredtgreentblue((s7/usr/lib64/python2.7/site-packages/pynche/TextViewer.pyt__set_color�s"	




%cCs�|jj�r�tj|||f�}|jj�}|j}|dkr^|jd|�q�|dkr}|jd|�q�|dkr�|jd|�q�|dkr�|jd|�q�|d	kr�|jd
|�q�ndS(NiR	iRiRiRiR(R=R0Rkttriplet_to_rrggbbR@R1R2(RQRsRtRut	colornameRqR((s7/usr/lib64/python2.7/site-packages/pynche/TextViewer.pytupdate_yourself�s	cCs�|jj�|d<|jj�|d<|jjdd�|d<|jjt�dd!|d<|jjt�|d	<|jd
|d<|jd|d
<|jd|d<|jd|d<|jd|d<dS(NRRgsend - 1cRiiRRR	R
RRRRRRRR(R=R0R@R1t
tag_rangesR9tindexR6(RQR%((s7/usr/lib64/python2.7/site-packages/pynche/TextViewer.pytsave_options�sN(t__name__t
__module__tNoneR^R-R)Rbt_TextViewer__forceupdateRCRPRyR|(((s7/usr/lib64/python2.7/site-packages/pynche/TextViewer.pyRs\	((t__doc__tTkinterRkt	ADDTOVIEWR(((s7/usr/lib64/python2.7/site-packages/pynche/TextViewer.pyt<module>s


Filemanager

Name Type Size Permission Actions
X Folder 0755
.ChipViewer.pyo.40009 File 5.37 KB 0644
.ColorDB.pyo.40009 File 9.46 KB 0644
.DetailsViewer.pyo.40009 File 10.32 KB 0644
.ListViewer.pyo.40009 File 7.03 KB 0644
.Main.pyo.40009 File 6.14 KB 0644
.PyncheWidget.pyo.40009 File 10.84 KB 0644
.Switchboard.pyo.40009 File 5.92 KB 0644
.TextViewer.pyo.40009 File 7.19 KB 0644
.TypeinViewer.pyo.40009 File 6.26 KB 0644
.__init__.pyo.40009 File 140 B 0644
.pyColorChooser.pyo.40009 File 4.32 KB 0644
ChipViewer.py File 4.88 KB 0644
ChipViewer.pyc File 5.37 KB 0644
ChipViewer.pyo File 5.37 KB 0644
ColorDB.py File 8.73 KB 0644
ColorDB.pyc File 9.46 KB 0644
ColorDB.pyo File 9.46 KB 0644
DetailsViewer.py File 9.88 KB 0644
DetailsViewer.pyc File 10.32 KB 0644
DetailsViewer.pyo File 10.32 KB 0644
ListViewer.py File 6.49 KB 0644
ListViewer.pyc File 7.03 KB 0644
ListViewer.pyo File 7.03 KB 0644
Main.py File 6.25 KB 0644
Main.pyc File 6.14 KB 0644
Main.pyo File 6.14 KB 0644
PyncheWidget.py File 10.25 KB 0644
PyncheWidget.pyc File 10.84 KB 0644
PyncheWidget.pyo File 10.84 KB 0644
README File 15.41 KB 0644
StripViewer.py File 15.1 KB 0644
StripViewer.pyc File 13.54 KB 0644
StripViewer.pyo File 13.4 KB 0644
Switchboard.py File 4.7 KB 0644
Switchboard.pyc File 5.92 KB 0644
Switchboard.pyo File 5.92 KB 0644
TextViewer.py File 6.71 KB 0644
TextViewer.pyc File 7.19 KB 0644
TextViewer.pyo File 7.19 KB 0644
TypeinViewer.py File 5.96 KB 0644
TypeinViewer.pyc File 6.26 KB 0644
TypeinViewer.pyo File 6.26 KB 0644
__init__.py File 47 B 0644
__init__.pyc File 140 B 0644
__init__.pyo File 140 B 0644
html40colors.txt File 245 B 0644
namedcolors.txt File 5.58 KB 0644
pyColorChooser.py File 3.68 KB 0644
pyColorChooser.pyc File 4.32 KB 0644
pyColorChooser.pyo File 4.32 KB 0644
pynche File 179 B 0755
webcolors.txt File 3.02 KB 0644
websafe.txt File 1.71 KB 0644