def set_ab(self, color):
    self.color = color
    self.lab = lab_gamut.rgb2lab_1d(self.color)
    (x, y) = self.ab_grid.ab2xy(self.lab[1], self.lab[2])
    self.pos = QPointF(x, y)
    self.update()
def set_ab(self, color):
    self.color = color
    self.lab = lab_gamut.rgb2lab_1d(self.color)
    (x, y) = self.ab_grid.ab2xy(self.lab[1], self.lab[2])
    self.pos = QPointF(x, y)
    self.update()