(self, current_position = -1, delta_position = -1)
| 42 | self.display(new_file = True) |
| 43 | |
| 44 | def update(self, current_position = -1, delta_position = -1): |
| 45 | self.time_last = self.time_current |
| 46 | self.time_current = datetime.datetime.now() |
| 47 | if current_position > -1: |
| 48 | self.current_position = current_position |
| 49 | elif delta_position > -1: |
| 50 | self.current_position += delta_position |
| 51 | #else: |
| 52 | # no update, just call display() |
| 53 | self.display() |
| 54 | |
| 55 | def done(self, message): |
| 56 | self.display(done_message = message) |
no test coverage detected