<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'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"><<a href="mailto:sfkeller@gmail.com">sfkeller@gmail.com</a>></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's own block style.<br>
<br>
Yours, S.<br>
<br>
2010/12/26 Ricardo Filipe Soares Garcia da <<a href="mailto:ricardo.garcia.silva@gmail.com">ricardo.garcia.silva@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Hi list<br>
><br>
> I have been working with Luiz Motta in the 'Custom db query' plugin<br>
> and we came about the dilemma of how to best format our Python code.<br>
><br>
> Looking around the QGIS wiki, we found the developers manual [1] and<br>
> read through the coding guidelines, but the rules defined in it are<br>
> for C++ programming and for QGIS core. We couldn't find anything<br>
> related to Python and plugins.<br>
><br>
> Has this been debated in the past? Is there a recommended style for<br>
> formatting Python code in QGIS plugins?<br>
> I usually follow the recommendation in the PEP8 [2], the official<br>
> style guide for Python. But Luiz argues (a valid point I guess) that<br>
> if we were to follow the C++ standard it would be more consistent with<br>
> the rest of the code.<br>
><br>
> I guess we are in a state where I have my opinion, he has his own, and<br>
> we'd like to reach a consensus by surveying your thoughts on this<br>
> subject. Also it seems like a good idea to raise this issue now, with<br>
> the upcoming possibility of having multiple people collaborating on<br>
> plugins.<br>
><br>
> Thanks<br>
><br>
> [1] - <a href="http://www.qgis.org/wiki/Developers_Manual" target="_blank">http://www.qgis.org/wiki/Developers_Manual</a><br>
> [2] - <a href="http://www.python.org/dev/peps/pep-0008/" target="_blank">http://www.python.org/dev/peps/pep-0008/</a><br>
><br>
> --<br>
> ___________________________ ___ __<br>
> Ricardo Garcia Silva<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>
_______________________________________________<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>