I am building a GUI in python for a first time for which I am using tkinter. In one of my frames I am showing a pandas dataframe using ttk treeview. I would like to make one of the dataframe's columns editable in the GUI. I have been reading and I came across a way of doing it with pop ups but this is not what I want. Is there a way to create directly editable column in tkinter using treeview or any other module. The set up for my current dataframe is below.
self.tree =ttk.Treeview(self.Frame3,show='headings')
self.vsb = ttk.Scrollbar(orient="vertical",
command=self.tree.yview)
self.hsb = ttk.Scrollbar(orient="horizontal",
command=self.tree.xview)
self.tree.configure(yscrollcommand=self.vsb.set,
xscrollcommand=self.hsb.set)
for i in columns:
self.tree.column(i,anchor='c',stretch=True,width=col_width)
self.tree.heading(i,text=i,anchor='c')
for index,row in self.final_df.iterrows():
self.tree.insert("",'end',text=index,values=list(row),tags=tag)