'This method draws the progress bar if it has changed'

def draw(self, eta=0):

    if (self.__progBar != self.__oldProgBar):
        self.__oldProgBar = self.__progBar
        if (eta and (self.__amount < self.__max)):
            om.out.console(('\r%s    %d/%d        ETA    %s' % (self.__progBar, self.__amount, self.__max, self.__convertSeconds(int(eta)))), new_line=False)
        else:
            blank = ('    ' * (80 - len(('\r%s    %d/%d' % (self.__progBar, self.__amount, self.__max)))))
            om.out.console(('\r%s    %d/%d%s' % (self.__progBar, self.__amount, self.__max, blank)), new_line=False)
        if (self.__amount == self.__max):
            om.out.console('')
