1
我想在消息框中放置一個進度條來顯示下載文件的進度;是這樣的:如何在python的tkinter中的消息框中放置進度條?
example http://uucode.com/texts/pylongopgui/images/progress.png
(從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()
任何想法?
的頁面,在這裏找到了圖像,包含源代碼。只要看看它。 – olpa