def METHOD_NAME(self, val=True):
    """
    Set the enable value, graphically and in the API
    @param val:
    @return:
    """
    self.api_object.active = val
    if self.api_object is not None:
        if self.api_object.active:
            self.style = ACTIVE['style']
            self.color = ACTIVE['color']
        else:
            self.style = DEACTIVATED['style']
            self.color = DEACTIVATED['color']
    else:
        self.style = OTHER['style']
        self.color = OTHER['color']
    self.glyph.setPen(QPen(self.color, self.width, self.style))
    self.label.setDefaultTextColor(self.color)