Re: [Gimp-developer] PF_FILE of the register function in python plugins with 'new file' support (Scott)
On Wed, Jan 13, 2010 at 5:52 PM, Mathias Lindner wrote: > "My way around this was to use a PF_DIRNAME immediately above the PF_STRING > and combining them for the total path." > > Ah, thank you very much. I wasn't aware of PF_DIRNAME. It's missing in the > GIMP Python docs. This way I have a nice workaround which totally fits my > needs. > > What else PF_ data types are missing in the docs? Or the other way around: > Where can I read about all currently existing types? /usr/lib/gimp/2.0/python/gimpfu.py defines the types on a standard Linux install of GIMP. I think all except PF_DIRNAME are documented, though. (there's no steady maintainer for PyGimp or its documentation, so making sure it's up to date is currently somewhat a matter of luck) ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] PF_FILE of the register function in python plugins with 'new file' support
On Sun, 2010-01-10 at 18:46 +0100, Mathias Lindner wrote: > Because it's much more effort to implement this. The GUI from the > register function is easy to learn and fast to implement. So I thought - > since this seems to be no extra functionality for the python interface - > it might be implemented without struggles. I guess it's only one > parameter in the call of the file dialogue... It is not trivial to implement this. But feel free to give it a try and send us a patch if you succeed. Please keep in mind though that your changes need to be backward-compatible. Sven ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] PF_FILE of the register function in python plugins with 'new file' support
Alexia Death schrieb: > On Sun, Jan 10, 2010 at 3:36 PM, Mathias Lindner > wrote: >> Hi >> >> Imagine a python-fu plug-in with a GUI that is initialized through the >> register function. >> One of the elements is of the PF_FILE type to select a file. > why not use pygtk and the gtk file chooser? > Because it's much more effort to implement this. The GUI from the register function is easy to learn and fast to implement. So I thought - since this seems to be no extra functionality for the python interface - it might be implemented without struggles. I guess it's only one parameter in the call of the file dialogue... Please correct me if I am wrong. Cheers, Mathias ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] PF_FILE of the register function in python plugins with 'new file' support
On Sun, Jan 10, 2010 at 3:36 PM, Mathias Lindner wrote: > Hi > > Imagine a python-fu plug-in with a GUI that is initialized through the > register function. > One of the elements is of the PF_FILE type to select a file. why not use pygtk and the gtk file chooser? -- --Alexia ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer