Kivy is a platform-independent GUI tool in Python. As it can be run on Android, IOS, linux and Windows etc. It is basically used to develop the Android application, but it does not mean that it can not be used on Desktops applications.
ProgressBar widget is used to visualize the progress of some task. Only the horizontal mode is currently supported: the vertical mode is not yet available.
The progress bar has no interactive elements and is a display-only widget.
To use it, simply assign a value to indicate the current progress:
To work with the progressbar widget you must have to import it by the command:
from kivy.uix.progressbar import ProgressBar
The progeress bar take takes two arguments:
1) max: Maximum value allowed for value. It is a Numericproperty and defaults to 100.
2) value: Current Value for the slider
Basic Approach: 1) import kivy 2) import kivyApp 3) import progressbar 4) import Boxlayout(according to need) 5) Set minimum version(optional) 6) Create Layout class: 7) Create App class 8) return Layout/widget/Class(according to requirement) 9) Run an instance of the class
Note: This code is for a complete working progressbar and you need to focus only the creation and working of the progressbar no need to take stress on other properties I will be covering them in future.
You first have to click on the button that is made in the file and then the progressbar will show.
Implementation of the Approach:
- Python | Switch widget in Kivy
- Python | Carousel Widget In Kivy
- Python | BoxLayout widget in Kivy
- Python | Textinput widget in kivy
- Python | Scrollview widget in kivy
- Python | Spinner widget in kivy
- Python | Checkbox widget in Kivy
- Python | Slider widget in Kivy
- Python | Popup widget in Kivy
- Python | Add image widget in Kivy
- Python | Popup widget in Kivy using .kv file
- Python | Carousel Widget In Kivy using .kv file
- Python | Spinner widget in Kivy using .kv file
- Python | Switch widget in Kivy using .kv file
- Python | Progressbar widget in kivy using .kv file
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.