[Gimp-developer] starting out developing with python-fu

sergio sergio at village-buzz.com
Sun Jul 5 21:47:22 PDT 2009


i am currently working on figuring out how python fu works by  
following some of the tutorials i see online..

in trying to get a simple one running, and am having problems...

running listing [1], i get:

Traceback (most recent call last):
   File "/opt/local/lib/gimp/2.0/python/gimpfu.py", line 801, in _run
     res = apply(func, params[1:])
TypeError: python_pytest() takes exactly 2 arguments (0 given)

in the terminal window..

any ideas?

thanks!





listing [1]

#!/usr/bin/env python

from gimpfu import *

def python_pytest(img, layer) :
     pdb.gimp_image_flip(img, ORIENTATION_VERTICAL)

register(
        	"python_fu_pytest",
	"Does something",
	"Does something terribly useful",
	"Your name",
	"Your name",
	"2009",
	"Py Test...",
	"*",
	[
	],
	[],
	python_pytest,
         menu="<Image>/Filters/Distorts")

main()

___
peace,
sergio
photographer, journalist, visionary
www.village-buzz.com



More information about the Gimp-developer mailing list