|
Makeprojects
|
Enumeration integer value. More...
Public Member Functions | |
| __init__ (self, name, fallback, enumerations) | |
| Initialize the default value. | |
| set_value (self, value) | |
| Update with an index or an enumeration string. | |
| get_value (self) | |
| Return the string representation of the string, or None. | |
| __repr__ (self) | |
| Convert to string. | |
| __str__ (self) | |
| Convert to string. | |
Public Attributes | |
| name = name | |
| Name of the validator. | |
| default = fallback | |
| Default value of the validator. | |
| str | value = None |
| Active value. | |
| enumerations = enumerations | |
| Enumeration alias list. | |
Enumeration integer value.
| makeprojects.validators.VSEnumProperty.__init__ | ( | self, | |
| name, | |||
| fallback, | |||
| enumerations ) |
Initialize the default value.
| name | Name of the validator |
| fallback | Default value, None is acceptable |
| enumerations | List of enumeration alias tuples. |
| makeprojects.validators.VSEnumProperty.__repr__ | ( | self | ) |
Convert to string.
| makeprojects.validators.VSEnumProperty.__str__ | ( | self | ) |
Convert to string.
| makeprojects.validators.VSEnumProperty.set_value | ( | self, | |
| value ) |
Update with an index or an enumeration string.
Value can be a number, a string or None to set to default.
| value | None, number, or string. |