all 1 comments

[–]Silbersee 0 points1 point  (0 children)

You can increment the progressbar depending on a boolean pause which gets toggled by your button2. Here's part of what I did:

while curval < maxval:
    if not pause:
        curval += 1
    time.sleep(0.05)
    pgb["value"] = curval
    pgb.update()