how about this?
from enum import Enum

class Animals(Enum):
    GORILLA = 1
    SNAKE = 2
    ELEPHANT = 3

# Convert enum value to string literal
animal = animals.GORILLA
string_literal = animal.name
print(string_literal)  # Output: "GORILLA"

sorry for the late response.
_______________________________________________
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