Part of kiwi.python View In Hierarchy
Known subclasses: kiwi.enums.Alignment, kiwi.enums.ComboColumn, kiwi.enums.ComboMode, kiwi.enums.Direction, kiwi.enums.ListType, kiwi.enums.SearchFilterPosition, kiwi.ui.search.DateSearchFilter.Type
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
Class Method | __class_init__ | Undocumented |
Class Method | get | Lookup an enum by value |
Method | __new__ | Create a new Enum. |
Method | __str__ | Undocumented |