Skip to content

Vladislavus1/ProgressBarPy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

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!

About

This package adds simple windowed progress bar.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages