This is a minimal python plugin for GIMP. In contrary to gimpfu-based ones, these do have the functions also available in C plugins (query, init, run, quit) and can (actually, have to) use GTK+ directly to create a user interface.
minimal-really.py
I've attached an minimal-really.py plugin, which does only define what is needed for a plugin (query, and the functions to be used). 99% of all python plug-ins will most likely follow this structure.
minimal-real.py
The more complete minimal-real.py defines all things that you might want to redefine in your plugin.
More...?
Yes, you could do even more and redefine start(), which would enable you to change what is actually regarded as init, query, quit and run). And you could have your own run() as well. It's just that right now, I can't imagine why anyone would want to do this. But maybe there are some clever ideas?
| Attachment | Size |
|---|---|
| minimal-real.py | 814 bytes |
| minimal-really.py | 706 bytes |
Comments
Hi
Hi,
Thanks a lot for the plugin inPython. I have been searching for this in my whole week.
Thanks again.
Regards,
things to do in sydney
Hey Thanks!
I've been searching for something like this for a while now. I've read a couple of essays and blogs and I have to say that it's with pretty great luck that I was able to stumble upon this. It will be truly helpful. Thanks a lot. Hope to learn more from you.
AAAAAAAAAAAAH, the .py.txt
fixed