Example #1
0
 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()
Example #2
0
	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()])
Example #3
0
	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()
Example #4
0
 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()])