title: Why do Tkinter's Radio Buttons all Start Selected When Using StringVar but not IntVar?
body: <p>Here is some example code that creates 4 <code>Radiobutton</code>s, 2 using <code>int</code> and 2 using <code>str</code>:</p>
  <pre><code>from tkinter import *
  
  class test:
      def __init__(self):
          wind = Tk()
          frame1 = Frame(wind)
          frame1.pack()
          self.v1 = IntVar()
          self.v2 = StringVar()
  
          int1 = Radiobutton(frame1, text = 'int1', variable = self.v1, value = 1,
                             command = self.ipress)
          int2 = Radiobutton(frame1, text = 'int2', variable = self.v1, value = 2,
                             command = self.ipress)
  
          str1 = Radiobutton(frame1, text = 'str1', variable = self.v2, value = '1',
                             command = self.spress)
          str2 = Radiobutton(frame1, text = 'str2', variable = self.v2, value = '2',
                             command = self.spress)
  
          int1.grid(row = 1, column = 1)
          int2.grid(row = 1, column = 2)
  
          str1.grid(row = 2, column = 1)
          str2.grid(row = 2, column = 2)
  
          str1.deselect() #this didn't fix it
          str2.deselect()
  
      def ipress(self):
          print('int'+str(self.v1.get()))
      def spress(self):
          print('str'+self.v2.get())
  
  test()
  </code></pre>
  <p>After running this I have a box that look like this:</p>
  <p><a href="https://i.stack.imgur.com/Kihgw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Kihgw.png" alt="" /></a></p>
  <p>For some reason the <code>str</code> ones start selected while the <code>int</code> ones do not. Is there a reason for this? Is there any fix for it? I know I could work around it by just using number values and then converting them to strings but I'd like to understand why this is happening first.</p>
  <p>I am using <em>Windows 10</em> if that matters.</p>
  <p><strong>Edit:</strong> for clarification, the buttons still work properly after they have been clicked on.</p>