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: //usr/lib/python2.4/site-packages/pynche/DetailsViewer.pyo
mò
‚=5Dc@sBdZdkTdZdZdZdZdZdfd„ƒYZd	S(
s–DetailsViewer class.

This class implements a pure input window which allows you to meticulously
edit the current color.  You have both mouse control of the color (via the
buttons along the bottom row), and there are keyboard bindings for each of the
increment/decrement buttons.

The top three check buttons allow you to specify which of the three color
variations are tied together when incrementing and decrementing.  Red, green,
and blue are self evident.  By tying together red and green, you can modify
the yellow level of the color.  By tying together red and blue, you can modify
the magenta level of the color.  By tying together green and blue, you can
modify the cyan level, and by tying all three together, you can modify the
grey level.

The behavior at the boundaries (0 and 255) are defined by the `At boundary'
option menu:

    Stop
        When the increment or decrement would send any of the tied variations
        out of bounds, the entire delta is discarded.

    Wrap Around
        When the increment or decrement would send any of the tied variations
        out of bounds, the out of bounds variation is wrapped around to the
        other side.  Thus if red were at 238 and 25 were added to it, red
        would have the value 7.

    Preseve Distance
        When the increment or decrement would send any of the tied variations
        out of bounds, all tied variations are wrapped as one, so as to
        preserve the distance between them.  Thus if green and blue were tied,
        and green was at 238 while blue was at 223, and an increment of 25
        were applied, green would be at 15 and blue would be at 0.

    Squash
        When the increment or decrement would send any of the tied variations
        out of bounds, the out of bounds variation is set to the ceiling of
        255 or floor of 0, as appropriate.  In this way, all tied variations
        are squashed to one edge or the other.

The following key bindings can be used as accelerators.  Note that Pynche can
fall behind if you hold the key down as a key repeat:

Left arrow == -1
Right arrow == +1

Control + Left == -10
Control + Right == 10

Shift + Left == -25
Shift + Right == +25
(t*tStopsWrap AroundsPreserve DistancetSquashsDetails Window...t
DetailsViewercBs§tZdd„Zdd„Zdd„Zdd„Zdd„Zdd„Zdd„Z	dd„Z
dd	„Zdd
„Zdd„Z
d„Zd
„Zd„ZRS(NcCs||_|iƒ}|iƒ\|_|_|_t|ddƒ}|_|id|i
ƒ|idƒ|idƒ|id|iƒ|id|iƒ|id|i
ƒ|id|i
ƒ|id	|iƒ|id
|iƒ|id|iƒ|id|iƒ|id
|iƒ|id|iƒt|ƒ}|_|idtdtƒt|ddƒ|_|ii dddddt!ƒt"ƒ|_#|i#i$|i%ddƒƒt&|ddd|i#d|i'ddddƒ|_(|i(i dddddt)ƒt"ƒ|_*|i*i$|i%dd ƒƒt&|dd!d|i*d|i'dd ddƒ|_+|i+i dd dddt)ƒt"ƒ|_,|i,i$|i%d"dƒƒt&|dd#d|i,d|i'ddddƒ|_-|i-i dd$dddt)ƒt|ƒ|_.|i.i dddddt)ƒ|i'ƒt|dd%ƒ|_/|i/i dd&dddt!ƒt0ƒ|_1|i1i$|i%d't2ƒƒt3||i1t2t4t5t6ƒ|_7|i7i dd&dddt)ƒ|i7i8d(d)ƒt|ƒ}|_9|i ddddd*d dd+ƒt:|dd,d|iƒ|_;t:|dd-d|iƒ|_<t:|dd.d|iƒ|_=t:|dd/d|iƒ|_>t:|dd0d|iƒ|_?t:|dd1d|iƒ|_@|i;idtdtd2tAƒ|i<idtdtd2tAƒ|i=idtdtd2tAƒ|i>idtdtd2tAƒ|i?idtdtd2tAƒ|i@idtdtd2tAƒdS(3Ntclass_tPynchetWM_DELETE_WINDOWsPynche Details Windows<Alt-q>s<Alt-Q>s<Alt-w>s<Alt-W>s<KeyPress-Left>s<KeyPress-Right>s<Control-KeyPress-Left>s<Control-KeyPress-Right>s<Shift-KeyPress-Left>s<Shift-KeyPress-Right>texpandtfillttexts
Move Sliders:trowitcolumnitstickytRSLIDERitRedtvariabletcommandtonvaluetoffvaluetGSLIDERitGreentBSLIDERtBlueisAt boundary:itATBOUNDtwidthit
columnspantEWs-25s-10s-1s+1s+10s+25tside(Btswitchboardtselft_DetailsViewer__sbtoptiondbtcurrent_rgbt_DetailsViewer__redt_DetailsViewer__greent_DetailsViewer__bluetTopleveltmastertroott_DetailsViewer__roottprotocoltwithdrawttitleticonnametbindt_DetailsViewer__quitt_DetailsViewer__minus1t_DetailsViewer__plus1t_DetailsViewer__minus10t_DetailsViewer__plus10t_DetailsViewer__minus25t_DetailsViewer__plus25tFrametframet_DetailsViewer__frametpacktYEStXtLabelt_DetailsViewer__l1tgridtEtIntVart_DetailsViewer__rvartsettgettCheckbuttont_DetailsViewer__effectt_DetailsViewer__radio1tWt_DetailsViewer__gvart_DetailsViewer__radio2t_DetailsViewer__bvart_DetailsViewer__radio3t_DetailsViewer__l2t_DetailsViewer__l3t	StringVart_DetailsViewer__boundvartSTOPt
OptionMenutWRAPtRATIOtGRAVt_DetailsViewer__omenut	configuret_DetailsViewer__btnframetButtont_DetailsViewer__down25t_DetailsViewer__down10t_DetailsViewer__down1t_DetailsViewer__up1t_DetailsViewer__up10t_DetailsViewer__up25tLEFT(RRR%R5RR&((t8/usr/lib/python2.4/site-packages/pynche/DetailsViewer.pyt__init__Bs’	

						
"cCs‰|iiƒ|iiƒ|iiƒ}|djo
d}n3dhdd<d	d
<dd<d
d<|}|iid|ƒdS(Niiiits(= %s Level)itCyanitMagentaitYellowitGreyR	(iiii(	RR?RARFRHttieR	RJRT(RteventReR	((R^t__effect•s
)

2cCs|iiƒdS(N(RR'tquit(RRf((R^t__quit scCs|iiƒdS(N(RR'R)(RRf((R^R)£scCs|iiƒdS(N(RR't	deiconify(RRf((R^Rj¦scCs|idƒdS(Niçÿÿÿ(Rt_DetailsViewer__delta(RRf((R^t	__minus25©scCs|idƒdS(Niöÿÿÿ(RRk(RRf((R^t	__minus10¬scCs|idƒdS(Niÿÿÿÿ(RRk(RRf((R^t__minus1¯scCs|idƒdS(Ni(RRk(RRf((R^t__plus1²scCs|idƒdS(Ni
(RRk(RRf((R^t__plus10µscCs|idƒdS(Ni(RRk(RRf((R^t__plus25¸sc	Csg}|iiƒo|i|}|i|ƒn
|i}|iiƒo|i	|}|i|ƒn
|i	}|iiƒo|i|}|i|ƒn
|i}|iiƒ}|tjos|djpA|djp4|djp'|djp|djp
|djo!|i|i	|i}}}qøn¿|tjp |tjo¹t|ƒdjo¦|djo|d7}n|djo|d7}n|djo|d7}n|djo|d8}n|djo|d8}n|djo|d8}qønì|tjoCd}x<|D]4}|djo
d}q'|djo
d}q'q'W|djovt|ƒ}|iiƒo|d|}n|iiƒo|d|}n|iiƒo|d|}qYqø|djojt|ƒ}|iiƒo||}n|iiƒo||}n|iiƒo||}qYqønœ|tjoŽ|djo
d}n|djo
d}n|djo
d}n|djo
d}n|djo
d}n|djo
d}qøn|ii|||ƒ|iiƒdS(Niiÿiiiÿÿÿÿi(ReRR?RAR!tdeltatredtappendRFR"tgreenRHR#tblueRMtatboundRNRPRQtlentdirtctmaxtminRRRtupdate_viewsR'tupdate_idletasks(	RRrRvRzRyRuRwReRs((R^t__delta»sŠ
	
	
	
N%-























cCs||_||_||_dS(N(RsRR!RuR"RvR#(RRsRuRv((R^tupdate_yourselfs		cCsP|iiƒ|d<|iiƒ|d<|iiƒ|d<|iiƒ|d<dS(NR
RRR(RR?RARRFRHRM(RR((R^tsave_options
s(t__name__t
__module__tNoneR_RCR-R)RjR2R0R.R/R1R3RkR€R(((R^RAsS	M	N(t__doc__tTkinterRNRPRQRRt	ADDTOVIEWR(RQR‡RNRRRPR((R^t?5s