(self)
| 58 | return max(0.1, min(120, self.doneness * 10)) |
| 59 | |
| 60 | def push_down(self): |
| 61 | if self.hot: |
| 62 | return |
| 63 | |
| 64 | self.hot = True |
| 65 | self.timer.countdown(self._get_duration(), self.pop_up) |
| 66 | |
| 67 | def pop_up(self): |
| 68 | print("Pop!") # Release the spring |