[Qgis-developer] Capturing stdout from a plugin
Salvatore Larosa
lrssvtml at gmail.com
Fri Mar 15 10:37:38 PDT 2013
Hi,
2013/3/15 Gary Sherman <gsherman at geoapt.com>
> In the 1.x console API, you could use:
>
> output = sys.stdout.get_and_clean_data()
>
> to grab what was sent to stdout via print statements.
>
> Is there an equivalent way to do this with the 2.0 API? I'm not seeing
> it...
>
currently doesn't exist a similar method in the new console, but all the
print
statements are catched from the console.
I had to delete the QgisOutputCatcher class because I got some problem with
the text styling in qscintilla lexer.
However, I think it is better revert that method or add a similar.
I'll try fix it asap.
Thanks for catching it :-)
Regards,
-SL
>
> Thanks,
> -gary
>
>
> --
> -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
> Gary Sherman
> Chair, QGIS Project Steering Committee
> -Desktop GIS Book:
> *http://desktopgisbook.com
> -Alaska Novel:
> *http://alaskana.co
> -Geospatial Consulting & Hosting:
> *http://geoapt.com
> "We work virtually everywhere"
> -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
--
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20130315/97c9b283/attachment-0001.html>
More information about the Qgis-developer
mailing list