parameters: (self, titleOrMenu="", menu=None, state=ControlNormal, cmd=wx.ID_ANY)
docstring: Default class constructor.
  
          Used internally. Do not call it in your code!
  
          :param `titleOrMenu`: if it is a string, it represents the new menu label,
           otherwise it is another instance of :class:`MenuEntryInfo` from which the attributes
           are copied;
          :param `menu`: the associated :class:`FlatMenu` object;
          :param integer `state`: the menu item state. This can be one of the following:
  
           ==================== ======= ==========================
           Item State            Value  Description
           ==================== ======= ==========================         
           ``ControlPressed``         0 The item is pressed
           ``ControlFocus``           1 The item is focused
           ``ControlDisabled``        2 The item is disabled
           ``ControlNormal``          3 Normal state
           ==================== ======= ==========================
  
          :param integer `cmd`: the menu accelerator identifier.
docstring_summary: Default class constructor.
docstring_tokens: Default class constructor .
function: def __init__(self, titleOrMenu="", menu=None, state=ControlNormal, cmd=wx.ID_ANY):
          """
          Default class constructor.
  
          Used internally. Do not call it in your code!
  
          :param `titleOrMenu`: if it is a string, it represents the new menu label,
           otherwise it is another instance of :class:`MenuEntryInfo` from which the attributes
           are copied;
          :param `menu`: the associated :class:`FlatMenu` object;
          :param integer `state`: the menu item state. This can be one of the following:
  
           ==================== ======= ==========================
           Item State            Value  Description
           ==================== ======= ==========================         
           ``ControlPressed``         0 The item is pressed
           ``ControlFocus``           1 The item is focused
           ``ControlDisabled``        2 The item is disabled
           ``ControlNormal``          3 Normal state
           ==================== ======= ==========================
  
          :param integer `cmd`: the menu accelerator identifier.
          """
  
          if isinstance(titleOrMenu, basestring):
  
              self._title = titleOrMenu
              self._menu = menu
  
              self._rect = wx.Rect()
              self._state = state
              if cmd == wx.ID_ANY:
                  cmd = wx.NewId()
                  
              self._cmd = cmd             # the menu itself accelerator id
  
          else:
              
              self._title = titleOrMenu._title
              self._menu = titleOrMenu._menu
              self._rect = titleOrMenu._rect
              self._state = titleOrMenu._state
              self._cmd = titleOrMenu._cmd
  
          self._textBmp = wx.NullBitmap
          self._textSelectedBmp = wx.NullBitmap
function_tokens: def __init__ ( self , titleOrMenu = "" , menu = None , state = ControlNormal , cmd = wx . ID_ANY ) : if isinstance ( titleOrMenu , basestring ) : self . _title = titleOrMenu self . _menu = menu self . _rect = wx . Rect ( ) self . _state = state if cmd == wx . ID_ANY : cmd = wx . NewId ( ) self . _cmd = cmd # the menu itself accelerator id else : self . _title = titleOrMenu . _title self . _menu = titleOrMenu . _menu self . _rect = titleOrMenu . _rect self . _state = titleOrMenu . _state self . _cmd = titleOrMenu . _cmd self . _textBmp = wx . NullBitmap self . _textSelectedBmp = wx . NullBitmap