This method draws the progress bar if it has changed
(self, eta=None)
| 87 | self.draw(eta) |
| 88 | |
| 89 | def draw(self, eta=None): |
| 90 | """ |
| 91 | This method draws the progress bar if it has changed |
| 92 | """ |
| 93 | |
| 94 | dataToStdout("\r%s %d/%d%s" % (self._progBar, self._amount, self._max, (" (ETA %s)" % (self._convertSeconds(int(eta)) if eta is not None else "??:??")))) |
| 95 | if self._amount >= self._max: |
| 96 | dataToStdout("\r%s\r" % (" " * self._width)) |
| 97 | kb.prependFlag = False |
| 98 | |
| 99 | def __str__(self): |
| 100 | """ |
no test coverage detected