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'.
for test purposes I have created variables storing strings for these values.
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()
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')