Python Forum
[Tkinter] progressbar
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] progressbar
#7
It appears i was looking in the wrong place for info on progressbar.
I have it working now, but still have a question.

For updates (bar moves forward) there seem to be 2 possibilities:
a) progbar.config(value= 12345)
or
b) use a kind of stringvar() (root, ...,...,variable = myVar, ...)

I collect the update values first in a list + validate them.
The simplest update would be alternative (a):
v = [100,200,300]
for x in v:
    progBar.config(value=x)
But this goes too fast, i want it to move "slowly". like a real progressbar.
I can throw in a time.sleep(...), and also a root.update(). This does the job.

But is this the best way? Should i investigate alternative (b) in some way?

thx,
Paul
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Reply


Messages In This Thread
progressbar - by DPaul - Aug-30-2021, 07:37 AM
RE: progressbar - by Yoriz - Aug-30-2021, 08:20 AM
RE: progressbar - by DPaul - Aug-30-2021, 08:42 AM
RE: progressbar - by Yoriz - Aug-30-2021, 08:50 AM
RE: progressbar - by DPaul - Aug-30-2021, 09:36 AM
RE: progressbar - by deanhystad - Aug-30-2021, 05:10 PM
RE: progressbar - by DPaul - Aug-31-2021, 06:45 AM
RE: progressbar - by deanhystad - Sep-01-2021, 03:30 AM
RE: progressbar - by DPaul - Sep-01-2021, 06:28 AM
RE: progressbar - by deanhystad - Sep-01-2021, 12:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Progressbar with start and stop jelo34 3 5,231 Nov-30-2020, 03:36 AM
Last Post: deanhystad
  [Tkinter] Progressbar value update issue Roshan 7 3,523 Apr-22-2020, 04:02 PM
Last Post: deanhystad
  [Tkinter] Can't get progressbar to update frednet 0 1,739 Feb-24-2020, 10:53 PM
Last Post: frednet
  Adding Progressbar to button aniyanetworks 9 10,405 Feb-07-2019, 11:12 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020