Iam trying to obtain method of payment from user through tkinter radiobuttons as follows:
payment_method_label=Label(root,text="Select Payment Method:")
payment_method=StringVar()
payment_method.set("card")
cards=Radiobutton(root,text="Debit/Credit Card",variable=payment_method,value="card",anchor='w')
wallet=Radiobutton(root,text="Payment Wallet",variable=payment_method,value="wallet",anchor='w')
netbanking=Radiobutton(root,text="Net Banking",variable=payment_method,value="net banking",anchor='w')
You can clearly see that there is unforeseen iteration (the radiobuttons are going in a slanting order)
As you can see from the code, I tried using the anchor="w", but that doesn't make any difference.
Can anyone please pinpoint whats going wrong here?
All help is appreciated Thanks!

