<div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 1, 2012 at 12:24 PM, Justin Hubbard <span dir="ltr"><<a href="mailto:justin@pyrotechsoftware.com" target="_blank">justin@pyrotechsoftware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Can iface be called from a standalone PyQGis application? <br></blockquote></div><br>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.<br>
<br>If you need to (e.g. to support python plugins in your application), you can implement iface yourself (see QgisInterface class).<br><br>Martin<br></div>