Re: [QGIS-Developer] PyQGIS docs / plugins and use of Constant and Enumerations

2019-03-02 Thread Nyall Dawson
On Sat, 2 Mar 2019 at 02:48, Richard Duivenvoorde wrote: > So what would work: > - add comments in the header files? Would these show up in the python > docs then? Unfortunately not -- they are already there, and appear in the c++ docs. There's a few related parts here: - sip does not support ge

[QGIS-Developer] PyQGIS docs / plugins and use of Constant and Enumerations

2019-03-01 Thread Richard Duivenvoorde
Hi Devs, a plugin dev was discussing with me the fact he could not find the names of the different Enumeration values in QGIS to use for python plugins. As an example: if you want to test if your layers 'type': iface.mapCanvas().currentLayer().type() 0 is a Vector layer, so you could go to: ht