# Enum

from direct.showbase.PythonUtil import Enum

Pass in list of strings or string of comma-separated strings. Items are accessible as instance.item, and are assigned unique, increasing integer values. Pass in integer for 'start' to override starting value.
Example:
>>> colors = Enum('red, green, blue') >>> colors.red 0 >>> colors.green 1 >>> colors.blue 2 >>> colors.getString(colors.red) 'red'

## Inheritance:

Enum:

## Methods of Enum:

__contains__
__init__
__iter__
__len__
copyTo
getString

__contains__ def __contains__(self, value) Undocumented function.

__init__ def __init__(self, items, start=0) Undocumented function.

__iter__ def __iter__(self) Undocumented function.

__len__ def __len__(self) Undocumented function.

copyTo def copyTo(self, obj) Undocumented function.

getString def getString(self, value) Undocumented function.