Refresh Python tkinter TreeView Refresh Python tkinter TreeView tkinter tkinter

Refresh Python tkinter TreeView


Hello seems like the problem you have encountered is like mine.

You are correct when you call the get.children() after that what you will do is call the database again.Here is my code, i hope you will get this.

def _build_tree(self):    cursor=db.cursor(buffered=True)    cursor.execute("SELECT   ")    result = cursor.fetchall()    for i in self.tree.get_children():           self.tree.delete(i)    for i in result:           self.tree.insert('', 'end', values=(i[0],i[2]..)