parameters: (self, state)
return_statement: return upperBoxTopPercent, upperBoxBottomPercent, lowerBoxTopPercent, lowerBoxBottomPercent, \
                 concaveUpperBox, concaveLowerBox
docstring: Returns a :class:`Colour` according to the menu item state.
  
          :param integer `state`: one of the following bits:
  
           ==================== ======= ==========================
           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
           ==================== ======= ==========================
  
          :return: An instance of :class:`Colour`.
docstring_summary: Returns a :class:`Colour` according to the menu item state.
docstring_tokens: Returns a : class : Colour according to the menu item state .
function: def GetColoursAccordingToState(self, state):
          """
          Returns a :class:`Colour` according to the menu item state.
  
          :param integer `state`: one of the following bits:
  
           ==================== ======= ==========================
           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
           ==================== ======= ==========================
  
          :return: An instance of :class:`Colour`.        
          """
  
          # switch according to the status        
          if state == ControlFocus:
              upperBoxTopPercent = 95
              upperBoxBottomPercent = 50
              lowerBoxTopPercent = 40
              lowerBoxBottomPercent = 90
              concaveUpperBox = True
              concaveLowerBox = True
              
          elif state == ControlPressed:
              upperBoxTopPercent = 75
              upperBoxBottomPercent = 90
              lowerBoxTopPercent = 90
              lowerBoxBottomPercent = 40
              concaveUpperBox = True
              concaveLowerBox = True
  
          elif state == ControlDisabled:
              upperBoxTopPercent = 100
              upperBoxBottomPercent = 100
              lowerBoxTopPercent = 70
              lowerBoxBottomPercent = 70
              concaveUpperBox = True
              concaveLowerBox = True
  
          else:
              upperBoxTopPercent = 90
              upperBoxBottomPercent = 50
              lowerBoxTopPercent = 30
              lowerBoxBottomPercent = 75
              concaveUpperBox = True
              concaveLowerBox = True
  
          return upperBoxTopPercent, upperBoxBottomPercent, lowerBoxTopPercent, lowerBoxBottomPercent, \
                 concaveUpperBox, concaveLowerBox
function_tokens: def GetColoursAccordingToState ( self , state ) : # switch according to the status         if state == ControlFocus : upperBoxTopPercent = 95 upperBoxBottomPercent = 50 lowerBoxTopPercent = 40 lowerBoxBottomPercent = 90 concaveUpperBox = True concaveLowerBox = True elif state == ControlPressed : upperBoxTopPercent = 75 upperBoxBottomPercent = 90 lowerBoxTopPercent = 90 lowerBoxBottomPercent = 40 concaveUpperBox = True concaveLowerBox = True elif state == ControlDisabled : upperBoxTopPercent = 100 upperBoxBottomPercent = 100 lowerBoxTopPercent = 70 lowerBoxBottomPercent = 70 concaveUpperBox = True concaveLowerBox = True else : upperBoxTopPercent = 90 upperBoxBottomPercent = 50 lowerBoxTopPercent = 30 lowerBoxBottomPercent = 75 concaveUpperBox = True concaveLowerBox = True return upperBoxTopPercent , upperBoxBottomPercent , lowerBoxTopPercent , lowerBoxBottomPercent , concaveUpperBox , concaveLowerBox