(self, var: Union[None, Variable, int])
Set the current side color annotation variable.
Set the current side color annotation variable.
Set the current side color annotation variable .
def set_annotation_color_var(self, var: Union[None, Variable, int]):
        """Set the current side color annotation variable."""
        if isinstance(var, int):
            var = self.row_side_color_model[var]
        if self.annotation_color_var is not var:
            self.annotation_color_var = var
            self.update_row_side_colors()
def set_annotation_color_var ( self , var : Union [ None , Variable , int ] ) : if isinstance ( var , int ) : var = self . row_side_color_model [ var ] if self . annotation_color_var is not var : self . annotation_color_var = var self . update_row_side_colors ( )