title: AttributeError: 'NoneType' object has no attribute 'get'
body: <p>I am writing a function that takes a textbox object from the tkinter library as an argument. When I fill in the textbox and hit the button, I get</p>
  
  <pre><code>"AttributeError: 'NoneType' object has no attribute 'get'." 
  </code></pre>
  
  <p>I know for a fact the textbox object has get() as a function. I even imported the tkinter library into the file that has my function. Here's a simplified version of what I am trying to do in two files: </p>
  
  <p>main:</p>
  
  <pre><code>import tkinter
  import save_file
  app = tkinter.Tk()
  textbox = tkinter.Text(app).pack()
  button = tkinter.Button(app, command=lambda: save_file.save_file(textbox))
  </code></pre>
  
  <p>save_file:</p>
  
  <pre><code>import tkinter
  def save_file(textbox):
      text = textbox.get()
  </code></pre>
  
  <p>Can anyone tell me what I am doing wrong?</p>