title: Validation of a date in a tkinter entry box
body: <p>hi i want to make sure that a user can only type a date into an entry box. i am familiar with wildcard searches in a database therefore i tried this;</p>
  
  <pre><code>from tkinter import *
  window=Tk()
  
  def Validate():
      if Entry1.get() == ('**/**/****'):
          window2=Tk()
          label2= Label(window2,text = 'Successful')
          label2.pack()
      else:
          window3=Tk()
          label3 = Label(window3,text = 'Failed')
          label3.pack()
  
  Entry1 = Entry(window)
  Entry1.pack()
  
  
  label1 = Label(window, text = "Please enter date")
  label1.pack()
  
  submitbutton = Button(window, text = "Submit")
  submitbutton.pack()
  
  submitbutton.configure(command=Validate)
  </code></pre>
  
  <p>But obviously this doesn't work, any ideas?
  Thanks</p>