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/Main.pyc
mς
‚=5Dc@sdZdZdkZdkZdkZdkZdklZdklZdklZdk	l	Z	dk
l
Z
eidZd	Z
d
Zddeiieidd
ƒgZd„Zdd„Zd„Zdddddd„Zd„Zd„ZedjoeƒndS(sPynche -- The PYthon Natural Color and Hue Editor.

Contact: %(AUTHNAME)s
Email:   %(AUTHEMAIL)s
Version: %(__version__)s

Pynche is based largely on a similar color editor I wrote years ago for the
SunView window system.  That editor was called ICE: the Interactive Color
Editor.  I'd always wanted to port the editor to X but didn't feel like
hacking X and C code to do it.  Fast forward many years, to where Python +
Tkinter provides such a nice programming environment, with enough power, that
I finally buckled down and implemented it.  I changed the name because these
days, too many other systems have the acronym `ICE'.

This program currently requires Python 2.2 with Tkinter.

Usage: %(PROGRAM)s [-d file] [-i file] [-X] [-v] [-h] [initialcolor]

Where:
    --database file
    -d file
        Alternate location of a color database file

    --initfile file
    -i file
        Alternate location of the initialization file.  This file contains a
        persistent database of the current Pynche options and color.  This
        means that Pynche restores its option settings and current color when
        it restarts, using this file (unless the -X option is used).  The
        default is ~/.pynche

    --ignore
    -X
        Ignore the initialization file when starting up.  Pynche will still
        write the current option settings to this file when it quits.

    --version
    -v
        print the version number and exit

    --help
    -h
        print this message

    initialcolor
        initial color, as a color name or #RRGGBB format
s1.4.1N(sPyncheWidget(sSwitchboard(sStripViewer(s
ChipViewer(sTypeinViewerisBarry Warsawsbarry@python.orgs/usr/openwin/lib/rgb.txts/usr/lib/X11/rgb.txts	X/rgb.txtcCsttƒS(N(t__doc__tglobals(((t//usr/lib/python2.4/site-packages/pynche/Main.pyt	docstringSstcCs)tƒGH|o	|GHnti|ƒdS(N(Rtmsgtsystexittcode(RR((RtusageWs	cCs₯|d„}||ƒ\}}}|djo|d|ƒ\}}}n|djo"dG|GH|dƒ\}}}n|djotddƒn|||fS(NcCs{y|i|ƒ\}}}WnOtij
o@yti|ƒ\}}}Wqntij
odSqnXnX|||fS(N(NNN(
tcolordbtfind_bynametstrtgtbtColorDBtBadColortrrggbb_to_triplettNone(RR
RRR
((Rt
scan_colorast#s Bad initial color, using gray50:tgray50is#Cannot find an initial color to use(R
RRR
RRRR	(RR
RRR
R((Rt
initial_color_s

	
cCst|o|ƒ}|djo|iƒidƒ}nd}t	}	|djo|	iƒ}nxm|djo_yti
|ƒ}Wnttfj
onX|djo|	pPn|	idƒ}qgqgW|ptddƒn|i|ƒtt|d|ƒ}|iƒ}
|it||
ƒƒ|it||
ƒƒ|it||
ƒƒ|djo€|iƒ}
|
idƒ}|
idƒ}|
idƒ}|djp|djp
|djot d	|ƒ\}}}qnt ||ƒ\}}}|i!|||ƒ||fS(
NtDBFILEiis0No color database file found, see the -d option.tmastertREDtGREENtBLUEtgrey50("tSwitchboardtignoretinitfileRtdbfileRtoptiondbtgetR
tRGB_TXTtfilestpopRtget_colordbtKeyErrortIOErrorR	tset_colordbtPyncheWidgett__version__Rtapptwindowtwtadd_viewtStripViewert
ChipViewertTypeinViewertinitialcolortredtgreentblueRtupdate_views(RR4R RR!R-R7R
R5R%R"RR6R/((Rtbuild{sF





' cCs(y|iƒWntj
onXdS(N(R-tstarttKeyboardInterrupt(R-R((Rtrun―sc	Cs¦y5titidddddddgƒ\}
}Wn%tij
o}td|ƒnXt|ƒdjo
d}n,t|ƒdjo|d}ntdƒt}d}tiid	ƒ}xž|
D]–\}}|djotdƒqΚ|djodtƒGHtidƒqΚ|djo
|}qΚ|djo
t}qΚ|djo
|}qΚqΚWtd|d|d|d|ƒ\}}	t||	ƒ|	iƒdS(Nishd:i:Xvs	database=s	initfile=Rthelptversionis	~/.pynches-hs--helps-vs	--versionsxPynche -- The PYthon Natural Color and Hue Editor.
Contact: %(AUTHNAME)s
Email:   %(AUTHEMAIL)s
Version: %(__version__)ss-ds
--databases-Xs--ignores-is
--initfileR4R R!(s-hs--help(s-vs	--version(s-ds
--database(s-Xs--ignore(s-is
--initfile(tgetoptRtargvtoptstargsterrorRR	tlenRR4tFalseRR!tostpatht
expanduserR topttargRRtTrueR9R-tsbR<t
save_views(R-R!RJR4RRIRBR RRLRA((Rtmain·sB"








	
t__main__(RR,RRFR?RR+RR1R2R3R@tPROGRAMtAUTHNAMEt	AUTHEMAILRGtjoinR$RR	RRR9R<RNt__name__(RRPR+R1RRR$R9RR	R?RNR<RR2R3RRRQR,RF((Rt?/s,				





%		4		-