Hi all,

I would like to write a custom python function for QGIS 2.18 that takes zero or 
one argument. The reason is that in most cases I can use a default value in the 
function, in some cases I would like to enter the value as argument. For python 
I know that you can prefix args in functions to make them optional, e.g. def 
func(*arg). For QGIS functions this will not work because there always have to 
be the args feature and parent in last two positions. Has anyone experience 
with QGIS functions that take zero or more arguments? Thanks for any help!

Regards
Benjamin
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to