Panda3D

- Main Page
- Packages
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Static Public Attributes

# Enum Class Reference

List of all members.

## Public Member Functions
def | __init__
def | __contains__
def | __iter__
def | __len__
def | copyTo
def | fromString
def | getString
def | hasString
## Static Public Attributes
| InvalidChars = string.whitespace

## Detailed Description

    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'

## Constructor & Destructor Documentation

def __init__ | ( |  | self,
|  |  | items,
|  |  | start = `0`
| ) |  |

## Member Function Documentation

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
| ) |  |

## Member Data Documentation

InvalidChars = string.whitespace`[static]`

All Classes Namespaces Functions Variables Enumerations Enumerator Properties