def update_ui(self, pos):
    self.pos = pos
    (a, b) = self.ab_grid.xy2ab(pos.x(), pos.y())
    L = self.l_in
    lab = np.array([L, a, b])
    color = lab_gamut.lab2rgb_1d(lab, clip=True, dtype='uint8')
    self.emit(SIGNAL('update_color'), color)
    self.update()
def update_ui(self, pos):
    self.pos = pos
    (a, b) = self.ab_grid.xy2ab(pos.x(), pos.y())
    L = self.l_in
    lab = np.array([L, a, b])
    color = lab_gamut.lab2rgb_1d(lab, clip=True, dtype='uint8')
    self.emit(SIGNAL('update_color'), color)
    self.update()