==== - With IJ.log() ====
from ij import IJ
IJ.log("This is a string followed by an int " + str(10))
Contrary to the print statement the log function display some output into a log window (newly open if not already open), and accept only a string as argument.
=== Image selection using the GenericDialog class ===