Hi Duarte, <br><br>from my experience it is not possible. You can of course re-use the ui file and implement the whole functionality on your own based on the cpp file, basically a translation from C++ to Python. I&#39;ve done this before and it is not a complex process, but it requires time. <br>

<br>By the way, the folder app of QGIS source code contains QGIS-application-specific code, so I would say you won&#39;t find there functionality available in PyQGIS, for that you would have to have a look to the gui and core folders. <br>

<br>Perhaps there are other ways to set the project file programmatically from Python, but I don&#39;t know them, sorry.<br><br>Regards, <br><br>Germán<br><br><div class="gmail_quote">2011/12/14 Duarte Carreira <span dir="ltr">&lt;<a href="mailto:DCarreira@edia.pt">DCarreira@edia.pt</a>&gt;</span><br>

<blockquote class="gmail_quote" style="border-left:1px solid rgb(204,204,204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><div link="blue" vlink="purple" lang="PT"><div><p class="MsoNormal"><span lang="EN-US">Using python is it possible to call QgsEmbedLayerDialog and set the project file programmatically (</span><span><span style="background:white none repeat scroll 0% 0%;font-size:9pt;font-family:&quot;Courier New&quot;;color:black" lang="EN-US">mProjectFileLineEdit</span></span><span lang="EN-US">)?<u></u><u></u></span></p>

<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><a href="https://github.com/qgis/Quantum-GIS/blob/release-1_8/src/app/qgsembedlayerdialog.cpp" target="_blank">https://github.com/qgis/Quantum-GIS/blob/release-1_8/src/app/qgsembedlayerdialog.cpp</a><u></u><u></u></p>

<p class="MsoNormal"><a href="https://github.com/qgis/Quantum-GIS/blob/release-1_8/src/ui/qgsembedlayerdialogbase.ui" target="_blank">https://github.com/qgis/Quantum-GIS/blob/release-1_8/src/ui/qgsembedlayerdialogbase.ui</a><u></u><u></u></p>

<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks,<br><font color="#888888">Duarte Carreira<u></u><u></u></font></p><p class="MsoNormal"><u></u> <u></u></p></div></div><br>_______________________________________________<br>


Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
<br></blockquote></div>-- <br>-----------<br>  |\__  <br>(:&gt;__)(<br>  |/    <br><br>Soluciones Geoinformáticas Libres                            <br><a href="http://geotux.tuxfamily.org/">http://geotux.tuxfamily.org/</a><br>