title: Entry in GUI and print in IDLE (python)
body: <p><strong>Hi, i have a problem with my code....I want the entry of variables and equations when clicking is shown in the IDLE....Help</strong></p>
  <pre><code>from tkinter import ttk
  from tkinter import scrolledtext
  
  window = tk.Tk()
  
  window.title('NAES Solver')
  window.geometry('650x450')
  
  #Creacion de mi funcion
  def variecu():
      mensaje=src.get(1.0, &quot;end-1c&quot;)
      print (mensaje)
      window.destroy()
  
      
  #Entrada en horizontal 
  ttk.Label(window, text = &quot;Variables&quot;). grid(column=0, row=0)
  src = scrolledtext.ScrolledText(window, width = 20, height = 2, wrap = tk.WORD)
  src.grid(column = 7, row = 1)
  
  #Entrada en horizontal y vertical
  ttk.Label(window, text = &quot;Ecuaciones&quot;). grid(column = 0, row = 5)
  src = scrolledtext.ScrolledText(window, width = 20, height = 5, wrap = tk.WORD)
  src.grid(column = 7, row = 7)
  
  #Creacion del boton para imprimir la funcion
  action=ttk.Button(window, text=&quot;Picale&quot;, command=variecu).grid(column=8, row=4)
  
  window.mainloop()```
  </code></pre>