parameters: (self, id, colour)
docstring: Sets the colour of a certain setting.
  
          :param integer `id`: can be one of the colour values in `Metric Ordinals`;
          :param `colour`: the new value of the setting.
          :type `colour`: :class:`Colour` or tuple or integer
docstring_summary: Sets the colour of a certain setting.
docstring_tokens: Sets the colour of a certain setting .
function: def SetColor(self, id, colour):
          """
          Sets the colour of a certain setting.
  
          :param integer `id`: can be one of the colour values in `Metric Ordinals`;
          :param `colour`: the new value of the setting.
          :type `colour`: :class:`Colour` or tuple or integer
          """
  
          if isinstance(colour, basestring):
              colour = wx.NamedColour(colour)
          elif isinstance(colour, types.TupleType):
              colour = wx.Colour(*colour)
          elif isinstance(colour, types.IntType):
              colour = wx.ColourRGB(colour)
  
          if id == AUI_DOCKART_BACKGROUND_COLOUR:
              self._background_brush.SetColour(colour)
          elif id == AUI_DOCKART_BACKGROUND_GRADIENT_COLOUR:
              self._background_gradient_colour = colour
          elif id == AUI_DOCKART_SASH_COLOUR:
              self._sash_brush.SetColour(colour)
          elif id == AUI_DOCKART_INACTIVE_CAPTION_COLOUR:
              self._inactive_caption_colour = colour
              if not self._custom_pane_bitmaps and wx.Platform == "__WXMAC__":
                  # No custom bitmaps for the pane close button
                  # Change the MAC close bitmap colour
                  self._inactive_close_bitmap = DrawMACCloseButton(wx.WHITE, colour)
  
          elif id == AUI_DOCKART_INACTIVE_CAPTION_GRADIENT_COLOUR:
              self._inactive_caption_gradient_colour = colour
          elif id == AUI_DOCKART_INACTIVE_CAPTION_TEXT_COLOUR:
              self._inactive_caption_text_colour = colour
          elif id == AUI_DOCKART_ACTIVE_CAPTION_COLOUR:
              self._active_caption_colour = colour
              if not self._custom_pane_bitmaps and wx.Platform == "__WXMAC__":
                  # No custom bitmaps for the pane close button
                  # Change the MAC close bitmap colour
                  self._active_close_bitmap = DrawMACCloseButton(wx.WHITE, colour)
  
          elif id == AUI_DOCKART_ACTIVE_CAPTION_GRADIENT_COLOUR:
              self._active_caption_gradient_colour = colour
          elif id == AUI_DOCKART_ACTIVE_CAPTION_TEXT_COLOUR:
              self._active_caption_text_colour = colour
          elif id == AUI_DOCKART_BORDER_COLOUR:
              self._border_pen.SetColour(colour)
          elif id == AUI_DOCKART_GRIPPER_COLOUR:
              self._gripper_brush.SetColour(colour)
              self._gripper_pen1.SetColour(StepColour(colour, 40))
              self._gripper_pen2.SetColour(StepColour(colour, 60))
          elif id == AUI_DOCKART_HINT_WINDOW_COLOUR:
              self._hint_background_colour = colour
          else:
              raise Exception("Invalid Colour Ordinal.")
function_tokens: def SetColor ( self , id , colour ) : if isinstance ( colour , basestring ) : colour = wx . NamedColour ( colour ) elif isinstance ( colour , types . TupleType ) : colour = wx . Colour ( * colour ) elif isinstance ( colour , types . IntType ) : colour = wx . ColourRGB ( colour ) if id == AUI_DOCKART_BACKGROUND_COLOUR : self . _background_brush . SetColour ( colour ) elif id == AUI_DOCKART_BACKGROUND_GRADIENT_COLOUR : self . _background_gradient_colour = colour elif id == AUI_DOCKART_SASH_COLOUR : self . _sash_brush . SetColour ( colour ) elif id == AUI_DOCKART_INACTIVE_CAPTION_COLOUR : self . _inactive_caption_colour = colour if not self . _custom_pane_bitmaps and wx . Platform == "__WXMAC__" : # No custom bitmaps for the pane close button # Change the MAC close bitmap colour self . _inactive_close_bitmap = DrawMACCloseButton ( wx . WHITE , colour ) elif id == AUI_DOCKART_INACTIVE_CAPTION_GRADIENT_COLOUR : self . _inactive_caption_gradient_colour = colour elif id == AUI_DOCKART_INACTIVE_CAPTION_TEXT_COLOUR : self . _inactive_caption_text_colour = colour elif id == AUI_DOCKART_ACTIVE_CAPTION_COLOUR : self . _active_caption_colour = colour if not self . _custom_pane_bitmaps and wx . Platform == "__WXMAC__" : # No custom bitmaps for the pane close button # Change the MAC close bitmap colour self . _active_close_bitmap = DrawMACCloseButton ( wx . WHITE , colour ) elif id == AUI_DOCKART_ACTIVE_CAPTION_GRADIENT_COLOUR : self . _active_caption_gradient_colour = colour elif id == AUI_DOCKART_ACTIVE_CAPTION_TEXT_COLOUR : self . _active_caption_text_colour = colour elif id == AUI_DOCKART_BORDER_COLOUR : self . _border_pen . SetColour ( colour ) elif id == AUI_DOCKART_GRIPPER_COLOUR : self . _gripper_brush . SetColour ( colour ) self . _gripper_pen1 . SetColour ( StepColour ( colour , 40 ) ) self . _gripper_pen2 . SetColour ( StepColour ( colour , 60 ) ) elif id == AUI_DOCKART_HINT_WINDOW_COLOUR : self . _hint_background_colour = colour else : raise Exception ( "Invalid Colour Ordinal." )