A simple open-source cool spinning bar for your python Windows Terminal programs :)
Download the file spinningwheel.py and import in your script.
# Example
import spinningwheel as sw
[...]# Example
import spinningwheel as sw
import time
wheel = sw.SpinningWheel(msg="YOUR MESSAGE HERE...", color=(255,0,0)) # OBS.: Only RGB color scheme is supported!
wheel.start()
time.sleep(10)
wheel.stop()# Example
import spinningwheel as sw
import time
pb = sw.ProgressBar(value=0, showPercentage=False, msg="") # OBS.: Only values from 0 to 1 are allowed!
pb.show()
for i in range(101):
pb.set(i/100)
time.sleep(0.1)