Exemple #1
0
 def set_color_at_position(self, x, y, color):
     i = self.get_index_at_pos(x, y)
     if i is None:
         self._palette.append(color)
     else:
         self._palette[i] = color
     self._call_palette_observers()
     ColorAdjusterWidget.set_color_at_position(self, x, y, color)
Exemple #2
0
 def set_color_at_position(self, x, y, color):
     i = self.get_index_at_pos(x, y)
     mgr = self.get_color_manager()
     if i is None:
         mgr.palette.append(color)
     else:
         mgr.palette[i] = color
     ColorAdjusterWidget.set_color_at_position(self, x, y, color)
Exemple #3
0
 def set_color_at_position(self, x, y, color):
     i = self.get_index_at_pos(x, y)
     mgr = self.get_color_manager()
     if i is None:
         mgr.palette.append(color)
     else:
         mgr.palette[i] = color
     ColorAdjusterWidget.set_color_at_position(self, x, y, color)