(self)
Clears the progress bar (i.e. removes it from the screen)
Clears the progress bar (i.e. removes it from the screen)
Clears the progress bar ( i . e . removes it from the screen )
def clear(self):
        """Clears the progress bar (i.e. removes it from the screen)"""
        if not self.cleared:
            sys.stdout.write(
                self.term.BOL
                + self.term.CLEAR_EOL
                + self.term.UP
                + self.term.CLEAR_EOL
                + self.term.UP
                + self.term.CLEAR_EOL
            )
            self.cleared = True
            self.last_percent = 0
            self.last_message = ""
def clear ( self ) : if not self . cleared : sys . stdout . write ( self . term . BOL + self . term . CLEAR_EOL + self . term . UP + self . term . CLEAR_EOL + self . term . UP + self . term . CLEAR_EOL ) self . cleared = True self . last_percent = 0 self . last_message = ""