Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

py-loadingbar

Lightweight loading UI module - coming to Pip

Bar

Settings

Bar.color(c) - Changes the color of the bar (uses termcolor colors)
Bar.bar(b) - Changes the character of the bar
Bar.fill(f) - Changes the character of the bar filler
Bar.speed(min, max, divider) - Changes the speed of the bar loading
Bar.prefix(pf) - Changes the prefix of the bar
Bar.suffix(sf) - Changes the suffix of the bar
Bar.update(percent) - Updates the bar to a set percent

Defaults

c = "light_green"
b = "█"
d = "•"
s = random.randint(1, 5) / 100
pf = "Loading"
sf = "%"

Stages

Settings

Stage.chars(chars[]) - Changes the stages Stage.color(c) - Changes the color of the loader (uses termcolor colors)
Stage.speed(min, max, divider) - Changes the speed of the loader
Stage.prefix(pf) - Changes the prefix of the loaderr
Stage.update(percent) - Updates the loader to a set percent

Defaults

stages = ["←", "↖", "↑", "↗", "→", "↘", "↓", "↙"]
c = "light_green"
s = 0.1
pf = "Loading"

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages