def BrushColor(self, b): self.__brush_alpha, self.__brush_color = utilities.translate_color( b, "#000000")
def BackgroundColor(self, col): alpha, bkg = utilities.translate_color(col, "#000000") if alpha == 255: self.canvas["background"] = bkg else: self.canvas["background"] = "#000000"
def PenColor(self, col): self.__pen_alpha, self.__pen_color = utilities.translate_color( col, "#000000")
def BrushColor(self, b): self.__brush_alpha, self.__brush_color = utilities.translate_color(b, "#000000")
def PenColor(self, col): self.__pen_alpha, self.__pen_color = utilities.translate_color(col, "#000000")