title: Deselecting from a listbox in Tkinter
body: <p>I'm just wondering how I can deselect from a list box in thinter. Whenever I click on something in a list box, it gets highlighted and it gets underlined, but when I click off of the screen towards the side, the list box selection stays highlighted. Even when I click a button, the selection still stays underlined. For ex: in the example code below, I can't click off of the list box selection after clicking on one of them.</p>
  
  <pre><code>from tkinter import *
  
  def Add():
     listbox.insert(END, textVar.get())
  
  
  root = Tk()
  
  textVar = StringVar()
  entry = Entry(root, textvariable = textVar)
  add = Button(root, text="add", command = Add)
  frame = Frame(root, height=100, width=100, bg="blue")
  listbox = Listbox(root, height=5)
  add.grid(row=0, column=0, sticky=W)
  entry.grid(row=0, column=1, sticky=E)
  listbox.grid(row=1, column=0)
  frame.grid(row=1, column=1)
  
  root.mainloop()
  </code></pre>