I have a list of variables named Weapons and I need to make radio buttons for each item in that list, in a weapon switching system. (Using Tkinter)
I tried doing something like this initially:
for item in Weapons:
x = Radiobutton(equipped, text=item['name'], variable=player['weapon'],
But this failed because all the radio buttons had the same value.
I don't know how many buttons will be needed because it is relative depending on the number of variables inside Weapons.
How can I do this?