Mini Kabibi Habibi

Current Path : C:/Users/ITO/AppData/Local/Programs/GIMP 2/lib/gimp/2.0/python/
Upload File :
Current File : C:/Users/ITO/AppData/Local/Programs/GIMP 2/lib/gimp/2.0/python/gimpfu.pyc

�

�Hec@sjdZddlZddlZddlZddlZddlTejZddlZej	dej
de�Zej
Zdefd��YZdefd	��YZeZeZeZeZeZeZeZeZeZ e!Z"e#Z$e%Z&e'Z(e)Z*e+Z,e-Z.d
Z/e/Z0dZ1dZ2e2Z3d
Z4dZ5dZ6dZ7dZ8dZ9dZ:dZ;dZ<dZ=dZ>iee6ee6ee6ee6ee6ee6e!e"6e#e$6e%e&6e'e(6e)e*6e+e,6e-e.6ee/6ee16ee26ee46ee56ee66ee76ee86ee96ee:6ee;6ee<6ee=6ee>6Z?ie@e6e@e6e@e6eAe6eBe6ejCe6e@e"6ejDe$6ejEe&6ejFe(6ejGe*6ejHe,6ejIe.6eJe/6eAe16e@e26eBe46eBe56eBe66eBe76eBe86eBe96eBe:6eBe;6eBe<6eBe=6e@e>6ZKiZLeMeMeMeMed�ZNd�ZOd�ZPd�ZQd�ZRd�ZSd�ZTd�ZUd �ZVdS(!s�Simple interface for writing GIMP plug-ins in Python.

Instead of worrying about all the user interaction, saving last used
values and everything, the gimpfu module can take care of it for you.
It provides a simple register() function that will register your
plug-in if needed, and cause your plug-in function to be called when
needed.

Gimpfu will also handle showing a user interface for editing plug-in
parameters if the plug-in is called interactively, and will also save
the last used parameters, so the RUN_WITH_LAST_VALUES run_type will
work correctly.  It will also make sure that the displays are flushed
on completion if the plug-in was run interactively.

When registering the plug-in, you do not need to worry about
specifying the run_type parameter.

A typical gimpfu plug-in would look like this:
  from gimpfu import *

  def plugin_func(image, drawable, args):
              # do what plugins do best
  register(
              "plugin_func",
              "blurb",
              "help message",
              "author",
              "copyright",
              "year",
              "My plug-in",
              "*",
              [
                  (PF_IMAGE, "image", "Input image", None),
                  (PF_DRAWABLE, "drawable", "Input drawable", None),
                  (PF_STRING, "arg", "The argument", "default-value")
              ],
              [],
              plugin_func, menu="<Image>/Somewhere")
  main()

The call to "from gimpfu import *" will import all the gimp constants
into the plug-in namespace, and also import the symbols gimp, pdb,
register and main.  This should be just about all any plug-in needs.

You can use any of the PF_* constants below as parameter types, and an
appropriate user interface element will be displayed when the plug-in
is run in interactive mode.  Note that the the PF_SPINNER and
PF_SLIDER types expect a fifth element in their description tuple -- a
3-tuple of the form (lower,upper,step), which defines the limits for
the slider or spinner.

If want to localize your plug-in, add an optional domain parameter to
the register call. It can be the name of the translation domain or a
tuple that consists of the translation domain and the directory where
the translations are installed.
i����N(t*s
gimp20-pythontfallbackterrorcBseZRS((t__name__t
__module__(((sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyRUstCancelErrorcBseZRS((RR(((sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyRVsi�i�i�i�i�i�i�i�i�i�i�i�i�i�cCsNd�}||�s!td�nxz|D]r}t|�dkr\tdt|�|f�nt|d�tkr~td�n||d�s(td�q(q(Wx�|	D]x}t|�d	kr�td
t|�|f�nt|d�td�krtd�n||d�s�td
�q�q�Wt}|jd�r�|jd�r�|jd�r�|jd�r�|jd�r�|jd�r�|jd�r�|jd�r�d|}nt}|dkr|r|jd�}|r.|j	�}dj
|�}t}ddl}d|}|j
|td	�n|r|tkrtdddftdddfg}|dkrsq
|jd�r�||dd+q
|jd �s�|jd!�r
|jdtd"d#df�|jdtd$d%df�|jd!�r
||d&d&+q
q
qn||||||||||	|
|||
||ft|<dS('s)This is called to register a new plug-in.cSsAtjtjdd}x"|D]}||krdSqWdSdS(Nt_t-ii(t_stringtletterstdigits(tstrtallowedtch((sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pytletterCheck�s

s*procedure name contains illegal charactersisDparameter definition must contain at least 4 elements (%s given: %s)is parameter types must be integersis*parameter name contains illegal charactersisAresult definition must contain at least 3 elements (%s given: %s)i*sresult types must be integerss'result name contains illegal charactersspython-tpython_s
extension-t
extension_splug-in-tplug_in_sfile-tfile_s
python-fu-t/i����Nsa%s: passing the full menu path for the menu label is deprecated, use the 'menu' parameter insteadtfilenamesThe name of the filetsraw-filenames<Load>s<Image>s<Save>timagesInput imagetdrawablesInput drawablei(RtlenttypetinttPLUGINt
startswithtFalsetNonetsplittpoptjointTruetwarningstwarntDeprecationWarningt
PDB_STRINGtinsertt	PDB_IMAGEtPDB_DRAWABLEt_registered_plugins_(t	proc_nametblurbthelptauthort	copyrighttdatetlabelt
imagetypestparamstresultstfunctiontmenutdomainton_queryton_runtrun_mode_paramRtenttplugin_typetneed_compat_paramstfieldsR#tmessagetfile_params((sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pytregister�sr	


			cCs6x/tj�D]!}t|\}}}}}}}}}	}
}}}
}}}d�}||	�}	|r�|	jdtddf�n||
�}
|
r�y |
\}
}tj|
|�Wq�tk
r�tj|
�q�Xntj||||||||||	|
�|rtj||�n|r
|�q
q
WdS(NcSs?g|D]4}t|d|dtj|ddd�f^qS(NiiiRR(t
_type_mappingRtreplace(R3tx((sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pytmake_params.sisrun-modes<The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }(	R*tkeysR't	PDB_INT32tgimptdomain_registert
ValueErrortinstall_proceduret
menu_register(tpluginR,R-R.R/R0R1R2R<R3R4R5R6R7R8R9thas_param_run_modeREt
locale_dir((sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyt_query's*:	


cCs�ddl}t|\}}}}}}}}	}
}}}
}}}}d|}|jj|�rm|j|Sg|
D]}|d^qtSdS(Ni����spython-fu-save--i(t	gimpshelfR*tshelfthas_key(R+RQR,R-R.R/R0R1R2R<R3R4R5R6R7R8R9thas_run_modetkeyRD((sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyt
_get_defaultsKs:
cCs'ddl}d|}||j|<dS(Ni����spython-fu-save--(RQRR(R+tdefaultsRQRU((sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyt
_set_defaults[s
c/s�t�	\}}}}}}}}	}
}�}}
}}}��	�fd��
|
t��}
t|
�dkr{�
g�Sddl}|jd�ddl}ddl�|j�t�	�}|t��}dtfd��Y�d�fd���fd��d	�j
f�fd
��Y}d�jf�fd��Y}d
|f�fd��Y}d|f�fd��Y}d��d�jf��fd��Y}d�j
f��fd��Y}d�jf�fd��Y}d�jf�fd��Y}d�jf�fd��Y}dd��fd�}d�jf��fd��Y�d �jf�fd!��Y�i|t6|t6|t6|t6|t6|jt6|t6|jt6|jt6|jt 6|j!t"6|j#t$6|t%6|t&6|t'6|t(6|t)6|j*t+6|t,6�t-6�t.6|j/t06|j1t26|j3t46|j5t66|t76}|ro|�n|j8�	d"ddd�	�j9�j:�j;�j<f���j=�j<�j:f��j>��jt?d#�}|j@d#��jAjB|�|jC�|r�|
rsy(|
\}
} tDjE|
| d$tF�}!Wn&tGk
r`tDjE|
d$tF�}!nX|!jH|�}n|jI|�}"|jB|"d%t?�|"jC�n�jJt|
�d&t?�}#|#jKd'�|#jLd'�|jB|#d%t?�|#jC�������	�
�fd(�}$�jMd)|$�g�x�tNt|
��D]�}%|
|%d}&|
|%d*}'|
|%d&}(||%})�jO|(�}|jPtF�|jQd+d,�|#jR|d*d&|%|%d*d-�jS�|jC�|(jTd.d�}*|&t't&t(t)fkr||&|)|
|%d/�}+nE|&t,t-fkrT||&|)d0d1�	|*f�}+n||&|)�}+|jU|+�|#jR|+d&d2|%|%d*d3d�|&t7kr�|+jV|*�n|+jWjV|*�|+jC�|(|+_X�jY|+�qAW�jt?d'�},|jZ|,d%t?�|,jC�|j[�}-|,jB|-�|-jC��jC��j\�t]�d4�rp�j^}.�j_�|.S�j_�t`�dS(5Ncs*�t|�}t�|�t�|�S(N(ttupleRXtapply(t
run_paramsR3(R5R+tstart_params(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyt
run_scriptgs
ii����s2.0tEntryValueErrorcBseZRS((RR(((sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR^}scsR�j|�j�j�j|�}|r:|j|�n|j�|j�dS(N(t
MessageDialogtDIALOG_DESTROY_WITH_PARENTtMESSAGE_WARNINGt
BUTTONS_CLOSEtformat_secondary_texttruntdestroy(tparenttprimaryt	secondarytdlg(tgtk(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pytwarning_dialog�s	
cs+ddl}ddl}td�}}zR|j�\}}}dj|j|||��}dj|j||��}Wdd}}}Xtd�|}	�j|�j	�j
�j|	�}
|
j|��j
dddd�}|jdddd�|
jj|�|j��jtd	��}|jt�|jd
�|j|�|j��j�}
|
j�j�j�|
jdd�|j|
�|
j��j|�}|jdd�|jd
d
�|jt�|
j|�|j�d�}|
jd
|�|
j t�|
j�dS(Ni����sMissing exception informationRsAn error occurred running %sgg�?iis_More Informationii�cSs|j�dS(N(Re(twidgettid((sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pytresponse�sRn(!tsyst	tracebackRtexc_infoR!tformat_exceptiontformat_exception_onlyRR_R`t
MESSAGE_ERRORRbRct	Alignmenttset_paddingtvboxt
pack_starttshowtExpandertset_use_underlineR"tset_spacingtaddtScrolledWindowt
set_policytPOLICY_AUTOMATICtset_size_requesttLabelt
set_alignmenttset_selectabletadd_with_viewporttconnectt
set_resizable(RfR+RoRptexc_strtexc_only_strtetypetvaluettbttitleRit	alignmenttexpandertscrolledR1Rn(Rj(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyterror_dialog�sH	










	
tStringEntrycs#eZd�fd�Zd�ZRS(Rcs4�jj|�|jt|��|jt�dS(N(tEntryt__init__tset_textRtset_activates_defaultR"(tselftdefault(Rj(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR��scSs
|j�S(N(tget_text(R�((sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyt	get_value�s(RRR�R�((Rj(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR��st	TextEntrycs,eZd�fd�Zd�Zd�ZRS(Rcs��jj|�|j�j�|j�j�j�|jdd��j�|_|j	|j�|jj
�|jj�|_|j
t|��dS(Nidi����(R~R�tset_shadow_typet	SHADOW_INRR�R�tTextViewtviewR}Ryt
get_buffertbuffert	set_valueR(R�R�(Rj(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR��s
cSs|jj|�dS(N(R�R�(R�ttext((sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR��scSs%|jj|jj�|jj��S(N(R�R�tget_start_itertget_end_iter(R�((sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR��s(RRR�R�R�((Rj(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR��s	tIntEntrycseZ�fd�ZRS(cs:yt|j��SWntk
r5}�|j�nXdS(N(RR�RJtargs(R�te(R^(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR��s(RRR�((R^(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR��st
FloatEntrycseZ�fd�ZRS(cs:yt|j��SWntk
r5}�|j�nXdS(N(tfloatR�RJR�(R�R�(R^(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR��s(RRR�((R^(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR��scSsptj|�dks!|dkr*d}n'ttjtjtj|����}|dkrfd}nt|�S(Ng�?gii(tmathtfabstabstfloortlog10R(tstepR
((sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyt	precision�s!	'	tSliderEntrycs)eZdd��fd�Zd�ZRS(iidicsd|d}�j||d|d|d|d�|_�jj||j�|j�|��dS(Niiii
(t
AdjustmenttadjtHScaleR�t
set_digits(R�R�tboundsR�(RjR�(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR��s

cSs
|jjS(N(R�R�(R�((sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR�s(iidi(RRR�R�((RjR�(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR��stSpinnerEntrycs eZdd��fd�ZRS(iidics]|d}�j||d|d|d|d�|_�jj||j|�|��dS(Niiii
(R�R�t
SpinButtonR�(R�R�R�R�(RjR�(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR�s
(iidi(RRR�((RjR�(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR�stToggleEntrycs,eZd�fd�Zd�Zd�ZRS(icsi�jj|��jtd��|_|j|j�|jj�|jd|j�|j	|�dS(NtNottoggled(
tToggleButtonR�R�RR1R}RyR�tchangedt
set_active(R�R�(Rj(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR�s
cSs?|j�r%|jjtd��n|jjtd��dS(NtYesR�(t
get_activeR1R�R(R�ttog((sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR�scSs
|j�S(N(R�(R�((sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR�s(RRR�R�R�((Rj(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR�
s	t
RadioEntrycsMeZded�dfed�dff�fd�Zd�Zd�ZRS(iR�iR�cs��jj|dtdd�d}xx|D]p\}}�j||�}|j|�|j�|jd|j|�||kr)|j	t
�||_q)q)WdS(NthomogeneoustspacingiR�(tVBoxR�RRtRadioButtonRxRyR�R�R�R"tactive_value(R�R�titemstbuttonR1R�(Rj(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR�#s


cSs|j�r||_ndS(N(R�R�(R�tradioR�((sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR�3scSs|jS(N(R�(R�((sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR�7s(RRRR�R�R�((Rj(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR�"s3	t
ComboEntrycs&eZdd�fd�Zd�ZRS(ics��jt�}x|D]}|j|g�qW�jj|d|��j�}|j|�|j|dd�|j|�dS(NtmodelR�i(	t	ListStoreRtappendtComboBoxR�tCellRendererTextRxtset_attributesR�(R�R�R�tstoretitemtcell(Rj(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR�;s

cSs
|j�S(N(R�(R�((sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR�Hs((RRR�R�((Rj(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR�:s
RcsN|r4|jd�r4|dkr*d}n�|�S�|d|dt�SdS(NRRR�t	save_mode(tendswithR(R�R�(tDirnameSelectortFilenameSelector(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pytFileSelectorKs
	
R�csGeZed��fd�Z�fd�Z�fd�Zd�ZRS(cs�t�|�j�|s+td�|_n	||_||_|}�j�|_�j�}|j�j	�j
��j�|_|jj
|�|j|j�|j|jdt�|jjd|j�|r�|jj|�ndS(NsPython-Fu File Selectiontexpandtclicked(tsuperR�RR�R�R�tentrytImagetset_from_stockt
STOCK_FILEtICON_SIZE_BUTTONtButtonR�t	set_imageRxRR�t	pick_fileR�(R�R�R�R�tboxR(R�Rj(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR�Us 		cs1t�|�j�|jj�|jj�dS(N(R�RyR�R�(R�(R�(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyRyhs
c
s�|j}�jd|jd|jr-�jn�jd�j�j|jrT�jn�j	�j
f�}|j�j
�jf�|j�|j
�}|�j
kr�|j|j��n|j�dS(NR�tactiontbuttons(R�tFileChooserDialogR�R�tFILE_CHOOSER_ACTION_SAVEtFILE_CHOOSER_ACTION_OPENtSTOCK_CANCELtRESPONSE_CANCELt
STOCK_SAVEt
STOCK_OPENtRESPONSE_OKtset_alternative_button_ordertshow_allRdR�tget_filenameRe(R�RlR�tdialogRn(Rj(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR�ms 				
cSs
|jj�S(N(R�R�(R�((sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR��sN(RRR"RR�RyR�R�((R�Rj(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR�SsR�cs#eZd�fd�Zd�ZRS(RcsC�jj|td��|j�j�|r?|j|�ndS(NsPython-Fu Folder Selection(tFileChooserButtonR�Rt
set_actiont!FILE_CHOOSER_ACTION_SELECT_FOLDERtset_filename(R�R�(Rj(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR��s

cSs
|j�S(N(R�(R�((sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR��s(RRR�R�((Rj(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR��ss	python-fuiRR�iics�|�jkr�|j�jt�|j�jt�g}y(x!�D]}|j|j��qEWWn+�k
r���td�|j�q�Xy�|��_Wq�t	k
r�q�t
k
r�|j�jt������q�Xn�j�dS(NsInvalid input for '%s'(
R�tset_response_sensitiveRR�R�R�RtdesctresRt	ExceptionR"t	main_quit(RiRmR3twid(R^R�t	edit_widsR�RjR+R]Rk(sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyRn�s$





Rnigg�?txoptionsRiR�s%s - %sityoptionsR�(aR*RtpygtktrequiretgimpuiRjtgimp_ui_initRVR�RR�R~R�R�R�R�R�tHBoxR�tPF_INT8tPF_INT16tPF_INT32tPF_FLOATt	PF_STRINGt
ColorSelectortPF_COLORtPF_ITEMt
ImageSelectortPF_IMAGEt
LayerSelectortPF_LAYERtChannelSelectort
PF_CHANNELtDrawableSelectortPF_DRAWABLEtVectorsSelectort
PF_VECTORSt	PF_TOGGLEt	PF_SLIDERt
PF_SPINNERtPF_RADIOt	PF_OPTIONtFontSelectortPF_FONTtPF_FILEtPF_FILENAMEt
PF_DIRNAMEt
BrushSelectortPF_BRUSHtPatternSelectort
PF_PATTERNtGradientSelectortPF_GRADIENTtPaletteSelectort
PF_PALETTEtPF_TEXTtDialogR�R�tSTOCK_OKR�R�t
set_transientRtset_border_widthRwRxRytgettextttranslationR"RJtugettexttHintBoxtTabletset_row_spacingstset_col_spacingsR�trangeR�R{R�tattachtFILLRCtset_mnemonic_widgettset_tooltip_textR�R�R�tpack_endtProgressBartmainthasattrR�ReR(/R+R\R,R-R.R/R0R1R2R<R3R4R6R7R8R9RTRRRWR�R�R�R�R�R�R�R�R�R�t
_edit_mappingRwROttransR�ttableRntitpf_typetnameR�tdef_valttooltip_textR�t
progress_vboxtprogressR�((
R�R^R�R�R�R�R5RjR�R+R]R\RksHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyt	_interactas�:


	3		
"""3




















$

&

#
	




	

c
Cs�|d}t|d}|tkr5t||d�St|d}t|d}d}|rcdnd}t|�|kr�xJt|t|��D]3}t|||d}	t|||	�s�Pq�q�W|}nt|�|kr#||d }
|tkrt|�}|
||}q)|
}nt}|t	krdyt
|||�}Wqwtk
r`dSXnt|||�}tj
�|S(Nii
iii(R*tRUN_NONINTERACTIVERZRR7t_obj_mappingt
isinstancetRUN_WITH_LAST_VALSRVtRUN_INTERACTIVERJRRHtdisplays_flush(
R+R3trun_modetfunct
script_paramsRNtmin_argststart_param_idxRCt
param_typeR\tdefault_paramsR�((sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyt_run7s:
		

cCstjddtt�dS(s4This should be called after registering the plug-in.N(RHR>RRPRX(((sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyR>bscCstj|�t|�dS(s!Display an error message and quitN(RHR?R(tmsg((sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pytfailfs
cCs|S(N((R?((sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pytN_ks(Wt__doc__tstringRR�RHt	gimpcolort	gimpenumstpdbR0R1tlocale_directoryR"ttR2RtRuntimeErrorRRtPDB_INT8Rt	PDB_INT16RRGR	tPF_INTt	PDB_FLOATR
R&RtPF_VALUEt	PDB_COLORR
t	PF_COLOURtPDB_ITEMRtPDB_DISPLAYt
PF_DISPLAYR(Rt	PDB_LAYERRtPDB_CHANNELRR)RtPDB_VECTORSRRtPF_BOOLRRt
PF_ADJUSTMENTRR R$R&R(RR+R*R!R"RRBRR�RtRGBtDisplayR�tLayertChanneltDrawabletVectorstboolRLR*RRARPRVRXRJRXR>RZR[(((sHC:\Users\ITO\AppData\Local\Programs\GIMP 2\lib\gimp\2.0\python/gimpfu.pyt<module>Hs�
		








T	$			��	+