title: Python, 'tkinter' has no attribute 'get'
body: <p>I'm trying to print the value <code>xf_in</code> which is entered in the GUI. </p>
  
  <p>However, I get the following error message when i press the <code>run</code> button:</p>
  
  <pre><code>Exception in Tkinter callback
  Traceback (most recent call last):
    File "C:\Users\My_Name\Anaconda3\lib\tkinter\__init__.py", line 1699, in __call__
      return self.func(*args)
    File "C:/Users/My_Name/Python Scripts/test/gui.py", line 6, in EP
      xf_In = tk.get(e_xf)
  AttributeError: module 'tkinter' has no attribute 'get'
  </code></pre>
  
  <p>I've tried to find the source of the error online but to no avail.</p>
  
  <p>Thanks in advance for any help</p>
  
  <p>My code is as follows:</p>
  
  <pre><code>import tkinter as tk
  from PIL import ImageTk as imtk
  from PIL import Image as im
  
  def EP(): # Enter inputs from values typed in
        xf_In = tk.get(e_xf)
        print(xf_In)
  
  root = tk.Tk()
  
  l_xf = tk.Label(root, text="xA of Feed").grid(row=0)
  
  e_xf = tk.Entry(root).grid(row=0, column=1)       
  
  
  run = tk.Button(root, text="Run", command=EP).grid(row=8, column=0, columnspan = 2)
  
  img = imtk.PhotoImage(im.open("x.png"))
  panel = tk.Label(root, image = img).grid(row = 0, column = 2, rowspan = 7)
  
  root.mainloop()
  </code></pre>