Panda3D
|
Public Member Functions | |
__init__ (self, items, start=0) | |
__contains__ (self, value) | |
__iter__ (self) | |
__len__ (self) | |
copyTo (self, obj) | |
fromString (self, string) | |
getString (self, value) | |
hasString (self, string) | |
Protected Member Functions | |
_checkExistingMembers (self, items) | |
_checkValidIdentifier (item) | |
Protected Attributes | |
_stringTable | |
Static Protected Attributes | |
_checkValidIdentifier = staticmethod(_checkValidIdentifier) | |
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'
__init__ | ( | self, | |
items, | |||
start = 0 ) |
__contains__ | ( | self, | |
value ) |
__iter__ | ( | self | ) |
__len__ | ( | self | ) |
|
protected |
|
protected |
copyTo | ( | self, | |
obj ) |
fromString | ( | self, | |
string ) |
getString | ( | self, | |
value ) |
hasString | ( | self, | |
string ) |
|
staticprotected |
|
protected |