(self, *choices)
| 92 | self.state = None |
| 93 | |
| 94 | def check_event(self, *choices): |
| 95 | # Check the type of the next event. |
| 96 | if self.current_event is None: |
| 97 | if self.state: |
| 98 | self.current_event = self.state() |
| 99 | if self.current_event is not None: |
| 100 | if not choices: |
| 101 | return True |
| 102 | for choice in choices: |
| 103 | if isinstance(self.current_event, choice): |
| 104 | return True |
| 105 | return False |
| 106 | |
| 107 | def peek_event(self): |
| 108 | # Get the next event. |
no test coverage detected