parameters: (colour)
return_statement: return colour
docstring: Convert the input `colour` into a valid :class:`Colour` instance, using whatever typemap
      accepted by wxWidgets/wxPython.
      
      :param `colour`: can be an instance of :class:`Colour`, a 3 or 4 integer tuple, a hex
       string, a string representing the colour name or ``None``.
  
      :returns: a valid instance of :class:`Colour` or ``None`` if the input `colour` was ``None``
       in the first place.
docstring_summary: Convert the input `colour` into a valid :class:`Colour` instance, using whatever typemap
      accepted by wxWidgets/wxPython.
      
      :param `colour`: can be an instance of :class:`Colour`, a 3 or 4 integer tuple, a hex
       string, a string representing the colour name or ``None``.
docstring_tokens: Convert the input colour into a valid : class : Colour instance using whatever typemap accepted by wxWidgets / wxPython . : param colour : can be an instance of : class : Colour a 3 or 4 integer tuple a hex string a string representing the colour name or None .
function: def FormatColour(colour):
      """
      Convert the input `colour` into a valid :class:`Colour` instance, using whatever typemap
      accepted by wxWidgets/wxPython.
      
      :param `colour`: can be an instance of :class:`Colour`, a 3 or 4 integer tuple, a hex
       string, a string representing the colour name or ``None``.
  
      :returns: a valid instance of :class:`Colour` or ``None`` if the input `colour` was ``None``
       in the first place.
      """
  
      if isinstance(colour, (list, tuple)):
          colour = wx.Colour(*colour)
      elif isinstance(colour, basestring):
          colour = wx.NamedColour(colour)
  
      return colour
function_tokens: def FormatColour ( colour ) : if isinstance ( colour , ( list , tuple ) ) : colour = wx . Colour ( * colour ) elif isinstance ( colour , basestring ) : colour = wx . NamedColour ( colour ) return colour