title: How to connect a variable to Entry widget?
body: <p>I'm trying to associate a variable with a Tkinter entry widget, in a way that:</p>
  
  <ol>
  <li><p>Whenever I change the value (the "content") of the entry, mainly by typing something into it, the variable automatically gets assigned the value of what I've typed. Without me having to push a button "Update value " or something like that first.</p></li>
  <li><p>Whenever the variable gets changed (by some other part of the programm), I want the entry value displayed to be adjusted automatically. I believe that this could work via the textvariable.</p></li>
  </ol>
  
  <p>I read the example on <a href="http://effbot.org/tkinterbook/entry.htm" rel="nofollow noreferrer">http://effbot.org/tkinterbook/entry.htm</a>, but it is not exactly helping me for what I have in mind. I have a feeling that there is a way of ensuring the first condition with using entry's "validate". Any ideas?</p>