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)
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()