def set_color(self, color=None):
color = color or self.get_color()
if self['current_color'].background_color == color:
# Set color twice, and the image bg color will be set
self['bg_color'].background_color = color
self.superview['editor'].background_color = color
if self.superview['editor'].color_check.hidden is False:
self.superview['editor'].character_colorcheck()
else:
self['current_color'].background_color = color
self.superview['editor'].current_color = color
self.superview['debugtext'].text = "BG color set to " + str(color_to_255(color))
评论列表
文章目录