Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /usr/lib64/python2.7/site-packages/pynche/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.7/site-packages/pynche/ListViewer.pyo
�
��^c@s9dZddlTddlZdZddd��YZdS(sListViewer class.

This class implements an input/output view on the color model.  It lists every
unique color (e.g. unique r/g/b value) found in the color database.  Each
color is shown by small swatch and primary color name.  Some colors have
aliases -- more than one name for the same r/g/b value.  These aliases are
displayed in the small listbox at the bottom of the screen.

Clicking on a color name or swatch selects that color and updates all other
windows.  When a color is selected in a different viewer, the color list is
scrolled to the selected color and it is highlighted.  If the selected color
is an r/g/b value without a name, no scrolling occurs.

You can turn off Update On Click if all you want to see is the alias for a
given name, without selecting the color.
i����(t*NsColor %List Window...t
ListViewercBsteZd
d�Zd�Zd
d�Zd
d�Zd
d�Zd
d�Zd
d�Z	d�Z
d�Zd	�ZRS(c
Cs=||_|j�}d|_d|_t|dd�}|_|jd|j�|j	d�|j
d�|jd|j�|jd|j�|jd|j�|jd	|j�t
|�}|_|j�t|d
ddd
dddt�}|_t|�|_|jjdtdt�|jdtdd�|jd|jdf�|jjd|df�|j�t�|_|jj|jdd��t|ddd|jd|j�|_ |j jdddt�t!|dd�|_"|j"j�t#|dddt$�|_%|j%jdddt�dS( Nitclass_tPynchetWM_DELETE_WINDOWsPynche Color Lists<Alt-q>s<Alt-Q>s<Alt-w>s<Alt-W>twidthi�theighti,tborderwidthitrelieftfilltsidetexpandityscrollcommandtsettcommandtyviewt	UPONCLICKttextsUpdate on ClicktvariablesAliases:it
selectmode(&t_ListViewer__sbtoptiondbtNonet_ListViewer__lastboxt_ListViewer__dontcentertToplevelt_ListViewer__roottprotocoltwithdrawttitleticonnametbindt_ListViewer__quittFramet_ListViewer__frametpacktCanvastSUNKENt_ListViewer__canvast	Scrollbart_ListViewer__scrollbartYtRIGHTtBOTHt	configuret_ListViewer__populatet
BooleanVart_ListViewer__uocR
tgettCheckbuttont_ListViewer__toggleupdatet_ListViewer__uocbtntLabelt_ListViewer__alabeltListboxtBROWSEt_ListViewer__aliases(tselftswitchboardtmasterRtroottframetcanvas((s7/usr/lib64/python2.7/site-packages/pynche/ListViewer.pyt__init__sD			



		
cCs�|jj�}|j}d}d}g}|_x|j�D]}tj|j|��}|jd|ddd|ddd|�|j	d|ddd|dt
�}|j|�\}	}
}}|jd	|dd	|d	|dd
ddd
|df�}
|jd|j
�|j|
�|d	|krD|d	}n|d7}q>W|ddd}|jdddd|f�xB|D]:}|j|�\}	}
}}|j||	|
||�q�WdS(NiiiR	ii
Rtanchoriitoutlinetttagstalls<ButtonRelease>itscrollregioni�(RtcolordbR&t_ListViewer__bboxestunique_namestColorDBttriplet_to_rrggbbtfind_bynametcreate_rectangletcreate_texttWtbboxRt_ListViewer__onreleasetappendtconfigtcoords(R9RFR>trowtwidesttbboxestnamet
exactcolorttextidtx1ty1ttextendty2tboxidt
canvheighttboxtx2((s7/usr/lib64/python2.7/site-packages/pynche/ListViewer.pyt
__populateDs8	
	


cCs%|j}|j|j�}|j|j�}|j||||�}x%|D]}||jkrLPqLqLWdS|jj|�}x&|D]}|ddkr�Pq�q�WdStj	|�\}	}
}d|_
|jj�r�|j
j|	|
|�n0|j|	|
|�|	|
||_|_|_dS(Nit#i(R&tcanvasxtxtcanvasytytfind_overlappingRGtgettagsRItrrggbb_to_tripletRR/R0Rtupdate_viewstupdate_yourselft_ListViewer__redt_ListViewer__greent_ListViewer__blue(R9teventR>ReRgtidsR^RCtttredtgreentblue((s7/usr/lib64/python2.7/site-packages/pynche/ListViewer.pyt__onreleaseds&	

	cCs5|jj�r1|jj|j|j|j�ndS(N(R/R0RRkRmRnRo(R9Rp((s7/usr/lib64/python2.7/site-packages/pynche/ListViewer.pyt__toggleupdatescCs|jj�dS(N(Rtquit(R9Rp((s7/usr/lib64/python2.7/site-packages/pynche/ListViewer.pyt__quit�scCs|jj�dS(N(RR(R9Rp((s7/usr/lib64/python2.7/site-packages/pynche/ListViewer.pyR�scCs|jj�dS(N(Rt	deiconify(R9Rp((s7/usr/lib64/python2.7/site-packages/pynche/ListViewer.pyRz�scCs�|j}|jr+|j|jdd�ntj|||f�}|j|dd�||_|jjdt�y&|jj	�j
|||�d}Wn(tjk
r�|jjtd�dSX|s�|jjtd�n$x!|D]}|jjt|�q�W|j
rd|_
ni|j|�\}}}}	|j|jd�\}}}}
t|d	�d
}|jd|	||
�dS(NRARBtblackiis<no matching color>s<no aliases>i����Rg�?tmoveto(R&Rt
itemconfigureRIRJR8tdeletetENDRRFt
aliases_oftBadColortinsertRRSRGtintR(R9RsRtRuR>tcolortagtaliasesRWtigR[R]th((s7/usr/lib64/python2.7/site-packages/pynche/ListViewer.pyRl�s,			&
	"cCs|jj�|d<dS(NR(R/R0(R9R((s7/usr/lib64/python2.7/site-packages/pynche/ListViewer.pytsave_options�scCs|jjd�|j�dS(NRD(R&R~R-(R9RF((s7/usr/lib64/python2.7/site-packages/pynche/ListViewer.pytcolordb_changed�sN(
t__name__t
__module__RR?R-RPR2R RRzRlR�R�(((s7/usr/lib64/python2.7/site-packages/pynche/ListViewer.pyRs,	 		((t__doc__tTkinterRIt	ADDTOVIEWR(((s7/usr/lib64/python2.7/site-packages/pynche/ListViewer.pyt<module>s

Name
Size
Permissions
Options
X
--
drwxr-xr-x
ChipViewer.py
4.881 KB
-rw-r--r--
ChipViewer.pyc
5.37 KB
-rw-r--r--
ChipViewer.pyo
5.37 KB
-rw-r--r--
ColorDB.py
8.731 KB
-rw-r--r--
ColorDB.pyc
9.465 KB
-rw-r--r--
ColorDB.pyo
9.465 KB
-rw-r--r--
DetailsViewer.py
9.879 KB
-rw-r--r--
DetailsViewer.pyc
10.323 KB
-rw-r--r--
DetailsViewer.pyo
10.323 KB
-rw-r--r--
ListViewer.py
6.492 KB
-rw-r--r--
ListViewer.pyc
7.025 KB
-rw-r--r--
ListViewer.pyo
7.025 KB
-rw-r--r--
Main.py
6.25 KB
-rw-r--r--
Main.pyc
6.137 KB
-rw-r--r--
Main.pyo
6.137 KB
-rw-r--r--
PyncheWidget.py
10.255 KB
-rw-r--r--
PyncheWidget.pyc
10.84 KB
-rw-r--r--
PyncheWidget.pyo
10.84 KB
-rw-r--r--
README
15.414 KB
-rw-r--r--
StripViewer.py
15.103 KB
-rw-r--r--
StripViewer.pyc
13.538 KB
-rw-r--r--
StripViewer.pyo
13.396 KB
-rw-r--r--
Switchboard.py
4.704 KB
-rw-r--r--
Switchboard.pyc
5.923 KB
-rw-r--r--
Switchboard.pyo
5.923 KB
-rw-r--r--
TextViewer.py
6.708 KB
-rw-r--r--
TextViewer.pyc
7.187 KB
-rw-r--r--
TextViewer.pyo
7.187 KB
-rw-r--r--
TypeinViewer.py
5.959 KB
-rw-r--r--
TypeinViewer.pyc
6.261 KB
-rw-r--r--
TypeinViewer.pyo
6.261 KB
-rw-r--r--
__init__.py
0.046 KB
-rw-r--r--
__init__.pyc
0.137 KB
-rw-r--r--
__init__.pyo
0.137 KB
-rw-r--r--
html40colors.txt
0.239 KB
-rw-r--r--
namedcolors.txt
5.582 KB
-rw-r--r--
pyColorChooser.py
3.68 KB
-rw-r--r--
pyColorChooser.pyc
4.32 KB
-rw-r--r--
pyColorChooser.pyo
4.32 KB
-rw-r--r--
pynche
0.178 KB
-rwxr-xr-x
webcolors.txt
3.016 KB
-rw-r--r--
websafe.txt
1.708 KB
-rw-r--r--