<div>The choice about your style depend how you use the tecnology.</div><div><br></div><div>At moment, i am migrating for consume of Qt Framework, then, i prefer use the classes of Qt than Python with the same funcionality, of course, the code style is closer of QGIS developers.</div>
<div><br></div><div>It is good we has one guide, or one manual of good practices , to plugin in Python,  facilitating the construction of several persons plugin.</div><div><br></div><div><div>My opinion is use the PyQt4 style, it is more close of QGIS developers.</div>
<div>It is more easy migrate to C++  candidate&#39;s  plugins to core</div></div><div><br></div><div>Regards,</div><div>Luiz</div><br><div class="gmail_quote">2010/12/25 Stefan Keller <span dir="ltr">&lt;<a href="mailto:sfkeller@gmail.com">sfkeller@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">My recommendation is:<br>
<br>
1. Be consistent using whatever style.<br>
2. I would prefer Python style (PEP), since Python is read by Python<br>
programmers and has it&#39;s own block style.<br>
<br>
Yours, S.<br>
<br>
2010/12/26 Ricardo Filipe Soares Garcia da &lt;<a href="mailto:ricardo.garcia.silva@gmail.com">ricardo.garcia.silva@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Hi list<br>
&gt;<br>
&gt; I have been working with Luiz Motta in the &#39;Custom db query&#39; plugin<br>
&gt; and we came about the dilemma of how to best format our Python code.<br>
&gt;<br>
&gt; Looking around the QGIS wiki, we found the developers manual [1] and<br>
&gt; read through the coding guidelines, but the rules defined in it are<br>
&gt; for C++ programming and for QGIS core. We couldn&#39;t find anything<br>
&gt; related to Python and plugins.<br>
&gt;<br>
&gt; Has this been debated in the past? Is there a recommended style for<br>
&gt; formatting Python code in QGIS plugins?<br>
&gt; I usually follow the recommendation in the PEP8 [2], the official<br>
&gt; style guide for Python. But Luiz argues (a valid point I guess) that<br>
&gt; if we were to follow the C++ standard it would be more consistent with<br>
&gt; the rest of the code.<br>
&gt;<br>
&gt; I guess we are in a state where I have my opinion, he has his own, and<br>
&gt; we&#39;d like to reach a consensus by surveying your thoughts on this<br>
&gt; subject. Also it seems like a good idea to raise this issue now, with<br>
&gt; the upcoming possibility of having multiple people collaborating on<br>
&gt; plugins.<br>
&gt;<br>
&gt; Thanks<br>
&gt;<br>
&gt; [1] - <a href="http://www.qgis.org/wiki/Developers_Manual" target="_blank">http://www.qgis.org/wiki/Developers_Manual</a><br>
&gt; [2] - <a href="http://www.python.org/dev/peps/pep-0008/" target="_blank">http://www.python.org/dev/peps/pep-0008/</a><br>
&gt;<br>
&gt; --<br>
&gt; ___________________________ ___ __<br>
&gt; Ricardo Garcia Silva<br>
&gt; _______________________________________________<br>
&gt; Qgis-developer mailing list<br>
&gt; <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
&gt;<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>
</div></div></blockquote></div><br>