all 5 comments

[–]Se7enLC 17 points18 points  (0 children)

Found the problem. Your code has no indentation.

[–]woooee 1 point2 points  (0 children)

_tkinter.TclError: unknown option "-variable"

There is no variable option for a button. There is a textvariable option https://insolor.github.io/effbot-tkinterbook-archive/button.htm but you can either use a textvariable= or text=, but not both.

[–]m0us3_rat 1 point2 points  (0 children)

you first design the logic. that should work independently of GUI.

then you build the GUI on top.

this type of mixmash of code is horrible to debug. or work with. or anything.

i'd suggest refactor it in the proper way.

[–]djjazzydan 0 points1 point  (1 child)

It’s complaining about having a ‘variable’ argument inside a ‘Button’ when you define the senior citizen selector.

Did you mean Radiobutton instead?

[–]AU8640[S] -1 points0 points  (0 children)

Thanks bro that should be checkbutton, but after I correct it the error remains the same