【发布时间】:2011-12-24 03:50:15
【问题描述】:
我正在尝试在消息框中放置一个进度条来显示文件下载的进度;像这样:
(图片取自here。)
所以对于进度条,我将使用它:
pbar=ttk.Progressbar(app,orient='horizontal',length=200,mode='determinate')
pbar.pack()
也许我可以使用文本小部件,但我不太确定如何让这个新窗口出现。我会写这样的东西吗?
root1=Tk()
root1.title("Status Dialog")
pbar=ttk.Progressbar(app,orient='horizontal',length=200,mode='determinate')
pbar.pack()
root1.mainloop()
有什么想法吗?
【问题讨论】:
-
您找到图像的页面包含源代码。看看就好。
标签: python user-interface tkinter