This is my code
def register_user():
Button(win, text="Sign Up", command=register_file, state=DISABLED).place(x=20, y=290)
var = IntVar()
Checkbutton(win, variable=var,).place(x=15, y=249)
How can I do this
This is my code
def register_user():
Button(win, text="Sign Up", command=register_file, state=DISABLED).place(x=20, y=290)
var = IntVar()
Checkbutton(win, variable=var,).place(x=15, y=249)
How can I do this
This is pretty easy, you can use the
command
option ofCheckbutton
to get a func to trigger each time you select or unselect the checkbox, like:Why am I saying assigning variables and
place()
on another line? This is so that the widgets don't becomesNone
.To understand better take a read from its source, here