code: def setClass(self, factoryclass):
          
          self.factoryclass = factoryclass
          self.setText(str(factoryclass.name))
docs: Sets the constructor for the component type this label is to 
          represent
  
          :param factoryclass: a class that, when called, results in an instance of the desired class
          :type factoryclass: callable