Ejemplo n.º 1
0
class PalettePanel(SolidFillPanel):
    mixer = None

    def build(self):
        self.mixer = PaletteMixer(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
Ejemplo n.º 2
0
 def build(self):
     self.mixer = PaletteMixer(self,
                               self.app,
                               self.cms,
                               onchange=self.set_color)
     self.pack(self.mixer, fill=True, expand=True)