This is my code. I've tried a trillion different things. But basically what I want is the radiobuttons to appear. Select one and hit the okay button. Then the screen prints out the var of which button was selected (just to verify). And I want the whole program to wait and do nothing until this process is done. (What I'd want to do next is another radiobutton set, but I'm not there yet.)
Help! I've been researching this online all day today. I've found tons of posts with people with the same problems, but either the solutions weren't available, or made no sense to me.
Thank you very much in advance.
from Tkinter import *
master = Tk()
var = IntVar()
Radiobutton(master, text="One", variable=var, value=1).pack(anchor=W)
Radiobutton(master, text="Two", variable=var, value=2).pack(anchor=W)
Button(master, text='OK!',command=master.destroy).pack()
print "moo1 var = ",var
master.wait_variable
print "moo2 var = ",var
master.mainloop()