Reputation: 1
import Tkinter
import ttk
def main():
root = Tkinter.Tk()
root.geometry("500x200")
ft = ttk.Frame()
ft.pack(expand=True, fill=Tkinter.BOTH, side=Tkinter.TOP)
pb_hd = ttk.Progressbar(ft, orient='horizontal', mode='indeterminate')
pb_hd.pack(expand=False, fill=Tkinter.BOTH, side=Tkinter.TOP)
pb_hd.start(50)
root.mainloop()
if __name__ == '__main__':
main()
I want to add text inside the progress bar but not getting any idea how to do it?
Upvotes: 0
Views: 2151
Reputation: 385900
The ttk progressbar does not support a text option. You can create a label and pack it immediately above or below the widget.
Upvotes: 2