Example #1
0
class Palette_Panel(SolidFillPanel):

	def build(self):
		self.mixer = Palette_Mixer(self, self.app, self.cms,
								onchange=self.set_color)
		self.pack(self.mixer, fill=True, expand=True)

	def activate(self, cms, orig_fill, new_color):
		new_color = get_registration_black()
		SolidFillPanel.activate(self, cms, orig_fill, new_color)
		self.mixer.on_change()

	def set_color(self, color):
		self.new_color = color
Example #2
0
class Palette_Panel(SolidFillPanel):

	def build(self):
		self.mixer = Palette_Mixer(self, self.app, self.cms,
								onchange=self.set_color)
		self.pack(self.mixer, fill=True, expand=True)

	def activate(self, cms, orig_fill, new_color):
		new_color = get_registration_black()
		SolidFillPanel.activate(self, cms, orig_fill, new_color)
		self.mixer.on_change()

	def set_color(self, color):
		self.new_color = color
Example #3
0
 def build(self):
     self.mixer = Palette_Mixer(self,
                                self.app,
                                self.cms,
                                onchange=self.set_color)
     self.pack(self.mixer, fill=True, expand=True)
Example #4
0
	def build(self):
		self.mixer = Palette_Mixer(self, self.app, self.cms,
								onchange=self.set_color)
		self.pack(self.mixer, fill=True, expand=True)