title: How to use the input read from Entry command using StringVar() command as a string in tkinter
body: <p>I am creating a Python program with tkinter GUI. I am reading a text from the user and aim to use this text read as an argument for further functions. But these functions require the text to be in "string" data type and not "class method" which occurs if I use the <code>.get()</code> function.</p>
  
  <p>I have used the Entry widget command to read and used <code>StringVar()</code> as a variable.
  I tried <code>str(content.get)</code> in the <code>parse1()</code> function but this does not work</p>
  
  <pre><code>def parse1():
  
      string1=str(content.get)
  
      try:
          txt = TextBlob(string1) #TextBlob is a function used for string processing
          for sentence in txt.sentences:
              genQuestion(sentence)       
      except Exception as e:
          raise e
  
  Label(window, text="Text").grid(row=0)
  content = StringVar()
  e1 = Entry(window, textvariable=content)
  e1.grid(row=0, column=1)
  Button(window, text='Quit', command=window.quit).grid(row=3, column=0, sticky=W, pady=4)
  Button(window, text='ADD', command=parse1).grid(row=3, column=1, sticky=W, pady=4)
  window.mainloop()
  </code></pre>
  
  <p>I expect <code>content.get()</code> data type be string by using <code>str()</code>. When I try   <code>string1=str(content.get)</code> nothing happens and program does not progress further. If I try print(string1) to check I get:</p>
  
  <pre><code>&lt;bound method StringVar.get of &lt;tkinter.StringVar object at 0x000001D17418B710&gt;&gt; 
  </code></pre>
  
  <p>instead of the text entered which is why I'm thinking using <code>str()</code> wont work.
  I tried without <code>str()</code> and I got:</p>
  
  <pre><code>Exception in Tkinter callback Traceback (most recent call last):   File "C:\Users\Tejas Jambhale\Anaconda3\lib\tkinter\__init__.py", line 1699, in __call__
      return self.func(*args)   File "C:/Users/Tejas Jambhale/Documents/genquest-master/quest.py", line 165, in parse1
      raise e   File "C:/Users/Tejas Jambhale/Documents/genquest-master/quest.py", line 159, in parse1
      txt = TextBlob(string)   File "C:\Users\Tejas Jambhale\Anaconda3\lib\site-packages\textblob\blob.py", line 370, in
  __init__
      'must be a string, not {0}'.format(type(text))) TypeError: The \`text\` argument passed to \`__init__(text)\` must be a string, not &lt;class 'method'&gt;
  </code></pre>
  
  <p>which means that string data type is needed as an argument in <code>TextBlob</code>. Is there any way for data read from user to be in string data type?</p>