title: python tkinter entry variable not defined
body: <p>Can anyone help me with this error I don't know how to fix this it.</p>
  <pre><code>from tkinter import *
  
  def get_data():
      target=Entry.get(note)
  
  def show():
      note=Entry(root)
      note.grid(row=2,column=1)
      b2=Button(root,text='view',command=get_data).grid(row=2,column=2)
  
  root=Tk()
  root.title(&quot;test&quot;)
  Label(root,text=&quot;click&quot;).grid(row=1,column=1)
  b1=Button(root,text='click',command=show).grid(row=1,column=2)
  root.mainloop()
  </code></pre>
  <p>Error: <pre>
  target=Entry.get(note)
  NameError: name 'note' is not defined
  </pre></p>