

def showStatusProgress(self, progress=1, size=10):
    while (self.stop is False):
        if (progress == (2 * size)):
            progress = 0
        if (progress < size):
            before = (progress + 1)
            after = (size - before)
        else:
            before = ((size - (progress % size)) - 1)
            after = (size - before)
        msg = ('Running Composer [%s=%s]' % ((' ' * before), (' ' * after)))
        self.message(msg)
        time.sleep(0.1)
        progress += 1
    if (self.error is False):
        self.message('Composer finished')
        time.sleep(3)
    self.clear()

dataset/ETHPy150Open francodacosta/composer-sublime/composer.py StatusMessage.showStatusProgress/original