Happy summer to all of you :)

It seems in the Python bindings produced by SIP, a C++ enum is just a
Python class with a certain structure. And with little/none possibility of
introspection.

But how can I get a list with all enum-members (e.g. Symbology, Fields) of
that enum?

dir(QgsMapLayer.StyleCategory) does not list them, and
QgsMapLayer.StyleCategory.__members__ is undefined.

Do I really have to hard code the member names into my plugin, if I want to
iterate over all of them?

Sincerely, Thomas
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to