title: How Do I have the text in the text box get printed in the console?
body: <p>OK, So i just started learning how to code in python and I really like making gui with tkinter. I have run into a problem i just cannot fix! hopefully someone will be able to help.</p>
  <pre><code>import tkinter as tk
  window = tk.Tk()
  
  text_box = tk.Text()
  
  
  text_box.pack()
  
  window.geometry(&quot;700x500+50+60&quot;)
  
  window.title('Welcome!')
  
  
  
  label = tk.Label(
       text=&quot;Hello, Welcome to my first app!&quot;,
       foreground=&quot;white&quot;,
       background=&quot;black&quot;
  )
  
  button = tk.Button(
          text=&quot;click me!&quot;,
          width=&quot;25&quot;,
          height=&quot;5&quot;
  )
  
  
  
  
  button.pack()
  label.pack()
  
  
  
  window.mainloop()
  
  </code></pre>
  <p>so i just need to have whats in the textbox print into console when i press the button.</p>