79220446

Date: 2024-11-24 15:42:59
Score: 0.5
Natty:
Report link

For me neither BooleanVar() or IntVar() didn't work, so I had to use StringVar() instead.

Here is example code:

check_var = tk.StringVar(value="OFF")
checkbutton = tk.Checkbutton(root, text="Check me!", variable=check_var, onvalue="ON", offvalue="OFF")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: westman379