I have a problem with the three radio buttons, which is that they accept all of them to be selected at once. How do I prevent this thing, and when I press the other button, the selection goes back from that first one?
pen_size_1 = customtkinter.CTkRadioButton(pen_size_frame,
text="Small",
value=3,
command=lambda: change_size(3),
state="normal",
fg_color="#ad85b9",
hover_color= "#a655be",
)
pen_size_1.pack(side="left")
pen_size_2 = customtkinter.CTkRadioButton(pen_size_frame,
text="Medium",
value=5,
command=lambda: change_size(5),
fg_color="#ad85b9",
hover_color= "#a655be",
)
pen_size_2.pack(side="left")
pen_size_3 = customtkinter.CTkRadioButton(pen_size_frame,
text="Large",
value=7,
command=lambda: change_size(7),
state="normal",
fg_color="#ad85b9",
hover_color= "#a655be"
)
pen_size_3.pack(side="left")
variable
option of these buttons to same tkinter variable.