python How to sum all the numbers in a treeview column
问题 I need to sum all the numbers of the "Total Sum" Column of Treeview: The code is: from tkinter import ttk import tkinter as tk from tkinter import* def update(): listBox.insert('','end',value=('APL', t1.get(),t2.get(),t3.get())) root = tk.Tk() root.geometry('1000x600') e8 = tk.Label(root,text="APL").grid(row=1,column=0) t1 = tk.Entry(root) t1.grid(row=1,column=1) t2 = tk.Entry(root) t2.grid(row=1,column=2) t3 = tk.Entry(root) t3.grid(row=1,column=3) cols = ('name', 'No1', 'No2', 'total sum')