Re: Run-Mode & Enums

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Dec 19, 2008 at 3:25 PM, Pablo Yaggi <pyaggi@xxxxxxxxxxxxxxx> wrote:
> So, there will be no case of somebody passing the
>
> RUN-(NON)INTERACTIVE parameter to my script, will be ?
>
> If that is the case, why the pdb browser is showing as the
>
> first parameter to my scrypt the run-mode, isn't it confusing ?
>
> Shouldn't the pdb browser hide that for scripts-fu ?

Script-fu has no special status, it's just an extension to gimp
In fact, Gimp-Python has been the standard recommended language interface
for quite a while now.

Python scripts or C plugins can call your script NONINTERACTIVE or INTERACTIVE
It's simply that script-fu automatically fills in the run_mode, and
provides no way for you to change it.

in Python, you can call interactively like this

pdb.script_fu_something (image, drawable, (more parameters...), run_mode = 0)

for example.


David.
_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux