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)
评论列表
文章目录