numberlearn.py 文件源码

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

项目:learnRGB 作者: cbott 项目源码 文件源码
def __init__(self, master):
        #(r, g, b) displayed to the user
        self.color_prompt = [0, 0, 0]

        # user-selected color
        self.color_response = [random.randint(0,255) for i in range(3)]

        #just a big font so things are bigger
        self.big_font = tkFont.Font(root=master, family='Helvetica', size=20)

        Frame.__init__(self, master)
        self.grid()
        self.generate()
        self.next_color()
        self.select_color(0,0)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号