(self, data)
Input data signal handler.
Input data signal handler.
Input data signal handler .
def set_data(self, data):
        """Input data signal handler."""
        self.closeContext()
        self.rules = {}
        self.data = data
        model = self.controls.attribute.model()
        model.set_domain(data.domain if data is not None else None)
        self.Warning.no_nonnumeric_vars(shown=data is not None and not model)
        if not model:
            self.attribute = None
            self.Outputs.data.send(None)
            return
        self.attribute = model[0]
        self.openContext(data)
        self.update_rules()
        self.apply()
def set_data ( self , data ) : self . closeContext ( ) self . rules = { } self . data = data model = self . controls . attribute . model ( ) model . set_domain ( data . domain if data is not None else None ) self . Warning . no_nonnumeric_vars ( shown = data is not None and not model ) if not model : self . attribute = None self . Outputs . data . send ( None ) return self . attribute = model [ 0 ] self . openContext ( data ) self . update_rules ( ) self . apply ( )