[QGIS-it-user] errore in QgsProcessingParameterEnum

Andrea Giudiceandrea andreaerdna a libero.it
Mar 5 Gen 2021 23:30:05 PST


Ciao Giacomo,


Giacomo Fontanelli-2 wrote
> TypeError: QgsProcessingParameterEnum(): arguments did not match any
> overloaded call:
> overload 1: argument 'options' has unexpected type 'str'

l'errore dipende dal fatto che hai impostato il parametro "options" con una
stringa, mentre per esso deve essere usata una lista di stringhe (vedi [1]).
Quindi, nel tuo caso options=[]
Comunque tale parametro dovrebbe essere opzionale e quindi potresti
ometterlo.

A presto.

Andrea

[1]
https://qgis.org/pyqgis/3.16/core/QgsProcessingParameterEnum.html#qgis.core.QgsProcessingParameterEnum.options



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html


Maggiori informazioni sulla lista QGIS-it-user