title: How can I convert a value of a variable to StringVar or IntVar() to .get() it?
body: <p>I want to get the value in a variable to place it to a text file. But I don't know what method should I do. I tried to convert it using the statement <code>self.score = StringVar()</code> or <code>self.score = str(self.score)</code> or <code>self.score = IntVar()</code>. But it results to what I am not expecting. I need help to fix this for my project. These piece of my codes may help you understand. Thank you.</p>
  
  <pre><code>        self.score = IntVar ()
          f = open('E.txt','a')
          f.write(self.name_ent.get() + '-' + self.score.get() + '\n')
          f.close()
  </code></pre>
  
  <p><code>self.score.get</code> was error, because it's an <code>int</code>.</p>