(self)
| 69 | self.state.freeze_while(self.shutter, clear_after=self.clear_after) |
| 70 | |
| 71 | def cancel(self): |
| 72 | if self._tref: |
| 73 | self._tref() # flush all received events. |
| 74 | self._tref.cancel() |
| 75 | if self._ctref: |
| 76 | self._ctref.cancel() |
| 77 | |
| 78 | def __enter__(self): |
| 79 | self.install() |