def build(self): panel = wal.HPanel(self) self.pattern_clrs = wal.HToggleKeeper(panel, GRADIENT_CLR_MODES, GRADIENT_CLR_ICONS, GRADIENT_CLR_NAMES, self.on_clr_mode_change) panel.pack(self.pattern_clrs) panel.pack(wal.HPanel(panel), fill=True, expand=True) self.rule_keeper = FillRuleKeeper(panel) panel.pack(self.rule_keeper) self.pack(panel, fill=True, padding_all=5) self.pack(wal.HLine(self), fill=True) default_pattern_def = [sk2_const.PATTERN_IMG, '' + DEFAULT_PATTERN, deepcopy([sk2_const.CMYK_BLACK, sk2_const.CMYK_WHITE]), [] + sk2_const.NORMAL_TRAFO] self.pattern_editor = PatternEditor(self, self.dlg, self.cms, default_pattern_def, onchange=self.on_pattern_change) self.pack(self.pattern_editor, fill=True, expand=True, padding_all=5) self.pack(wal.HLine(self), fill=True) panel = wal.HPanel(self) self.refpanel = FillFillRefPanel(self, self.cms, self.orig_fill, deepcopy(self.orig_fill), on_orig=self.set_orig_fill) panel.pack(self.refpanel) panel.pack(wal.HPanel(panel), fill=True, expand=True) self.presets = PatternMiniPalette(panel, self.cms, onclick=self.on_presets_select) panel.pack(self.presets) self.pack(panel, fill=True, padding_all=5)
def build(self): panel = wal.HPanel(self) self.grad_keeper = wal.HToggleKeeper(panel, GRADIENT_MODES, GRADIENT_MODE_ICONS, GRADIENT_MODE_NAMES, self.on_grad_mode_change) panel.pack(self.grad_keeper) panel.pack(wal.HPanel(panel), fill=True, expand=True) self.grad_clrs = wal.HToggleKeeper(panel, GRADIENT_CLR_MODES, GRADIENT_CLR_ICONS, GRADIENT_CLR_NAMES, self.on_clr_mode_change) panel.pack(self.grad_clrs) panel.pack(wal.HPanel(panel), fill=True, expand=True) self.rule_keeper = FillRuleKeeper(panel) panel.pack(self.rule_keeper) self.pack(panel, fill=True, padding_all=5) self.pack(wal.HLine(self), fill=True) self.grad_editor = GradientEditor(self, self.dlg, self.cms, DEFAULT_STOPS, onchange=self.on_stops_change) self.pack(self.grad_editor, fill=True, expand=True, padding=3) self.pack(wal.HLine(self), fill=True) panel = wal.HPanel(self) self.refpanel = FillFillRefPanel(self, self.cms, self.orig_fill, deepcopy(self.orig_fill), on_orig=self.set_orig_fill) panel.pack(self.refpanel) panel.pack(wal.HPanel(panel), fill=True, expand=True) self.presets = GradientMiniPalette(panel, self.cms, onclick=self.on_presets_select) panel.pack(self.presets) self.pack(panel, fill=True, padding_all=5)