[Qgis-developer] Changing the Renderer Type in PyQGis Application

Martin Dobias wonder.sk at gmail.com
Thu Nov 1 06:37:03 PDT 2012


On Thu, Nov 1, 2012 at 12:24 PM, Justin Hubbard <justin at pyrotechsoftware.com
> wrote:

> Can iface be called from a standalone PyQGis application?
>

In a standalone PyQGIS application, qgis.utils.iface has no object assigned
(it is None). This makes sense because iface is an interface to a running
QGIS application and with standalone PyQGIS app there isn't one.

If you need to (e.g. to support python plugins in your application), you
can implement iface yourself (see QgisInterface class).

Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20121101/d0625608/attachment.html>


More information about the Qgis-developer mailing list