12-05-2022, 11:00 PM
With this code:
I get this:
Code:
pdb.gimp_message_set_handler(MESSAGE_BOX)
pdb.gimp_message("Hello in status bar") # Single line, goes to status bar
pdb.gimp_message("Hello\nin dialog") # Multi-line, goes to dialog
pdb.gimp_message("Hello in dialog again") # Single line, goes to dialog which is out
pdb.gimp_message_set_handler(ERROR_CONSOLE)
pdb.gimp_message("Hello in Gimp message console")
pdb.gimp_message_set_handler(CONSOLE)
pdb.gimp_message("Hello in stdout/stderr of Gimp process")
I get this:
That draws the following remarks for MESSAGE_BOX
- If the message is a single line, and the message dialog is not out, the message goes to the status bar.
- If the message is multi-line, a dialog is shown
- If the multi-line dialog is out, other messages are added to it