title: How do I use tkinter 'Treeview' to list items in a table of a database?
body: <p>I have a SQLite database that I am going to read from and list one of its tables data into a tree view. I have been searching for a long time in order to get this to work and I am struggling to find anything that either works or makes sense to me. for instance in my table I have the headings 'Member ID' and 'Full Name'.</p>
  
  <p>for test purposes I have created variables storing strings for these values.</p>
  
  <pre><code>root = Tk()
  
  name = "cameron"
  id="223344"
  
  lblsearchName = Label(root, text="Full Name:")
  lblsearchName.grid(sticky=E)
  searchEntry = Entry(root)
  searchEntry.grid(column=1, sticky=E)
  
  treeView = ttk.Treeview(root)
  treeView.grid(columnspan=2)
  
  root.mainloop()
  </code></pre>
  
  <p>How do I go about creating headings in the treeview according to the headings in my tables of my database?
  I now how to read for the database but I then need to know how I would insert this values into the treeview. (for this example 'name' and 'id')</p>