On Thu, Nov 1, 2012 at 12:24 PM, Justin Hubbard <[email protected]
> 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
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to