Panda3D
|
Public Member Functions | |
def | __init__ (self, items, start=0) |
def | __contains__ (self, value) |
def | __iter__ (self) |
def | __len__ (self) |
def | copyTo (self, obj) |
def | fromString (self, string) |
def | getString (self, value) |
def | hasString (self, string) |
Static Public Attributes | |
InvalidChars = string.whitespace | |
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'
def __init__ | ( | self, | |
items, | |||
start = 0 |
|||
) |
def __contains__ | ( | self, | |
value | |||
) |
def __iter__ | ( | self | ) |
def __len__ | ( | self | ) |
def copyTo | ( | self, | |
obj | |||
) |
def fromString | ( | self, | |
string | |||
) |
def getString | ( | self, | |
value | |||
) |
def hasString | ( | self, | |
string | |||
) |
|
static |