title: Tkinter: AttributeError using .get()
body: <p>I am trying to retrieve a variable from a Tkinter Wiget but I am running into this error message:</p>
  
  <pre><code>AttributeError: 'int' object has no attribute 'get'
  </code></pre>
  
  <p>Here is the widget code</p>
  
  <pre><code>JobNEntry = tkinter.Entry(menu, textvariable = tk.IntVar(JobNo))
  JobNEntry.grid(row=2, column=2, sticky="W")
  </code></pre>
  
  <p>Here is the call code</p>
  
  <pre><code>JobNo=JobNo.get()
  </code></pre>
  
  <p>Also I need to know if the variable JobNo is writable to a file.
  Thanks in advance</p>