Mar-18-2017, 05:02 AM
(Mar-17-2017, 10:54 PM)snippsat Wrote: Add f.
..... snip .....
snippsat,
Adding f produces perfect output. For other beginners, here's the code:
for myvalue in range(2,11): Radiobutton(rightFrame, text=f'{myvalue*.1:.1f}', font=(None, 14), variable=var, value=myvalue).pack().
.
Using your other suggestion, I like the following code better since it's easier to understand and also produces perfect output:
for myvalue in range(2,11): Radiobutton(rightFrame, text=myvalue*Decimal('.1'), font=(None, 14), variable=var, value=myvalue).pack()Thanks for your help,
Raptor88