Beispiel #1
0
 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()
Beispiel #2
0
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())
Beispiel #3
0
 def line_color(self, value):
     self._line_color = value
     if value is not None:
         self.line_rgba = utils.convert_color(value)
Beispiel #4
0
def set_line_color(button):
    """
    Set easel line color
    """
    easel = button.target
    easel.line_rgba = utils.convert_color(button.get_background_color())