slpkg/slpkg/progress_bar.py
2023-01-02 23:13:49 +02:00

18 lines
401 B
Python

#!/usr/bin/python3
# -*- coding: utf-8 -*-
import codecs
import time
from progress.spinner import PixelSpinner
class ProgressBar:
@staticmethod
def bar(message, filename):
""" Creating progress bar. """
spinner = PixelSpinner(f'{message} {filename} ')
# print('\033[F', end='', flush=True)
while True:
time.sleep(0.1)
spinner.next()