title: Access StringVar() as a normal string in python
body: <p>I want to access value of selected Radiobutton and compare it with if statement but on accessing the value I am getting PY_VAR0 instead.</p>
  
  <pre><code>from tkinter import *
  ComplaintForm=Tk()
  typesel=StringVar()#&lt;--variable I'm using to access value of selected Radiobutton
  HighVoltage=Radiobutton(ComplaintForm,text='High Voltage Motor',value='HighVoltage',\
                        anchor=W,font='roboto 18',bg='white',variable=typesel)
  HighVoltage.grid(row=5,column=1,padx=5,pady=10)
  
  LowVoltage=Radiobutton(ComplaintForm,text='Low Voltage Motor',value='LowVoltage',\
                        anchor=W,font='roboto 18',bg='white',variable=typesel)
  LowVoltage.grid(row=5,column=0,padx=5,pady=10)
  
  print(typesel)#this is printing PY_VAR0 instead of accessing value of above Radiobuttons
  mainloop()
  </code></pre>
  
  <p>PS: I know there are some malpractices in this code which have been introduced to keep the code minimal and problem easily understandable.</p>