This package adds simple windowed progressbar.
Project description
ProgressBarPy
This is a lightweight Python package that provides a simple, customizable progress bar displayed in a windowed interface using Tkinter. It allows developers to easily integrate a visual progress indicator into their applications without needing to manage complex GUI elements. With straightforward methods for updating progress and setting labels, ProgressBarPy is an ideal solution for adding a user-friendly progress bar to your Python projects.
How to use it?
Before you start you've to import package:
pip install ProgressBarPy
Now it's ready to work. Let's check an example of using this package:
from ProgressBarPy.progressbar import ProgressBar
import time
max_progress = 100
progressbar = ProgressBar(max_progress=max_progress, title='Progress bar example', message='Processing...')
progressbar.display()
for _ in range(max_progress+1):
time.sleep(0.05)
progressbar.update()
progressbar.destroy()
ProgressBar has three arguments max_progress(necessary argument), title('Progress Bar' by default) and message(not necessary argument).
Class object of ProgressBar has three methods display()(displays progress bar), update(value)(updates progress bar by value(value is 1 by default)) and destroy()(destroys progress bar window).
That's everything you need to know about ProgressBarPy.
Thanks for attention!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ProgressBarPy-0.0.5-py3-none-any.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 560f089567220bd434ae41c21e3788f123cda528666e0f8fb706d450b344a1b7 |
|
| MD5 | 894d032498a322f547a724eb12ca6c1f |
|
| BLAKE2b-256 | ac4243accd244c3123a02a9563321ec5d545cda92c3468ab8186727127d042b7 |