Tengo un Treeview, y necesito sumar los valores de unas 4 columnas, así como en excel, para guardar el total de cada columna, con su respectiva variable, pero no se como hacerlo. Diseño de Treeview:
style = ttk.Style()
style.configure("mystyle.Treeview", highlightthickness=0, bd=0, font=('Roboto Mono', 8))
style.configure("mystyle.Treeview.Heading", font=('Roboto Mono', 9, BOLD))
self.grid1= ttk.Treeview(height=7, columns=("#0","#1","#2","#3","#4","#5"), style="mystyle.Treeview")
self.grid1.place(x=130,y=280)
self.grid1.column("#0",width=75,anchor=CENTER)
self.grid1.heading("#0", text="Codigo", anchor=CENTER)
self.grid1.column("#1",width=100,anchor=CENTER)
self.grid1.heading("#1", text="Producto", anchor=CENTER)
self.grid1.column("#2",width=100,anchor=CENTER)
self.grid1.heading("#2", text="Precio", anchor=CENTER)
self.grid1.column("#3",width=100,anchor=CENTER)
self.grid1.heading("#3", text="Cantidad", anchor=CENTER)
self.grid1.column("#4",width=100,anchor=CENTER)
self.grid1.heading("#4", text="Subtotal", anchor=CENTER)
self.grid1.column("#5",width=100,anchor=CENTER)
self.grid1.heading("#5", text="ITBIS", anchor=CENTER)
self.grid1.column("#6",width=100,anchor=CENTER)
self.grid1.heading("#6", text="Total", anchor=CENTER)