title: Printing variables in tkinter GUI
body: <p>This is my code:</p>
  
  <pre><code>import pandas as pd
  
  from tkinter import *
  
  master = Tk()
  
  label1= Label(master, text='Department')
  label1.grid(row=0, column=0)
  
  textBox = Text(master, height=1, width=10)
  textBox.grid(row=0, column=1)
  
  def retrieve_input():
      Department = textBox.get("1.0","end-1c") 
  
      fileread = pd.read_csv('50.csv', encoding='latin-1')
      filevalue = fileread.loc[fileread['Customer'].str.contains(Department, na=False)]    
  
  
  
      def printSomething():
          label = Label(master, textvariable=filevalue)
          label.grid(row=3, column=1) 
  
  
  
  button1 = Button(master,text="Show Values", command=lambda: retrieve_input())
  button1.grid(row=2, column=1)
  
  mainloop( )
  </code></pre>
  
  <p>I have searched around Stack Overflow of how to do this, and was able to construct my code up until this point, However when I click the Show values button, nothing happens. I could find nowhere online that helped address this issue. Is there something fundamentally wrong with my code? Using Python 3.7</p>