title: Selecting Selected line in listbox python tkinter
body: <p>Hi i have a question to ask regarding Python Tkinter Listbox. when i select the value, what must i add into my code so that the Listbox would return the value? There is no need for multiple selection. Or, can i add in a button to execute a command, while putting the returned value from the listbox into the command? I am using Python 2.7 and lis is the name of my array. Thank you for your kind attention and help!    </p>
  
  <pre><code>master = Tk()
  
  listbox = Listbox(master)
  listbox.pack()
  
  listbox.insert(END, "Please select:")
  
  for p in lis:
      listbox.insert(END, p)
  
  master.mainloop()
  </code></pre>