Skip to main content

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

progressbarpy-0.0.5.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

ProgressBarPy-0.0.5-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page