/usr/lib64/python2.6/site-packages/pynche
NameSizeModeActions
X/-0755rm
ChipViewer.py49980644editdlrm
ChipViewer.pyc55050644editdlrm
ChipViewer.pyo55050644editdlrm
ColorDB.py89410644editdlrm
ColorDB.pyc97510644editdlrm
ColorDB.pyo97510644editdlrm
DetailsViewer.py101150644editdlrm
DetailsViewer.pyc106410644editdlrm
DetailsViewer.pyo106410644editdlrm
html40colors.txt2450644editdlrm
ListViewer.py66480644editdlrm
ListViewer.pyc72220644editdlrm
ListViewer.pyo72220644editdlrm
Main.py64000644editdlrm
Main.pyc63410644editdlrm
Main.pyo63410644editdlrm
namedcolors.txt57160644editdlrm
pyColorChooser.py37680644editdlrm
pyColorChooser.pyc44530644editdlrm
pyColorChooser.pyo44530644editdlrm
pynche1790755editdlrm
PyncheWidget.py105010644editdlrm
PyncheWidget.pyc111460644editdlrm
PyncheWidget.pyo111460644editdlrm
README157840644editdlrm
StripViewer.py154650644editdlrm
StripViewer.pyc139040644editdlrm
StripViewer.pyo137480644editdlrm
Switchboard.py48170644editdlrm
Switchboard.pyc60910644editdlrm
Switchboard.pyo60910644editdlrm
TextViewer.py68690644editdlrm
TextViewer.pyc74100644editdlrm
TextViewer.pyo74100644editdlrm
TypeinViewer.py61020644editdlrm
TypeinViewer.pyc64700644editdlrm
TypeinViewer.pyo64700644editdlrm
webcolors.txt30880644editdlrm
websafe.txt17490644editdlrm
__init__.py470644editdlrm
__init__.pyc1400644editdlrm
__init__.pyo1400644editdlrm
Edit: /usr/lib64/python2.6/site-packages/pynche/StripViewer.pyo (13748B)
Ñò «gc@sÌdZddkTddkZdZdZdZdZdZd „Zd „Z d „Z d „Z d „Z d„Z d„Zddd„ƒYZdefd„ƒYZddd„ƒYZddd„ƒYZdS(szStrip viewer and related widgets. The classes in this file implement the StripViewer shown in the top two thirds of the main Pynche window. It consists of three StripWidgets which display the variations in red, green, and blue respectively of the currently selected r/g/b color value. Each StripWidget shows the color variations that are reachable by varying an axis of the currently selected color. So for example, if the color is (R,G,B)=(127,163,196) then the Red variations show colors from (0,163,196) to (255,163,196), the Green variations show colors from (127,0,196) to (127,255,196), and the Blue variations show colors from (127,163,0) to (127,163,255). The selected color is always visible in all three StripWidgets, and in fact each StripWidget highlights the selected color, and has an arrow pointing to the selected chip, which includes the value along that particular axis. Clicking on any chip in any StripWidget selects that color, and updates all arrows and other windows. By toggling on Update while dragging, Pynche will select the color under the cursor while you drag it, but be forewarned that this can be slow. iÿÿÿÿ(t*Nsproc setcolor {canv colors} { set i 1 foreach c $colors { $canv itemconfigure $i -fill $c -outline $c incr i } } iiit cCsZd|d}d}g}x9|djo+|it|ƒƒ||}|d}qW|S(Ngào@igi(tappendtint(tnumchipststeptstarttseq((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pytconstant4s  cCs&t|ƒ}td|g|||ƒS(N(RtmaptNone(RtredtgreentblueR((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pytconstant_red_generator?s cCs&t|ƒ}td||g||ƒS(N(RR R (RR R R R((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pytconstant_green_generatorDs cCs&t|ƒ}td|||g|ƒS(N(RR R (RR R R R((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pytconstant_blue_generatorIs cCs-t|ƒ}td||g||g|ƒS(N(RR R (RR R R R((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pytconstant_cyan_generatorNs cCs-t|ƒ}td|g|||g|ƒS(N(RR R (RR R R R((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pytconstant_magenta_generatorSs cCs-t|ƒ}td|g||g||ƒS(N(RR R (RR R R R((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pytconstant_yellow_generatorXs t LeftArrowcBsSeZdZdZdZdZd Zd„Zd„Zd„Z d„Z d „Z RS( iii it leftarrowcCs5||_|i|ƒ\|_|_|i|ƒdS(N(t_canvast_createt_LeftArrow__arrowt_LeftArrow__texttmove_to(tselftcanvastx((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pyt__init__es c Cs|ii||i|i||i||i|iddddd|iƒ}|ii||id|i|id|iddƒ}||fS( Ntarrowtfirsttwidthg@ttagsi ttextt128(Rt create_linet _ARROWHEIGHTt_YOFFSETt _ARROWWIDTHt_TAGt create_textt _TEXTYOFFSET(RRRR#((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pyRjs      cCs|ii|iƒ}|dS(Ni(RtcoordsR)(RR,((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pyt_xyscCs-||iƒ}|ii|i|dƒdS(Ni(R-RtmoveR)(RRtdeltax((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pyR~scCs|ii|id|ƒdS(NR#(Rt itemconfigureR(RR#((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pytset_text‚s(R( t__name__t __module__R(R&R'R+R)RRR-RR1(((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pyR^s    t RightArrowcBs eZdZd„Zd„ZRS(t rightarrowc Cs|ii||i||i|i||i|i|iddddd|iƒ}|ii||id|i|idtdd d|iƒ}||fS( NRtlastR!g@R"itjustifyR#R$( RR%R'R(R&R)R*R+tRIGHT(RRRR#((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pyR‰s     cCs$|ii|iƒ}|d|iS(Ni(RR,R)R((RR,((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pyR-™s(R5(R2R3R)RR-(((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pyR4†s t StripWidgetc BsneZdZdZdZd eeed d dd d d„ Zd„Zd d„Zd„Z d„Z d „Z RS( i2i i(tc  CsÌ||_||_||_| |_| |_d|_||_||d} |d} t|d| d| ƒ} |_ | i ƒ| i d|i ƒ| i d|i ƒ| i d|i ƒ| i itƒg}|_d}d}d}xht|iƒD]W}d }| i||||||d |d |d |ƒ||d}|i|ƒqøW| id||dd|dtƒ|_|idƒ}t| |ƒ|_|it|ƒdƒ}t| |ƒ|_dS(Nii+R!theightsss itchiptgreytfilltoutlineR"iiR#tanchori(schip(t_StripWidget__generatort_StripWidget__axist_StripWidget__numchipst_StripWidget__uwdt_StripWidget__hexpR t_StripWidget__lastchipt_StripWidget__sbtCanvast_StripWidget__canvastpacktbindt_StripWidget__select_chipttktevaltTCLPROCt_StripWidget__chipstrangetcreate_rectangleRR*tWt_StripWidget__labelt_StripWidget__arrow_xRt_StripWidget__leftarrowtlenR4t_StripWidget__rightarrow(Rt switchboardtmastert chipwidtht chipheightRt generatortaxistlabeltuwdvarthexvart canvaswidtht canvasheightRtchipsRtyR"tctcolortchipx((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pyR¥sL             cCs4|ii|dƒ}|\}}}}||dS(Nig@(RIR,(RtchipnumR,tx0ty0tx1ty1((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pyt __arrow_xésc Cs÷|i}|i}|i}|i||||ƒ}|o¹d|djo |ijno”|i|dd}ti|ƒ\}}} t|i ƒ} | t jp|i i ƒo|i i||| ƒqó|i|d||| fƒndS(Nii(RReRItfind_overlappingRCRPtColorDBtrrggbb_to_tripletRttypetBTNUPRDtgetRGt update_viewst_StripWidget__trackarrow( RteventRReRR<RgR R R tetype((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pyt __select_chipñs   ,cCsX|idj o5|ii|idƒ}|ii|id|ƒn||_||i}|iiƒot|ƒ}n t |ƒ}|djoA|i i |ƒ|i i |i |dƒƒ|ii dƒn>|ii |ƒ|ii |i |dƒƒ|i i dƒti|ƒ}|djo d}nd}|ii|d|ƒdS(NR>R?i€iiœÿÿÿtwhitetblack(RFR RItitemcgetR0RBRERtthextreprRVR1RRURXRpttriplet_to_brightness(RR<trgbtupleRgt coloraxisR#t brightnessR?((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pyt __trackarrows(      cCsúd}d}g}|_|ii}x‰|i|i|||ƒD]l}ti|ƒ} |i| ƒ|\} } } | |jo$| |jo| |jo |}n|d}qAWti |ƒ} |i d|ii | fƒ|i ||||fƒdS(Niissetcolor %s {%s}( RPRIRMRARCRpttriplet_to_rrggbbRtSPACEtjoinRNt_wRv(RR R R tiR<RdRMtttrrggbbttredttgreenttbluetcolors((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pytupdate_yourself#s   ' cCs&|ii|id|ƒ||_dS(NR#(RIR0RTRA(RR_R]((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pytset7sN( R2R3t _CHIPHEIGHTt _CHIPWIDTHt _NUMCHIPSR RRURLRvRR(((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pyR9 s" ;   " t StripViewercBsJeZdd„Zd„Zdd„Zdd„Zdd„Zd„ZRS(c Csœ||_|iƒ}t|dtddƒ}|iddddddd d ƒtƒ}|_|i|id dƒƒtƒ}|_ |i|id dƒƒt|ƒ}|i d t dt ƒt ||dtddddd|d|ƒ|_t ||dtddddd|d|ƒ|_t ||dtddddd|d|ƒ|_t|ƒ}|i d t dt ƒ|idddƒ|idddƒd} t|ddd|iƒ} | iddddddd td| ƒt|ddd |ƒ} | iddddd tƒt|dd!d |d|iƒ} | iddddd tƒt|dd"d|iƒ} | iddddddd td| ƒdS(#Ntrelieft borderwidthitrowtcolumnit columnspanitstickytNSEWt UPWHILEDRAGtHEXSTRIPtexpandR>R]R^R_sRed VariationsR`RasGreen VariationssBlue VariationstweightiiR#tBlacktcommandtrowspantpadxsUpdate while draggingtvariablet HexadecimaltWhite(t_StripViewer__sbtoptiondbtFrametRAISEDtgridt BooleanVart_StripViewer__uwdvarRRtt_StripViewer__hexpvarRJtYEStBOTHR9Rt_StripViewer__redsRt_StripViewer__greensRt_StripViewer__bluestcolumnconfiguretButtont_StripViewer__toblackRSt Checkbuttont_StripViewer__togglehext_StripViewer__towhitetE(RRYRZR¨tframetuwdthexptframe1tframe2R£tblackbtntuwdbtnthexbtntwhitebtn((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pyR=s^  "       (      cCsF|ii|||ƒ|ii|||ƒ|ii|||ƒdS(N(R±RR²R³(RR R R ((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pyRŒscCs/|iiƒ\}}}|i|||ƒdS(N(R§t current_rgbR(RRwR R R ((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pyt __togglehex‘scCs|iidddƒdS(Ni(R§Ru(RRw((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pyt __toblack©scCs|iidddƒdS(Niÿ(R§Ru(RRw((s8/usr/lib64/python2.6/site-packages/pynche/StripViewer.pyt __towhite¬scCs*|iiƒ|d<|iiƒ|ds$        (œ