(self, func, weight=0.5)
Used to add a function to the slot

      :param func: the function to be added in the slot
      :param weight: used when you enable the *random apply*, it's the weight
                     of the function for the random selection

      .. versionadded:: 0.6
         The `weight` parameter.
Used to add a function to the slot
Used to add a function to the slot
def add(self, func, weight=0.5):
      """ Used to add a function to the slot

      :param func: the function to be added in the slot
      :param weight: used when you enable the *random apply*, it's the weight
                     of the function for the random selection

      .. versionadded:: 0.6
         The `weight` parameter.

      """
      self.__typeCheck(func)
      self.funcList.append(func)
      self.funcWeights.append(weight)
def add ( self , func , weight = 0.5 ) : self . __typeCheck ( func ) self . funcList . append ( func ) self . funcWeights . append ( weight )