使用以下示例帮助我理解多线程。单击提交按钮后,GUI将冻结。如何调用线程函数?
import tkinter as tk
from tkinter import ttk
root = tk.Tk()
label = tk.Label(text='vicks')
label.pack()
def fix():
a=0
for i in range(0,1000000000000000):
a=i
label['text']=a
button = tk.Button(text='sub', command=fix)
button.pack()
dropdown = ttk.Combobox()
dropdown.pack()
root.mainloop()