MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/3/root/usr/lib/python2.4/site-packages/pynche/ListViewer.pyc
mò
‚=5Dc@s3dZdkTdkZdZdfd„ƒ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.
(t*NsColor %List Window...t
ListViewercBsttZdd„Zd„Zdd„Zdd„Zdd„Zdd„Zdd„Z	d„Z
d	„Zd
„ZRS(Nc
Cs=||_|iƒ}d|_d|_t|ddƒ}|_
|id|iƒ|i
dƒ|idƒ|id|iƒ|id|iƒ|id|iƒ|id	|iƒt|ƒ}|_|iƒt|d
ddd
dddtƒ}|_t|ƒ|_|iidtdtƒ|idtddƒ|id|idfƒ|iid|dfƒ|iƒt ƒ|_!|i!i"|i#ddƒƒt$|ddd|i!d|i%ƒ|_&|i&idddtƒt'|ddƒ|_(|i(iƒt)|dddt*ƒ|_+|i+idddtƒ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(,tswitchboardtselft_ListViewer__sbtoptiondbtNonet_ListViewer__lastboxt_ListViewer__dontcentertTopleveltmastertroott_ListViewer__roottprotocoltwithdrawttitleticonnametbindt_ListViewer__quittFrametframet_ListViewer__frametpacktCanvastSUNKENtcanvast_ListViewer__canvast	Scrollbart_ListViewer__scrollbartYtRIGHTtBOTHt	configuret_ListViewer__populatet
BooleanVart_ListViewer__uocR
tgettCheckbuttont_ListViewer__toggleupdatet_ListViewer__uocbtntLabelt_ListViewer__alabeltListboxtBROWSEt_ListViewer__aliases(RRRRR+RR&((t5/usr/lib/python2.4/site-packages/pynche/ListViewer.pyt__init__sD			



	
cCsË|iiƒ}
|i}d}d}g}
|_x |
i	ƒD]}ti|
i
|ƒƒ}|id|ddd|ddd|ƒ|id|ddd|dtƒ}|i|ƒ\}}}}|id	|dd	|d	|dd
ddd
|dfƒ}|id|iƒ|
i|ƒ|d	|jo|d	}n|d7}q>W|ddd}	|idddd|	fƒxB|
D]:}|i|ƒ\}}}}|i|||||ƒq‰WdS(NiiiR	ii
Rtanchoriitoutlinetttagstalls<ButtonRelease>itscrollregioni–(!RRtcolordbR,R+trowtwidesttbboxest_ListViewer__bboxestunique_namestnametColorDBttriplet_to_rrggbbtfind_bynamet
exactcolortcreate_rectangletcreate_texttWttextidtbboxtx1ty1ttextendty2tboxidR#t_ListViewer__onreleasetappendt
canvheighttconfigtboxtcoordstx2(RRZR[R+RYRQRMRIRUR^RGR`RbRJRXRWRH((R?t
__populateDs<	



cCs+|i}|i|iƒ}
|i|iƒ}	|i|
|	|
|	ƒ}x'|D]}||ijoPqLqLWdS|ii|ƒ}x(|D]}|ddjoPqˆqˆWdSti|ƒ\}}}d|_|iiƒo|ii|||ƒn1|i|||ƒ||||_|_|_dS(Nit#i(RR,R+tcanvasxteventtxtcanvasytytfind_overlappingtidsR[RKtgettagsRDttRNtrrggbb_to_triplettredtgreentblueRR5R6Rtupdate_viewstupdate_yourselft_ListViewer__redt_ListViewer__greent_ListViewer__blue(RRfRqR[R+RDRkRpRmRiRgRo((R?t__onreleaseds*				cCs7|iiƒo#|ii|i|i|iƒndS(N(RR5R6RRrRtRuRv(RRf((R?t__toggleupdatescCs|iiƒdS(N(RRtquit(RRf((R?t__quitƒscCs|iiƒdS(N(RRR (RRf((R?R †scCs|iiƒdS(N(RRt	deiconify(RRf((R?R{‰scCs|i}|io|i|iddƒnti|||fƒ}|i|ddƒ||_|iidt
ƒy&|iiƒi|||ƒd}Wn-tij
o|iit
dƒdSnX|p|iit
dƒn%x!|D]}|iit
|ƒqïW|io
d|_nj|i|ƒ\}}}}	|i|idƒ\}}}}
t|d	ƒd
}|id|	||
ƒdS(NRBRCtblackiis<no matching color>s<no aliases>iÿÿÿÿRf0.5tmoveto(RR,R+Rt
itemconfigureRNRORoRpRqtcolortagR>tdeletetENDRRGt
aliases_oftaliasestBadColortinsertRMRRatigRXRKRZtintthR(RRoRpRqR+RMRRˆR†RXRZRƒ((R?RsŒs.	
	&	

"cCs|iiƒ|d<dS(NR(RR5R6R(RR((R?tsave_optionsªscCs|iidƒ|iƒdS(NRE(RR,R€R3(RRG((R?tcolordb_changed­s(
t__name__t
__module__RR@R3R\R8R$R R{RsR‰RŠ(((R?Rs,	 		(t__doc__tTkinterRNt	ADDTOVIEWR(RRRN((R?t?s