c64_painter.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:Pythonista-C64-Painter 作者: superrune 项目源码 文件源码
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))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号