I know that when you use radiobuttons you need to set the variable to IntVar() if you want to use a number. Unfortunately the code I am running below comes with the followi
You need to create the root widget before creating the IntVar object.
IntVar
Adjust the code to create a root widget first:
root = Tk() # <--- v = IntVar()