Phoenix Logo

phoenix_title wx.lib.pubsub.utils.misc.Enum

Used only internally. Represent one value out of an enumeration set. It is meant to be used as:

class YourAllowedValues:
    enum1 = Enum()
    # or:
    enum2 = Enum(value)
    # or:
    enum3 = Enum(value, 'descriptionLine1')
    # or:
    enum3 = Enum(None, 'descriptionLine1', 'descriptionLine2', ...)

val = YourAllowedValues.enum1
...
if val is YourAllowedValues.enum1:
    ...

class_hierarchy Class Hierarchy

Inheritance diagram for class Enum:


method_summary Methods Summary

__init__ Use value if given, otherwise use next integer.

api Class API



class Enum

Used only internally. Represent one value out of an enumeration set. It is meant to be used as:

class YourAllowedValues:
    enum1 = Enum()
    # or:
    enum2 = Enum(value)
    # or:
    enum3 = Enum(value, 'descriptionLine1')
    # or:
    enum3 = Enum(None, 'descriptionLine1', 'descriptionLine2', ...)

val = YourAllowedValues.enum1
...
if val is YourAllowedValues.enum1:
    ...

Methods



__init__(self, value=None, *desc)

Use value if given, otherwise use next integer.