def __init__( self, name, initialValues = {}, parent = None, custom = None ):

      # This cannot be changed after creating.
      self._name = name

      # All Styles can have a parent style for resolving values
      if isinstance( parent, Style ):
         parent = [ parent ]

      self.parent = parent

      # Custom style function.
      self.custom = custom

      # initialize any specified properties
      for key in initialValues:
         self.setValue( key, initialValues[ key ] )

   #-----------------------------------------------------------------------
: Create a new Style object.
dataset/ETHPy150Open nasa/mplStyle/mplStyle/types/Style.py/Style.__init__