def on_color_change(self, *args): rgba = self.gui['color_selector'].get_current_rgba() self.store['colorlist'].set_value(self.color_selected, self.ced['Color'], hex_from_rgba(rgba)) self.store['colorlist'].set_value(self.color_selected, self.ced['Alpha'], rgba.alpha) self.store['colorlist'].set_value(self.color_selected, self.ced['RGBA'], rgba.to_string()) self.refresh()
def on_add_color_button_click(self, *args): rgba = self.gui['color_selector'].get_current_rgba() hexcolor = hex_from_rgba(rgba) self.store['colorlist'].append([hexcolor, rgba.alpha, 100, rgba.to_string()])
def on_add_color_button_click(self, *args): rgba = self.gui['color_selector'].get_current_rgba() hexcolor = hex_from_rgba(rgba) self.store['colorlist'].append( [hexcolor, rgba.alpha, 100, rgba.to_string()])