document the new menu registration syntax.

2006-09-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/gimpfu.py: document the new menu registration
syntax.
This commit is contained in:
Sven Neumann 2006-09-05 23:27:25 +00:00 committed by Sven Neumann
parent 31b3de0788
commit d00d79fd62
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2006-09-06 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/gimpfu.py: document the new menu registration syntax.
2006-09-06 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/gimpui.defs

View File

@ -45,11 +45,11 @@ A typical gimpfu plugin would look like this:
"author",
"copyright",
"year",
"<Image>/Somewhere/My plugin",
"My plugin",
"*",
[(PF_STRING, "arg", "The argument", "default-value")],
[],
plugin_func)
plugin_func, menu="<Image>/Somewhere")
main()
The call to "from gimpfu import *" will import all the gimp constants into