Python中的ttk的Progressbar进度条如何实现?
Python中ttk的进度条如何实现,为什么我运行后,进度条不动
from tkinter import *from tkinter import ttkdef run(p): p.start() total = 1 for i in range(1, 10001): total *= i p.stop() return totalif __name__ == "__main__": parent = Tk() label = Label(parent, text="TEST") label.pack() p = ttk.Progressbar(parent, orient = "horizontal", length=200, mode="indeterminate", value=200.0) p.pack() label = Label(parent, text="x") label.pack() x = run(p) print(x) parent.mainloop()