示例#1
0
文件: widgets.py 项目: garykl/gound
 def set_optics(self):
     if self.state:
         self.canvas.create_oval(1, 1, 29, 29,
                                 fill=colors.triple_2_rgb((0.5, 0.5, 0.5)),
                                 outline=colors.green_color,
                                 width=2)
     else:
         self.canvas.create_oval(1, 1, 29, 29,
                                 fill=colors.triple_2_rgb((0.2, 0.2, 0.2)),
                                 outline=colors.red_color,
                                 width=2)
示例#2
0
文件: mix.py 项目: garykl/gound
 def run(self):
     self.master = tk.Tk()
     self.master.tk_setPalette(colors.triple_2_rgb((0, 0, 0)))
     self.frame = self.frame_thunk(self.master)
     self.master.mainloop()