def _on_mapped(self, source, event): self.disconnect_by_func(self._on_mapped) if self.stage is None: self.stage = self.get_stage() self.background_rgba = utils.convert_color( self.get_background_color()) self.clear_canvas()
def set_line_color(button): """ Set easel line color. :param button: color button. """ easel = button.related_object easel.line_rgba = utils.convert_color(button.get_background_color())
def line_color(self, value): self._line_color = value if value is not None: self.line_rgba = utils.convert_color(value)
def set_line_color(button): """ Set easel line color """ easel = button.target easel.line_rgba = utils.convert_color(button.get_background_color())