Re: [Gimp-developer] When writing a GIMP Plugin using Python, can the Plugin display a GIMP based Dialog box informing the user if they haven't provided an argument?

2019-05-12 Thread Ofnuts
When you write a Gimp plugin in Python, either you do your whole interactive UI with PyGTK, or you let Gimp auto-generate a dialog to collect parameters from the user before calling you. Of course the second solution is a bit less user-friendly(*) but in many scripts, doing the whole UI would

Re: [Gimp-developer] When writing a GIMP Plugin using Python, can the Plugin display a GIMP based Dialog box informing the user if they haven't provided an argument?

2019-05-12 Thread Michal VaĊĦut via gimp-developer-list
You should IMHO prevent performing an operation when the input is invalid. Yes, it's definitely easier to throw an exception, but those are IMHO rather to deal with some unexpected errors. On Sat, May 11, 2019, 23:44 Ofnuts wrote: > If the plugin is for public use, gimp.message() is a better