Learn Python tkinter GUI progress bars easy 📊

preview_player
Показать описание
Python progress bar tkinter GUI tutorial for beginners

#Python #progress #bar #ProgressBar #tkinter #GUI #tutorial
Рекомендации по теме
Комментарии
Автор

from tkinter import *
from tkinter.ttk import *
import time

def start():
GB = 100
download = 0
speed = 1
while(download<GB):
time.sleep(0.05)
bar['value']+=(speed/GB)*100
download+=speed

GB completed")
window.update_idletasks()

window = Tk()

percent = StringVar()
text = StringVar()

bar = Progressbar(window, orient=HORIZONTAL, length=300)
bar.pack(pady=10)

percentLabel = Label(window, textvariable=percent).pack()
taskLabel = Label(window, textvariable=text).pack()

button = Button(window, text="download", command=start).pack()

window.mainloop()

BroCodez
Автор

But… there’s a problem!
If you try to click “download file” again if it already is complete, it could be broken and overlap all the text

YourLocalBaconRblx
Автор

I found a bug:) If ur procents are already on 100 and u click download button again it will update percent aand text but not the progressbar! Thx for answer:)
P.S.: I love u!

exg
Автор

Wow man!!!! Absolutely amazing tutorial! Just subscribed! Thanks

analytiks
Автор

thank you! this tutorial was very helpful

marekbartczak
Автор

i have problem in this StringVar.set saying to me "add value" later "add self" and i dont know what to do im on 3.10 python

papersworktm
Автор

the bar['value'] really confuses me I am used to java where if I want a value of something I just do bar.value idk seems easier

Amir_Plays_non_stop
Автор

Hey bro i'am from germany and i love you vidio

code_keks
Автор

I want to change the color of the download bar, how do I do that?

PhaminhHoang_DHTIAHN_
Автор

Hi Bro, Can you help me to make a progressbar tkinter for updating epoch during the training? I means Training using TensorFlow. Btw thats a clearly tutorial. Thanks... ✌️

achmadfachturrohman
Автор

how to make it end by itself without pressing the x button top right?

goldenmasked
Автор

If I use this code inside my program it breaks my other popup's code I don't know why, it says that it doesn't understand bg="color" and fg="color"

Krullfath
Автор

can you move the window around while it's filling the progress bar? I have an issue where it only refreshes the window position when some progress is made.

starstenaal
Автор

How do you change the color of the bar? @Bro Code

Because, I would like to use this code to simulate a Sugar Level Monitor using 4 colors, such as Blue = 1 - 25, Green = 26 - 50, Yellow = 51 -75 and Red = 76 - 100. This colors would signal the amount of sugar in the body using the accelerometer sensor of a Smartphone, @Bro Code So could you do a video illustrating how the colors would move backwards and forwards when Sugar is the body or very little, @Bro Code

I forgot? Using the current version of Python, Bro Code or any one that can help me with this issue as well.

I just realized, if you can use Hex
Code for the colors, Bro Code and everyone, , ok.
#Accelerometer, #HexCode, #PythonCooding #Progressbar and #CreatingASensor #SimulatingSensor #Diabetes

InteranD
Автор

bruh when i start the program, the window freezes until the scale is completely filled, how can I fix this?


spec: python 3.8.10

😪😪😪

Naumkovich
Автор

so that the amount of files deleted is the progress bar

wolfsgeeks
Автор

ey bro thanks, crack this is exactly what I needed

leandrorivera
Автор

hello bro code
Can you help me to put a process in the progressbar
for example deleting multiple files displayed by the progressbar

wolfsgeeks
visit shbcf.ru