I have a treeview that displays my data from a sqlite database. Everything works fine so far, but now I want that the user can manipulate the data directly in the treeview and save it back to the database. But I cant find a way to do that.
The part that I not working for me is to make the cell editable directly within the tree!
I have shortened my code for this post to this:
import tkinter.ttk as ttk
self.tree = ttk.Treeview(master, height=10)
#Tree Config
self.tree["columns"] = ("One","Two","Three")
self.tree.column("One",width = 100)
self.tree.column("Two",width = 100)
self.tree.heading("One",text="One", anchor=W)
self.tree.heading("Two",text="Two", anchor=W)
#Bind Doubleclick to the Tree
self.tree.bind("<Double-1>", self.tree_selectItem)
#Add the Tree to the grid
self.tree.grid(row=1,column=1,columnspan=4, rowspan=5, sticky=N+E+S, pady=0, padx=25)