metulburr, ichabod801 and snippsat,
Thanks for your responses.
I tried the suggestions from metulburr and snippsat:
o 0.2
o 0.3
o 0.4
o 0.5
o 0.6
o 0.7
o 0.8
o 0.9
o 1e+00
How can I get 1.0 for the last radio widget using your code?
I could use the for loop for values 0.2 to 0.9 and a separate statement for the last 1.0 radio widget. But interested in how to resolve the problem using your code.
Thanks for your responses.
I tried the suggestions from metulburr and snippsat:
# metulburr: for myvalue in range(2,11): Radiobutton(rightFrame, text='{:.1}'.format(myvalue*.1), font=(None, 14), variable=var, value=myvalue).pack() #snippsat: for myvalue in range(2,11): Radiobutton(rightFrame, text=f'{myvalue*.1:.1}', font=(None, 14), variable=var, value=myvalue).pack()But they both result in the following output:
o 0.2
o 0.3
o 0.4
o 0.5
o 0.6
o 0.7
o 0.8
o 0.9
o 1e+00
How can I get 1.0 for the last radio widget using your code?
I could use the for loop for values 0.2 to 0.9 and a separate statement for the last 1.0 radio widget. But interested in how to resolve the problem using your code.