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/DetailsViewer.pyo
�
��^c@sEdZddlTdZdZdZdZdZddd	��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.

    Preserve 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
i����(t*tStopsWrap AroundsPreserve DistancetSquashsDetails Window...t
DetailsViewercBs�eZdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Z	dd�Z
dd�Zdd	�Zdd
�Z
d�Zd�Zd
�ZRS(cCs�||_|j�}|j�\|_|_|_t|dd�}|_|jd|j	�|j
d�|jd�|jd|j
�|jd|j
�|jd|j	�|jd|j	�|jd	|j�|jd
|j�|jd|j�|jd|j�|jd
|j�|jd|j�t|�}|_|jdtdt�t|dd�|_|jjdddddt�t�|_|jj|j dd��t!|ddd|jd|j"dddd�|_#|j#jdddddt$�t�|_%|j%j|j dd ��t!|dd!d|j%d|j"dd dd�|_&|j&jdd dddt$�t�|_'|j'j|j d"d��t!|dd#d|j'd|j"dddd�|_(|j(jdd$dddt$�t|�|_)|j)jdddddt$�|j"�t|dd%�|_*|j*jdd&dddt�t+�|_,|j,j|j d't-��t.||j,t-t/t0t1�|_2|j2jdd&dddt$�|j2j3d(d)�t|�}|_4|jddddd*d dd+�t5|dd,d|j�|_6t5|dd-d|j�|_7t5|dd.d|j�|_8t5|dd/d|j�|_9t5|dd0d|j�|_:t5|dd1d|j�|_;|j6jdtdtd2t<�|j7jdtdtd2t<�|j8jdtdtd2t<�|j9jdtdtd2t<�|j:jdtdtd2t<�|j;jdtdtd2t<�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(=t_DetailsViewer__sbtoptiondbtcurrent_rgbt_DetailsViewer__redt_DetailsViewer__greent_DetailsViewer__bluetToplevelt_DetailsViewer__roottprotocoltwithdrawttitleticonnametbindt_DetailsViewer__quitt_DetailsViewer__minus1t_DetailsViewer__plus1t_DetailsViewer__minus10t_DetailsViewer__plus10t_DetailsViewer__minus25t_DetailsViewer__plus25tFramet_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(tselftswitchboardtmasterRtroottframe((s:/usr/lib64/python2.7/site-packages/pynche/DetailsViewer.pyt__init__Bs�	

						
"cCs|jj�|jj�|jj�}|dkr>d}n*didd6d	d
6dd6d
d6|}|jjd|�dS(Niiiits(= %s Level)tCyanitMagentaitYellowitGreyiR	(iiii(R:R<RARCRERO(RYteventttieR	((s:/usr/lib64/python2.7/site-packages/pynche/DetailsViewer.pyt__effect�s)	
cCs|jj�dS(N(R#tquit(RYRd((s:/usr/lib64/python2.7/site-packages/pynche/DetailsViewer.pyt__quit�scCs|jj�dS(N(R#R%(RYRd((s:/usr/lib64/python2.7/site-packages/pynche/DetailsViewer.pyR%�scCs|jj�dS(N(R#t	deiconify(RYRd((s:/usr/lib64/python2.7/site-packages/pynche/DetailsViewer.pyRi�scCs|jd�dS(Ni��(t_DetailsViewer__delta(RYRd((s:/usr/lib64/python2.7/site-packages/pynche/DetailsViewer.pyt	__minus25�scCs|jd�dS(Ni����(Rj(RYRd((s:/usr/lib64/python2.7/site-packages/pynche/DetailsViewer.pyt	__minus10�scCs|jd�dS(Ni����(Rj(RYRd((s:/usr/lib64/python2.7/site-packages/pynche/DetailsViewer.pyt__minus1�scCs|jd�dS(Ni(Rj(RYRd((s:/usr/lib64/python2.7/site-packages/pynche/DetailsViewer.pyt__plus1�scCs|jd�dS(Ni
(Rj(RYRd((s:/usr/lib64/python2.7/site-packages/pynche/DetailsViewer.pyt__plus10�scCs|jd�dS(Ni(Rj(RYRd((s:/usr/lib64/python2.7/site-packages/pynche/DetailsViewer.pyt__plus25�sc	Cs�g}|jj�r2|j|}|j|�n	|j}|jj�rg|j|}|j|�n	|j}|jj�r�|j|}|j|�n	|j}|jj�}|t	kr+|dks|dks|dks|dks|dks|dkr�|j|j|j}}}q�n�|t
ksU|tkr�t|�dkr�|dkrn|d7}n|dkr�|d7}n|dkr�|d7}n|dkr�|d8}n|dkr�|d8}n|dkr�|d8}q�n�|tkr(d}x8|D]0}|dkr"d}q|dkrd}qqW|dkr�t
|�}|jj�rs|d|}n|jj�r�|d|}n|jj�r%|d|}q%q�|dkr�t|�}|jj�r�||}n|jj�r||}n|jj�r%||}q%q�n�|tkr�|dkrId}n|dkr^d}n|dkrsd}n|dkr�d}n|dkr�d}n|dkr�d}q�n|jj|||�|jj�dS(Nii�iii����i(R:R<RtappendRAR RCR!RHRIRKRLtlentmaxtminRMRtupdate_viewsR#tupdate_idletasks(	RYtdeltaRetredtgreentbluetatboundtdirtc((s:/usr/lib64/python2.7/site-packages/pynche/DetailsViewer.pyt__delta�s�
	
	
	$$#*





	


					cCs||_||_||_dS(N(RR R!(RYRxRyRz((s:/usr/lib64/python2.7/site-packages/pynche/DetailsViewer.pytupdate_yourselfs		cCsP|jj�|d<|jj�|d<|jj�|d<|jj�|d<dS(NR
RRR(R:R<RARCRH(RYR((s:/usr/lib64/python2.7/site-packages/pynche/DetailsViewer.pytsave_options
sN(t__name__t
__module__tNoneR^R>R)R%RiR.R,R*R+R-R/RjRR�(((s:/usr/lib64/python2.7/site-packages/pynche/DetailsViewer.pyRAsS	M	N((t__doc__tTkinterRIRKRLRMt	ADDTOVIEWR(((s:/usr/lib64/python2.7/site-packages/pynche/DetailsViewer.pyt<module>5s

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--