(self)
Set the models for `attr_color`, `attr_shape`, `attr_size` and
        `attr_label`. All values are set to `None`, except `attr_color`
        which is set to the class variable if it exists.
Set the models for `attr_color`, `attr_shape`, `attr_size` and
        `attr_label`. All values are set to `None`, except `attr_color`
        which is set to the class variable if it exists.
Set the models for attr_color attr_shape attr_size and attr_label . All values are set to None except attr_color which is set to the class variable if it exists .
def init_attr_values(self):
        """
        Set the models for `attr_color`, `attr_shape`, `attr_size` and
        `attr_label`. All values are set to `None`, except `attr_color`
        which is set to the class variable if it exists.
        """
        data = self.data
        domain = data.domain if data and len(data) else None
        for attr in ("attr_color", "attr_shape", "attr_size", "attr_label"):
            getattr(self.controls, attr).model().set_domain(domain)
            setattr(self, attr, None)
        if domain is not None:
            self.attr_color = domain.class_var
def init_attr_values ( self ) : data = self . data domain = data . domain if data and len ( data ) else None for attr in ( "attr_color" , "attr_shape" , "attr_size" , "attr_label" ) : getattr ( self . controls , attr ) . model ( ) . set_domain ( domain ) setattr ( self , attr , None ) if domain is not None : self . attr_color = domain . class_var