Floodgauge Progress Bar - Tkinter TTKBootstrap 7

preview_player
Показать описание
In this video I'll show you how to use the TTKBootstrap Floodgauge for TKinter and Python.

The Flood Guage is like a progressbar but a little bit fancier than what normally comes with Tkinter.

We'll look at all it's main attributes in this video, including starting floodgauge, stopping floodgauge, and incrementing floodgauge using steps.

#tkinter #codemy #JohnElder

Timecodes

0:00​​ - Introduction
1:55 - Create Floodgauge
2:34 - Set Floodgauge Mask
3:08 - Set Max, Orient, and Value
4:08 - Resize Floodgauge
4:59 - Create Start, Stop, and Increment Buttons
6:00 - Start, Stop and Increment Floodgauge
7:22 - Determinate and Indeterminate Mode
8:29 - Create Position Label
9:02 - Update Label With Incremental Position
10:34 - Conclusion
Рекомендации по теме
Комментарии
Автор

▶ Watch TTKBootstrap Playlist ✅ FREE Tkinter Widget Book
▶ See More At: ✅ Subscribe To My YouTube Channel:
▶ MASSIVE TKINTER.COM DISCOUNT ✅ Join My Facebook Group:
▶ Get The Code For This Video

TkinterPython
Автор

Great tutorial as usual. Two questions: 1) How do i make it to stop at 100%? 2) Is there a way to configure the height of the gauge? Thanks in advance :-)

ddady
Автор

Always learned new stuff w this man. Thank you. Is codemy still running tho

ukachajuma
Автор

I have created a voice operated game, i have used Floodgauge to create a timer but the voice module is blocking the main thread which stops the timer untill the voice function stops i have tried puting the voice function in thread but it is not working i have also tried to put the updatetimer function in a thread but you can not update widgets from another thread in tkinter

akshatyadav
Автор

But can it be used to dynamically show the current status of some function?
If you have something that needs to perform some action on 100 items, can it be used as a progress bar ? Because usually the whole tkinger freezes during such activity and you have to wait until the function returns to the main loop.

BoredBoy
Автор

Thanks for the video.
So in your opinion ttkbotstrap is superior to custom tkinter?

GeorgAubele
Автор

It would be cool if you made a bootstrap reference guide for tkinter as well lol

daviking-
Автор

I'm for the life of myself can't find why the mask is not updated on my project. Did have someone the same bug?

alejandrocesarcaldi
Автор

How do you write custom text to the flood gauge? I'm trying to use the mask with decimal numbers. I've tried my_gauge.config(text='asdf') and setting my_gaugee.textvariable = 'text', but both of those just throw errors.
Edit: using formatting in the mask = "{:2.2f}" doesn't work either.
Edit 2: I've found a workaround, but it involves unpacking and reinitializing my_gauge with a new text argument. Also means that the value needs to be tracked outside of the widget.

stevenli
visit shbcf.ru