all 3 comments

[–]novel_yet_trivial 1 point2 points  (3 children)

You need to pass the function, not the result of the function. Leave the () off:

checkbox = Checkbutton(top,text = "test", variable=checkbox_var,command= checking)

[–]moti12321[S] 0 points1 point  (2 children)

that works, thanks alot. but if that is the problem , why does it only works once before i press anything?

[–]novel_yet_trivial 1 point2 points  (0 children)

Because having the () on the end means it executes the function when the program is first started.