Re: 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?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ahhh. I didn't even think that it might be able to be done that way - but
your solution is exactly what I was looking for. Thankyou very much.

I was thinking that there might be a GIMP Procedure such as;

    pdb.display_dialog(...)

or something similar.

After I submitted my question, I found a snippet of Python code on the
Internet which did what I needed, but nowhere near as nicely as your
answer. When I modified this snippet of Python code, it looked as follows;

import gtk

# A whole lot of code has been left out here!!!

    errDialog = gtk.MessageDialog(

                 None,

                 0,

                 gtk.MESSAGE_ERROR,

                 gtk.BUTTONS_OK,

                 "You must specify at least one file."

                )

    errDialog.show_all()

    errDialog.run()

# And a whole lot of code has been left out here!!!

Thanks once again for your assistance. It is most appreciated.

On Thu, May 9, 2019 at 1:22 AM Carol Spears <carol.spears@xxxxxxxxx> wrote:

>
>
> On Wednesday, May 8, 2019, Craig Sanders via gimp-developer-list <
> gimp-developer-list@xxxxxxxxx> wrote:
>
>> Hello.
>>
>> I am writing a GIMP Plugin using Python, and this Plugin expects to
>> receive
>> a list of files as one of its arguments. My question is, if the user
>> doesn't provide any files as arguments, can my Plugin display a GIMP based
>> Dialog box informing them of this?
>>
>
> gimp.message(You did not provide files)
>
> The message part should be in quotes probably....
>
_______________________________________________
gimp-developer-list mailing list
List address:    gimp-developer-list@xxxxxxxxx
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list



[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux