Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to display a message to the user from script-fu
#4
(12-04-2022, 01:52 PM)programmer_ceds Wrote:
(12-03-2022, 08:33 PM)flauapaua Wrote: Shouldn't I get some dialog pop up or something? If not how else can one do this?

I suspect that you are getting "Hello World" displayed in the status line at the bottom of the main GIMP window.

If you type (gimp-message "Hello World\n more text") you should get a message box pop up (the \n causes a new line)

That's exactly how it is.
Thanks.

(12-04-2022, 08:34 PM)Ofnuts Wrote: AFAIK the default is that if you have the console dialog, messages go to the console. But you can use (gimp-message-set-handler handler) to set the output to a dialog, the Gimp console, or what seems to be the StdErr of the Gimp process (useful is you started Gimp from a terminal).
I don't know how to do this

Code:
(gimp-message-set-handler 0) (gimp-message "Hello World")

gives me

Code:
> (gimp-message-set-handler 0) (gimp-message "Hello World")
(#t)(#t)
but "Hello World" still goes to the status line.
Reply


Messages In This Thread
RE: How to display a message to the user from script-fu - by flauapaua - 12-04-2022, 09:05 PM

Forum Jump: