title: How to check if the contents of an entry widget in python/tk is a float, string, boolean or integer?
body: <p>I am trying to check whether users' input to a Tk GUI I created is of the right data type I wanted it to be (integer), but I have only been able to check whether their input is a Boolean, and I need to check whether their input is a string or an integer as well:</p>
  
  <pre><code>from tkinter import*
  
  # creates a GUI
  Tester = Tk()
  
  NonEssentialFoodEntry = Entry(Tester, width="30")
  
  NonEssentialFoodEntry.place(x=300,y=540)
  
  def checker():
       if NonEssentialFoodEntry.get() == 'TRUE' or 'FALSE':
              tkinter.messagebox.showerror("","You have entered a boolean value in the Non-EssentialFood entry field, please enter an integer")
  
  
  Checker=Button(Tester, height="7",width="30",font=300,command=checker)
  
  Checker.place(x=700, y=580)
  </code></pre>