Used only internally. Represent one value out of an enumeration set. It is meant to be used as:
class YourAllowedValues:
enum1 = Enum()
# or:
enum2 = Enum(value)
# or:
enum3 = Enum(value, 'descriptionLine1')
# or:
enum3 = Enum(None, 'descriptionLine1', 'descriptionLine2', ...)
val = YourAllowedValues.enum1
...
if val is YourAllowedValues.enum1:
...
Use value if given, otherwise use next integer. |
Enum
¶Used only internally. Represent one value out of an enumeration set. It is meant to be used as:
class YourAllowedValues:
enum1 = Enum()
# or:
enum2 = Enum(value)
# or:
enum3 = Enum(value, 'descriptionLine1')
# or:
enum3 = Enum(None, 'descriptionLine1', 'descriptionLine2', ...)
val = YourAllowedValues.enum1
...
if val is YourAllowedValues.enum1:
...
__init__
(self, value=None, *desc)¶Use value if given, otherwise use next integer.