[Qgis-developer] how to print to the shell?

Ricardo Filipe Soares Garcia da ricardo.garcia.silva at gmail.com
Thu Aug 5 11:25:32 EDT 2010


Hi list
A quick (and hopefully not too embarassing ;) ) question:

-How can I print some variables to the shell when creating a python plugin?
For example, I have a piece of code that goes:

# python code
parameters = dlg.return_parameters()
print("parameters: %s" % parameters)
# end of code

I was expecting to see the output in the terminal, but I get
nothing... I remember doing this in previous versions of Qgis, so
something must have changed and I missed it.
I'm using Qgis 1.5 on kubuntu 10.4

Thank you.

-- 
___________________________ ___ __
Ricardo Garcia Silva


More information about the Qgis-developer mailing list