I am using PyQt4 and want to set up a list of radio buttons that set a variable value dependent on the selection. Obviously I can do it with a ton of IF statements (10 radio buttons) but I figured there must be an elegant way to do it.
To clarify in psuedocode:
radiobutton1 = 52
radiobutton2 = 31
radiobutton3 = 773
if radiobutton1 x = 52
if radiobutton2 x = 31
if radiobutton3 x = 773