.. wxPython Phoenix documentation

   This file was generated by Phoenix's sphinx generator and associated
   tools, do not edit by hand.

   Copyright: (c) 2011-2025 by Total Control Software
   License:   wxWindows License

.. include:: headings.inc

.. currentmodule:: wx.lib.pubsub.utils.misc

.. highlight:: python



.. _wx.lib.pubsub.utils.misc.Enum:

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

.. raw:: html

   <div class="collabsible-wrapper">
      <input id="collapsible-inheritance" class="collapsible-checkbox" type="checkbox">
      <label for="collapsible-inheritance" tabindex="0" title="Show inheritance diagram" class="collapsible-label">Inheritance diagram for class <strong>Enum</strong>:</label>
      <div class="collapsible-content">
         <p class="graphviz">
            <center><img src="_static/images/inheritance/wx.lib.pubsub.utils.misc.Enum_inheritance.svg" alt="Inheritance diagram of Enum" usemap="#dummy" class="inheritance invert-in-dark-mode"/></center>
            <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.lib.pubsub.utils.misc.Enum.html" title="Used only internally. Represent one value out of an enumeration" alt="" coords="5,5,248,34"/> </map> 
         </p>
      </div>
   </div>
   <script type="text/javascript" src="_static/inheritancetoggle.js"></script>



|


|method_summary| Methods Summary
================================

================================================================================ ================================================================================
:meth:`~wx.lib.pubsub.utils.misc.Enum.__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:
           ...

   .. method:: __init__(self, value=None, \*desc)

      Use value if given, otherwise use next integer.


