Esempio n. 1
0
    def build(self):
        self.pack(wal.HPanel(self), fill=True, expand=True)

        cs = self.orig_color[0]
        self.mixer = MIXERS[cs](self, self.cms, onchange=self.mixer_changed)
        self.pack(self.mixer)

        self.pack(wal.HPanel(self), fill=True, expand=True)

        self.pack(wal.HLine(self), fill=True, padding=5)

        hpanel = wal.HPanel(self)

        self.refpanel = ColorColorRefPanel(hpanel,
                                           self.cms,
                                           self.orig_color,
                                           self.new_color,
                                           on_orig=self.refpanel_click)
        hpanel.pack(self.refpanel)

        hpanel.pack(wal.HPanel(hpanel), fill=True, expand=True)

        self.palette = MiniPalette(hpanel,
                                   self.cms,
                                   PALETTES[cs],
                                   onclick=self.palette_click)
        hpanel.pack(self.palette)

        self.pack(hpanel, fill=True)
        self.update_data()