(self, eta=None)
This method draws the progress bar if it has changed
This method draws the progress bar if it has changed
This method draws the progress bar if it has changed
def draw(self, eta=None):
        """
        This method draws the progress bar if it has changed
        """

        if self._progBar != self._oldProgBar:
            self._oldProgBar = self._progBar
            dataToStdout("\r%s %d/%d%s" % (self._progBar, self._amount, self._max, ("  ETA %s" % self._convertSeconds(int(eta))) if eta is not None else ""))
            if self._amount >= self._max:
                if not conf.liveTest:
                    dataToStdout("\r%s\r" % (" " * self._width))
                    kb.prependFlag = False
                else:
                    dataToStdout("\n")
def draw ( self , eta = None ) : if self . _progBar != self . _oldProgBar : self . _oldProgBar = self . _progBar dataToStdout ( "\r%s %d/%d%s" % ( self . _progBar , self . _amount , self . _max , ( "  ETA %s" % self . _convertSeconds ( int ( eta ) ) ) if eta is not None else "" ) ) if self . _amount >= self . _max : if not conf . liveTest : dataToStdout ( "\r%s\r" % ( " " * self . _width ) ) kb . prependFlag = False else : dataToStdout ( "\n" )