-class ShowLevels(Enum):
- ONEXTERNAL = ("on-external")
- ONNEW = ("on-new")
- ONERROR = ("on-error")
- def __init__(self, text):
- # auto numbering
- cls = self.__class__
- self._value_ = len(cls.__members__) + 1
- self.text = text
- @classmethod
- def getNames(cls):
- return list(x.text for x in cls)
-