New GitHub issue #101005 from sangram11:<br>

<hr>

<pre>
In Tkinter package Radiobutton is not working properly. It is showing different behavior based on different type of value selected for a given variable.

`from tkinter import *

root = Tk()
root.geometry("300x300")

gender = StringVar() #gender variable is set as string type
male = Radiobutton(root, text = "Male", variable = gender, value = "male")
female = Radiobutton(root, text = "Female", variable = gender, value = "female")

male.pack()
female.pack()

root.mainloop()`

If you run this simple piece of code you will find all radio buttons are selected. 
This is happening because **gender variable** is set as **string type**.
A user obviously doesn't want all radio buttons to be selected.

Whereas if you run this below piece of code for integer type

`from tkinter import *

root = Tk()
root.geometry("300x300")

gender = IntVar() #gender variable is set as integer type
male = Radiobutton(root, text = "Male", variable = gender, value = 1)
female = Radiobutton(root, text = "Female", variable = gender, value = 2)

male.pack()
female.pack()

root.mainloop()`

You will find none of the option has been selected for radio buttons. This is the actual expectation for any user. They don't want all radio buttons to be selected.

Moreover, there should be an argument in Radiobutton class to select a particular radio button out of many. This is missing.

</pre>

<hr>

<a href="https://github.com/python/cpython/issues/101005">View on GitHub</a>
<p>Labels: </p>
<p>Assignee: </p>