Default selection of radio button in tkinter
I have the code below. The intended behaviour is to set the default option in a set of radio buttons. I've used very similar code elsewhere and its worked but in this case the last 3 options are all showing as selected. I'm new to tkinter and can't for the life of me see where I've gone wrong. Any help much appreciated. charttypevar=StringVar() chart_type_1 = ttk.Radiobutton(chart_type_frame, text="3d with catagories",variable=charttypevar,value='3d with catagories')# chart_type_2 = ttk.Radiobutton(chart_type_frame, text="3d no catagories",variable=charttypevar,value='3d no catagories')# chart
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.