Type enum
object
--+
|
int
--+
|
enum
- Known Subclasses:
-
Alignment
,
ComboColumn
,
ComboMode
enum is an enumered type implementation in python.
To use it, define an enum subclass like this:
>>> from kiwi.python import enum
>>>
>>> class Status(enum):
>>> OPEN, CLOSE = range(2)
>>> Status.OPEN
'<Status value OPEN>'
All the integers defined in the class are assumed to be enums and
values cannot be duplicated
Method Summary |
|
get (cls,
value)
Lookup an enum by value (Class method)
|
get(cls,
value)
Lookup an enum by value
-
- Parameters:
value -
the value
|