Feb-07-2019, 03:53 AM
(Feb-07-2019, 01:15 AM)Larz60+ Wrote: progbar is just the name assigned to the instance of ttk.Progressbar
Suggest you run this code and try to comprehend what's happining
It does everything that you said you needed.
The main parts you need to understand are start_progbar and add_progbar
the rest is just code needed to present the progress bar, and a start button, which is what you said you wanted.
Hello Larz60, Thanks for your reply.
why i need to use class methods for Progressbar,
pb = ttk.Progressbar(root, orient="horizontal", length=200, mode="determinate") pb.pack() pb.start(50)why i cannot use just simple progress bar? i don't need anything fancy. i just when user clicks the button, it will show the user that Script is running and it will take 60sec to finish the job, after 60 sec, Progressbar will end and ready for next task.